From 73a280b8fc67dec70665e2ee11e7ab513ea7a761 Mon Sep 17 00:00:00 2001 From: Thomas A Date: Mon, 17 Apr 2023 19:45:50 -0700 Subject: [PATCH] Upload build_icusources.sh Script --- darling/scripts/build_icusources.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 darling/scripts/build_icusources.sh diff --git a/darling/scripts/build_icusources.sh b/darling/scripts/build_icusources.sh new file mode 100755 index 00000000..e96560fc --- /dev/null +++ b/darling/scripts/build_icusources.sh @@ -0,0 +1,27 @@ +# Based on commit notes: +# https://github.com/darlinghq/darling-icu/commit/8cc3d36eddff8e6eabc50b356fc3aa3908e2815a + +ICU_ROOT=$(cd ../.. && pwd) +BUILD_DIR="$ICU_ROOT/tmp/build" + +rm -rf $BUILD_DIR +mkdir -p $BUILD_DIR +cp -rp $ICU_ROOT/icuSources/* $BUILD_DIR + +cd $BUILD_DIR +chmod +x runConfigureICU && chmod +x configure + +APPLE_INTERNAL_DIR="/AppleInternal" \ +LANG="en_US.utf8" \ +CPPFLAGS="-DU_DISABLE_RENAMING=1" \ +CFLAGS="-DU_SHOW_CPLUSPLUS_API=1 -DU_SHOW_INTERNAL_API=1 -DICU_DATA_DIR=\"\\\"/usr/local/share/icu/\\\"\" -DICU_DATA_DIR_PREFIX_ENV_VAR=\"\\\"APPLE_FRAMEWORKS_ROOT\\\"\" -m64 -g -Os -fno-exceptions -fvisibility=hidden" \ +CXXFLAGS="-std=c++11 -DU_SHOW_CPLUSPLUS_API=1 -DU_SHOW_INTERNAL_API=1 -DICU_DATA_DIR=\"\\\"/usr/local/share/icu/\\\"\" -DICU_DATA_DIR_PREFIX_ENV_VAR=\"\\\"APPLE_FRAMEWORKS_ROOT\\\"\" -m64 -g -Os -fno-exceptions -fvisibility=hidden -fvisibility-inlines-hidden" \ +DYLD_LIBRARY_PATH="/usr/local/lib" \ +./runConfigureICU Linux --disable-renaming --disable-extras --disable-layout --disable-samples --with-data-packaging=archive --prefix=/usr/local --with-library-bits=64 + +APPLE_INTERNAL_DIR="/AppleInternal" \ +LANG="en_US.utf8" \ +CFLAGS="-DU_SHOW_CPLUSPLUS_API=1 -DU_SHOW_INTERNAL_API=1 -DICU_DATA_DIR=\"\\\"/usr/local/share/icu/\\\"\" -DICU_DATA_DIR_PREFIX_ENV_VAR=\"\\\"APPLE_FRAMEWORKS_ROOT\\\"\" -m64 -g -Os -fno-exceptions -fvisibility=hidden" \ +CXXFLAGS="-std=c++11 -DU_SHOW_CPLUSPLUS_API=1 -DU_SHOW_INTERNAL_API=1 -DICU_DATA_DIR=\"\\\"/usr/local/share/icu/\\\"\" -DICU_DATA_DIR_PREFIX_ENV_VAR=\"\\\"APPLE_FRAMEWORKS_ROOT\\\"\" -m64 -g -Os -fno-exceptions -fvisibility=hidden -fvisibility-inlines-hidden" \ +DYLD_LIBRARY_PATH="/usr/local/lib" \ +make