mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 12:58:00 +03:00
Only disable building ICU tools when doing an android cross-compile
Otherwise the icudata library won't be built
This commit is contained in:
parent
206f0d4b1d
commit
8a09cec0ab
1 changed files with 2 additions and 2 deletions
4
extern/CMakeLists.txt
vendored
4
extern/CMakeLists.txt
vendored
|
@ -268,7 +268,7 @@ if (NOT OPENMW_USE_SYSTEM_ICU)
|
|||
"CPPFLAGS=${ANDROID_COMPILER_FLAGS}"
|
||||
"LDFLAGS=${ANDROID_LINKER_FLAGS} -lc -lstdc++"
|
||||
)
|
||||
set(ICU_ADDITIONAL_OPTS --host=${ICU_TOOLCHAIN_NAME}${ANDROIDVER} --with-cross-build=${OPENMW_ICU_HOST_BUILD_DIR})
|
||||
set(ICU_ADDITIONAL_OPTS --disable-tools --host=${ICU_TOOLCHAIN_NAME}${ANDROIDVER} --with-cross-build=${OPENMW_ICU_HOST_BUILD_DIR})
|
||||
endif()
|
||||
include(ExternalProject)
|
||||
ExternalProject_Add(icu
|
||||
|
@ -277,7 +277,7 @@ if (NOT OPENMW_USE_SYSTEM_ICU)
|
|||
SOURCE_DIR fetched/icu
|
||||
CONFIGURE_COMMAND ${CMAKE_COMMAND} -E env ${ICU_ENV}
|
||||
<SOURCE_DIR>/icu4c/source/configure --enable-static --disable-shared
|
||||
--disable-tests --disable-samples --disable-icuio --disable-extras --disable-tools ${ICU_ADDITIONAL_OPTS}
|
||||
--disable-tests --disable-samples --disable-icuio --disable-extras ${ICU_ADDITIONAL_OPTS}
|
||||
BUILD_COMMAND make
|
||||
INSTALL_COMMAND ""
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue