mirror of
https://github.com/AngelAuraMC/angelauramc-openjdk-build.git
synced 2025-08-03 07:35:59 -04:00
30 lines
914 B
Bash
30 lines
914 B
Bash
# Override GitHub Actions env vars
|
|
export NDK_HOME=`pwd`/android-ndk-r10e
|
|
|
|
export NDK=$NDK_HOME
|
|
export ANDROID_DEVKIT=$NDK/generated-toolchains/android-${TARGET_SHORT}-toolchain
|
|
export TOOLCHAIN=$ANDROID_DEVKIT
|
|
|
|
export ANDROID_INCLUDE=$NDK/platforms/android-21/arch-${TARGET_SHORT}/usr/include
|
|
|
|
export CPPFLAGS="-I$ANDROID_INCLUDE" # -I/usr/include -I/usr/lib
|
|
export LDFLAGS="-L$NDK/platforms/android-21/arch-${TARGET_SHORT}/usr/lib"
|
|
|
|
# Configure and build.
|
|
# Deprecated...
|
|
export AR=$TOOLCHAIN/bin/$TARGET-ar
|
|
export AS=$TOOLCHAIN/bin/$TARGET-as
|
|
export CC=$TOOLCHAIN/bin/$TARGET-gcc
|
|
export CXX=$TOOLCHAIN/bin/$TARGET-g++
|
|
export LD=$TOOLCHAIN/bin/$TARGET-ld
|
|
export RANLIB=$TOOLCHAIN/bin/$TARGET-ranlib
|
|
export STRIP=$TOOLCHAIN/bin/$TARGET-strip
|
|
|
|
# export BUILD_AR=$AR
|
|
# export BUILD_AS=$AS
|
|
# export BUILD_CC=$CC
|
|
# export BUILD_CXX=$CXX
|
|
# export BUILD_LD=$LD
|
|
# export BUILD_RANLIB=$RANLIB
|
|
# export BUILD_STRIP=$STRIP
|