mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 16:43:03 +01:00
[build] [cmake] Fix crosscompiling for android on linux.
This commit is contained in:
parent
d75a3ec4d6
commit
7fbb9837ae
@ -122,6 +122,24 @@ if (MINGW)
|
||||
endif()
|
||||
|
||||
if (UNIX)
|
||||
if (CMAKE_CROSSCOMPILING)
|
||||
find_path(ICU_INCLUDE_DIR unicode/ucnv.h
|
||||
PATHS
|
||||
/usr/include
|
||||
/usr/include/x86_64-linux-gnu
|
||||
/usr/local/include
|
||||
/opt/local/include
|
||||
CMAKE_FIND_ROOT_PATH_BOTH
|
||||
)
|
||||
if (ICU_INCLUDE_DIR)
|
||||
execute_process(COMMAND ${CMAKE_COMMAND} -E copy_directory
|
||||
${ICU_INCLUDE_DIR}/unicode
|
||||
${CMAKE_BINARY_DIR}/unicode
|
||||
)
|
||||
include_directories(${CMAKE_BINARY_DIR})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
set(OS_DIR posix)
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
|
||||
|
@ -34,7 +34,7 @@ add_custom_command(
|
||||
add_executable (empbuild empbuild.c empbuild.fdb ${CMAKE_CURRENT_SOURCE_DIR}/empbuild/empbuild.e)
|
||||
target_link_libraries (empbuild yvalve)
|
||||
set_output_directory (empbuild . FORCE)
|
||||
add_dependencies (empbuild gfix engine12 fbtrace)
|
||||
add_dependencies_cc (empbuild gfix engine12 fbtrace)
|
||||
project_group (empbuild Examples)
|
||||
|
||||
file(GLOB files
|
||||
|
@ -504,7 +504,7 @@ set(udr_engine_src
|
||||
add_library (udr_engine SHARED ${udr_engine_src} ${VERSION_RC})
|
||||
target_link_libraries (udr_engine common yvalve)
|
||||
set_output_directory (udr_engine plugins)
|
||||
set_exported_symbols (udr_engine plugin)
|
||||
set_exported_symbols (udr_engine fbplugin)
|
||||
|
||||
|
||||
########################################
|
||||
|
@ -57,7 +57,7 @@ file(GLOB fbtrace_include "ntrace/*.h")
|
||||
|
||||
add_library (fbtrace SHARED ${fbtrace_src} ${fbtrace_os_src} ${fbtrace_include} ${VERSION_RC})
|
||||
target_link_libraries (fbtrace common yvalve)
|
||||
add_dependencies (fbtrace engine12 build_msg codes) # try to wait all generators stop
|
||||
add_dependencies_cc (fbtrace engine12 build_msg codes) # try to wait all generators stop
|
||||
set_output_directory (fbtrace plugins)
|
||||
set_exported_symbols (fbtrace fbplugin)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user