1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00

CI: Allow disabling Native Language Support.

This commit is contained in:
Jia Tan 2023-01-12 23:09:03 +08:00
parent 0dec634e70
commit 4110a998b8

View file

@ -19,7 +19,7 @@ set -e
USAGE="Usage: $0 USAGE="Usage: $0
-b [autotools|cmake] -b [autotools|cmake]
-c [crc32|crc64|sha256] -c [crc32|crc64|sha256]
-d [encoders|decoders|bcj|delta|threads|shared] -d [encoders|decoders|bcj|delta|threads|shared|nls]
-l [destdir] -l [destdir]
-s [srcdir] -s [srcdir]
-p [all|build|test] -p [all|build|test]
@ -37,6 +37,7 @@ ENCODERS="y"
DECODERS="y" DECODERS="y"
THREADS="y" THREADS="y"
SHARED="y" SHARED="y"
NATIVE_LANG_SUPPORT="y"
SRC_DIR="$ABS_DIR/../" SRC_DIR="$ABS_DIR/../"
DEST_DIR="$SRC_DIR/../xz_build" DEST_DIR="$SRC_DIR/../xz_build"
PHASE="all" PHASE="all"
@ -80,6 +81,7 @@ while getopts b:c:d:l:s:p:f:h opt; do
delta) DELTA="n" ;; delta) DELTA="n" ;;
threads) THREADS="n" ;; threads) THREADS="n" ;;
shared) SHARED="n";; shared) SHARED="n";;
nls) NATIVE_LANG_SUPPORT="n";;
*) echo "Invalid disable value: $disable_arg"; exit 1 ;; *) echo "Invalid disable value: $disable_arg"; exit 1 ;;
esac esac
done done
@ -150,6 +152,11 @@ if [ "$PHASE" = "all" ] || [ "$PHASE" = "build" ]; then
EXTRA_OPTIONS="$EXTRA_OPTIONS --disable-shared" EXTRA_OPTIONS="$EXTRA_OPTIONS --disable-shared"
fi fi
if [ "$NATIVE_LANG_SUPPORT" = "n" ]
then
EXTRA_OPTIONS="$EXTRA_OPTIONS --disable-nls"
fi
# Run configure script # Run configure script
"$SRC_DIR"/configure --enable-werror --enable-checks=$CHECK_TYPE $EXTRA_OPTIONS "$SRC_DIR"/configure --enable-werror --enable-checks=$CHECK_TYPE $EXTRA_OPTIONS