Add SCons Alias for android native lib.
This commit is contained in:
parent
f87a136929
commit
413b2453b5
2 changed files with 2 additions and 1 deletions
|
@ -9,7 +9,7 @@ for arch in "x86_64" "armeabi-v7a" "arm64-v8a" "x86"
|
|||
do
|
||||
mkdir -p $BUILDDIR_PREFIX/wesnoth-$arch
|
||||
pushd $BUILDDIR_PREFIX/wesnoth-$arch
|
||||
scons -j`nproc` -Y $REPO prefix=$BUILDDIR_PREFIX/android-prefix/$arch host=android-$arch ndkdir=$NDKDIR extra_flags_config=-lm autorevision=false android_api=23 android_home=$ANDROID_HOME wesnoth
|
||||
scons -j`nproc` -Y $REPO prefix=$BUILDDIR_PREFIX/android-prefix/$arch host=android-$arch ndkdir=$NDKDIR extra_flags_config=-lm autorevision=false android_api=23 android_home=$ANDROID_HOME native-lib
|
||||
popd
|
||||
|
||||
LIBDIR=$REPO/packaging/android/app/src/main/jniLibs/$arch
|
||||
|
|
|
@ -180,6 +180,7 @@ elif env["PLATFORM"] == 'win32':
|
|||
elif env["PLATFORM"] == 'android':
|
||||
client_env["CPPDEFINES"].remove("SDL_MAIN_HANDLED")
|
||||
wesnoth = client_env.SharedLibrary("#packaging/android/lib/libmain.so", ["wesnoth.cpp"] + sorted(list(set(wesnoth_client_sources).union(set(libwesnoth_sdl_sources)).union(libwesnoth_widgets_sources))) + shobjs_lua + libwesnoth_core_sources + libwesnoth_game_sources)
|
||||
Alias("native-lib", wesnoth)
|
||||
Export("wesnoth")
|
||||
else:
|
||||
wesnoth = client_env.WesnothProgram("wesnoth", ["wesnoth.cpp"] + libwesnoth_objects, have_client_prereqs)
|
||||
|
|
Loading…
Add table
Reference in a new issue