mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-08 11:51:23 -04:00
Added ICU feature filters to limit the size of the data library when building ICU ourselves
This commit is contained in:
parent
8a09cec0ab
commit
8179a097f8
2
extern/CMakeLists.txt
vendored
2
extern/CMakeLists.txt
vendored
@ -244,6 +244,7 @@ if (NOT OPENMW_USE_SYSTEM_YAML_CPP)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (NOT OPENMW_USE_SYSTEM_ICU)
|
if (NOT OPENMW_USE_SYSTEM_ICU)
|
||||||
|
set(ICU_ENV "ICU_DATA_FILTER_FILE=${CMAKE_CURRENT_SOURCE_DIR}/icufilters.json")
|
||||||
if (ANDROID)
|
if (ANDROID)
|
||||||
# Note: Must be a build directory, not an install root, since the configure script
|
# Note: Must be a build directory, not an install root, since the configure script
|
||||||
# looks for a configuration file which does not get installed.
|
# looks for a configuration file which does not get installed.
|
||||||
@ -261,6 +262,7 @@ if (NOT OPENMW_USE_SYSTEM_ICU)
|
|||||||
# -clang etc.
|
# -clang etc.
|
||||||
string(REGEX MATCH "^[^-]\+-[^-]+-[^-]+" ICU_TOOLCHAIN_NAME ${ANDROID_TOOLCHAIN_NAME})
|
string(REGEX MATCH "^[^-]\+-[^-]+-[^-]+" ICU_TOOLCHAIN_NAME ${ANDROID_TOOLCHAIN_NAME})
|
||||||
set(ICU_ENV
|
set(ICU_ENV
|
||||||
|
${ICU_ENV}
|
||||||
"CC=${CMAKE_C_COMPILER_LAUNCHER} ${NDK_STANDARD_ROOT}/bin/${ICU_TOOLCHAIN_NAME}${ANDROIDVER}-clang"
|
"CC=${CMAKE_C_COMPILER_LAUNCHER} ${NDK_STANDARD_ROOT}/bin/${ICU_TOOLCHAIN_NAME}${ANDROIDVER}-clang"
|
||||||
"CXX=${CMAKE_CXX_COMPILER_LAUNCHER} ${NDK_STANDARD_ROOT}/bin/${ICU_TOOLCHAIN_NAME}${ANDROIDVER}-clang"
|
"CXX=${CMAKE_CXX_COMPILER_LAUNCHER} ${NDK_STANDARD_ROOT}/bin/${ICU_TOOLCHAIN_NAME}${ANDROIDVER}-clang"
|
||||||
"RANLIB=${NDK_STANDARD_ROOT}/bin/${ICU_TOOLCHAIN_NAME}-ranlib"
|
"RANLIB=${NDK_STANDARD_ROOT}/bin/${ICU_TOOLCHAIN_NAME}-ranlib"
|
||||||
|
19
extern/icufilters.json
vendored
Normal file
19
extern/icufilters.json
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"featureFilters": {
|
||||||
|
"brkitr_rules": "exclude",
|
||||||
|
"brkitr_dictionaries": "exclude",
|
||||||
|
"brkitr_tree": "exclude",
|
||||||
|
"coll_ucadata": "exclude",
|
||||||
|
"coll_tree": "exclude",
|
||||||
|
"confusables": "exclude",
|
||||||
|
"conversion_mappings": "exclude",
|
||||||
|
"zone_tree": "exclude",
|
||||||
|
"zone_supplemental": "exclude",
|
||||||
|
"translit": "exclude",
|
||||||
|
"cnvalias": "exclude",
|
||||||
|
"lang_tree": "exclude",
|
||||||
|
"normalization": "exclude",
|
||||||
|
"region_tree": "exclude",
|
||||||
|
"stringprep": "exclude"
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user