mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 20:03:02 +01:00
[build] [cmake] Add 'gfix -write async' command on databases during build. Fix clang+linux build.
This commit is contained in:
parent
7c6a608ad8
commit
269e1a26ab
@ -181,7 +181,7 @@ if (UNIX)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (CLANG OR IOS)
|
||||
if (NOT LINUX AND (CLANG OR IOS))
|
||||
set(LIB_iconv iconv)
|
||||
endif()
|
||||
|
||||
|
@ -113,6 +113,7 @@ function(epp_process type files)
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different security.fdb ${dir}/security.fdb
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different msg.fdb ${dir}/msg.fdb
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different help.fdb ${dir}/help.fdb
|
||||
COMMAND boot_gfix -write async ${dir}/security.fdb
|
||||
COMMAND ${ARGN} -b ${dir}/ ${in} ${out}
|
||||
)
|
||||
endif()
|
||||
|
@ -119,8 +119,10 @@ add_custom_command(
|
||||
COMMAND ${CMAKE_COMMAND} -E remove security_.fdb
|
||||
COMMAND ${CMAKE_COMMAND} -E echo "create database 'security_.fdb';" > create_db_security.sql
|
||||
COMMAND boot_isql -q -i create_db_security.sql
|
||||
COMMAND boot_gfix -write async security_.fdb
|
||||
COMMAND boot_isql -q security_.fdb -i ${CMAKE_CURRENT_SOURCE_DIR}/dbs/security.sql
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different security_.fdb security.fdb
|
||||
COMMAND boot_gfix -write sync security.fdb
|
||||
)
|
||||
add_custom_command(
|
||||
OUTPUT metadata.fdb
|
||||
@ -205,6 +207,7 @@ add_custom_command(
|
||||
COMMAND ${CMAKE_COMMAND} -E remove msg_.fdb
|
||||
COMMAND ${CMAKE_COMMAND} -E echo "create database 'msg_.fdb';" > create_db_msg.sql
|
||||
COMMAND boot_isql -q -i create_db_msg.sql
|
||||
COMMAND boot_gfix -write async msg_.fdb
|
||||
COMMAND ${isql_exec_msg}/msg.sql
|
||||
#
|
||||
COMMAND echo loading facilities
|
||||
@ -744,6 +747,15 @@ add_executable (fbtracemgr ${fbtracemgr_src} ${VERSION_RC})
|
||||
target_link_libraries (fbtracemgr common yvalve)
|
||||
|
||||
|
||||
########################################
|
||||
# EXECUTABLE boot_gfix
|
||||
########################################
|
||||
|
||||
add_executable (boot_gfix alice/main/aliceMain.cpp ${VERSION_RC})
|
||||
target_link_libraries (boot_gfix boot_alice common boot_yvalve)
|
||||
project_group (boot_gfix Boot)
|
||||
|
||||
|
||||
########################################
|
||||
# EXECUTABLE gfix
|
||||
########################################
|
||||
|
Loading…
Reference in New Issue
Block a user