1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2024-12-28 00:15:06 +00:00

Added ICU feature filters to limit the size of the data library when building ICU ourselves

This commit is contained in:
Benjamin Winger 2022-04-20 19:00:23 -04:00
parent 8a09cec0ab
commit 8179a097f8
No known key found for this signature in database
GPG Key ID: 22E22BE7466677FC
2 changed files with 21 additions and 0 deletions

View File

@ -244,6 +244,7 @@ if (NOT OPENMW_USE_SYSTEM_YAML_CPP)
endif()
if (NOT OPENMW_USE_SYSTEM_ICU)
set(ICU_ENV "ICU_DATA_FILTER_FILE=${CMAKE_CURRENT_SOURCE_DIR}/icufilters.json")
if (ANDROID)
# Note: Must be a build directory, not an install root, since the configure script
# looks for a configuration file which does not get installed.
@ -261,6 +262,7 @@ if (NOT OPENMW_USE_SYSTEM_ICU)
# -clang etc.
string(REGEX MATCH "^[^-]\+-[^-]+-[^-]+" ICU_TOOLCHAIN_NAME ${ANDROID_TOOLCHAIN_NAME})
set(ICU_ENV
${ICU_ENV}
"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"
"RANLIB=${NDK_STANDARD_ROOT}/bin/${ICU_TOOLCHAIN_NAME}-ranlib"

19
extern/icufilters.json vendored Normal file
View 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"
}
}