(macOS) Reduced the ICU library size via a data filter file

This commit is contained in:
Leon Styhre 2024-09-03 19:03:31 +02:00
parent 7bcbc16bf2
commit 1b70d815dd
2 changed files with 7 additions and 1 deletions

View file

@ -78,8 +78,13 @@ if [ ! -d icu/icu4c ]; then
exit
fi
if [ ! -f icu/icu4c/source/icu_filters.json ]; then
echo "icu/icu4c/source/icu_filters.json is missing, aborting."
exit
fi
cd icu/icu4c/source
./configure --disable-extras --disable-icuio --disable-samples --disable-tests
ICU_DATA_FILTER_FILE=icu_filters.json CXXFLAGS="-DUCONFIG_NO_COLLATION -DUCONFIG_NO_TRANSLITERATION" ./configure --disable-extras --disable-icuio --disable-samples --disable-tests
make clean
make -j${JOBS}
cd lib

View file

@ -56,6 +56,7 @@ git clone -n --filter=tree:0 https://github.com/unicode-org/icu.git
cd icu
git sparse-checkout set --no-cone icu4c
git checkout release-75-1
cp ../../es-app/assets/icu_filters.json icu4c/source/
cd ..
echo