Update buildjdk.sh

This commit is contained in:
Tran Khanh Duy 2020-10-24 05:20:33 +07:00 committed by GitHub
parent c6d4fb2dc6
commit 2cf38d777e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,7 @@ export FREETYPE_DIR=`pwd`/freetype-2.6.2/build_android-${TARGET_SHORT}
export CUPS_DIR=`pwd`/cups-2.2.4 export CUPS_DIR=`pwd`/cups-2.2.4
# simplest to force headless:) # simplest to force headless:)
export CPPFLAGS+=" -DHEADLESS" # -I$FREETYPE_DIR -I$CUPS_DIR export CPPFLAGS+=" -DHEADLESS=1" # -I$FREETYPE_DIR -I$CUPS_DIR
# It isn't good, but need make it build anyways # It isn't good, but need make it build anyways
# cp -R $CUPS_DIR/* $ANDROID_INCLUDE/ # cp -R $CUPS_DIR/* $ANDROID_INCLUDE/
@ -29,11 +29,10 @@ export LDFLAGS+=" -L`pwd`/dummy_libs -Wl,--warn-unresolved-symbols"
cd openjdk cd openjdk
rm -rf build rm -rf build
# --with-extra-cxxflags="$CXXFLAGS --std=c++11" \ --with-extra-cxxflags="$CXXFLAGS -Dchar16_t=uint16_t -Dchar32_t=uint32_t" \
bash ./configure \ bash ./configure \
--disable-headful \ --disable-headful \
--with-extra-cflags="$CPPFLAGS" \ --with-extra-cflags="$CPPFLAGS" \
--with-extra-cflags="$CXXFLAGS -Dchar16_t=uint16_t -Dchar32_t=uint32_t" \
--with-extra-ldflags="$LDFLAGS" \ --with-extra-ldflags="$LDFLAGS" \
--enable-option-checking=fatal \ --enable-option-checking=fatal \
--openjdk-target=$TARGET \ --openjdk-target=$TARGET \