8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 18:43:02 +01:00

[build] [cmake] Extract ICU and zlib only once.

This commit is contained in:
egorpugin 2015-01-29 07:10:47 +00:00
parent 71a77fe82a
commit 121c8bc1aa
2 changed files with 18 additions and 12 deletions

View File

@ -211,15 +211,21 @@ endif()
if (WIN32)
# icu
set(ICU_EXTRACT ${CMAKE_CURRENT_SOURCE_DIR}/extern/icu/icu.exe -y)
#message("Extracting pre-built ICU")
if (NOT ICU_EXTRACT)
message(STATUS "Extracting pre-built ICU")
set(ICU_EXTRACT ${CMAKE_CURRENT_SOURCE_DIR}/extern/icu/icu.exe -y
CACHE STRING "ICU extraction variable")
execute_process(COMMAND ${ICU_EXTRACT})
endif()
# zlib
set(ZLIB_EXTRACT ${CMAKE_CURRENT_SOURCE_DIR}/extern/zlib/zlib.exe -y)
#message("Extracting pre-built zlib")
if (NOT ZLIB_EXTRACT)
message(STATUS "Extracting pre-built zlib")
set(ZLIB_EXTRACT ${CMAKE_CURRENT_SOURCE_DIR}/extern/zlib/zlib.exe -y
CACHE STRING "zlib extraction variable")
execute_process(COMMAND ${ZLIB_EXTRACT})
endif()
endif()
if (UNIX)
file(GLOB vers_src "${CMAKE_SOURCE_DIR}/builds/posix/*.vers")

View File

@ -413,13 +413,13 @@ add_epp_suffix(engine12_generated_src master)
file(GLOB_RECURSE engine12_include "dsql/*.h" "jrd/*.h" include/gen/iberror.h)
add_library (engine12_common OBJECT ${engine12_src} ${engine12_include} ${parse_src})
add_library (engine12_common ${engine12_src} ${engine12_include} ${parse_src})
add_dependencies_cc (engine12_common parse)
if (NOT CMAKE_CROSSCOMPILING)
add_library (boot_engine12 SHARED $<TARGET_OBJECTS:engine12_common> ${engine12_generated_src_boot} ${VERSION_RC})
target_link_libraries (boot_engine12 boot_alice boot_burp common boot_yvalve)
add_library (boot_engine12 SHARED ${engine12_generated_src_boot} ${VERSION_RC})
target_link_libraries (boot_engine12 engine12_common boot_alice boot_burp common boot_yvalve)
set_output_directory (boot_engine12 plugins)
set_exported_symbols (boot_engine12 fbplugin)
copy_and_rename_lib (boot_engine12 Engine12)
@ -432,8 +432,8 @@ endif() # if (NOT CMAKE_CROSSCOMPILING)
# SHARED LIBRARY engine12
########################################
add_library (engine12 SHARED $<TARGET_OBJECTS:engine12_common> ${engine12_generated_src_master} ${VERSION_RC})
target_link_libraries (engine12 alice burp common yvalve)
add_library (engine12 SHARED ${engine12_generated_src_master} ${VERSION_RC})
target_link_libraries (engine12 engine12_common alice burp common yvalve)
add_dependencies_cc (engine12 messages) # possible build during build_msg or codes run
set_target_properties (engine12 PROPERTIES OUTPUT_NAME Engine12)
set_output_directory (engine12 plugins)
@ -724,7 +724,7 @@ endif() # if (NOT CMAKE_CROSSCOMPILING)
########################################
add_executable (gbak burp/main/burpMain.cpp ${gbak_include} ${VERSION_RC})
target_link_libraries (gbak burp yvalve common)
target_link_libraries (gbak burp common yvalve)
########################################