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

pull/3226/head
Benjamin Winger 3 years ago
parent 8a09cec0ab
commit 8179a097f8
No known key found for this signature in database
GPG Key ID: 22E22BE7466677FC

@ -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"

@ -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…
Cancel
Save