configure.ac, Makefile.am: add variable ANDROID_ABI
This commit is contained in:
parent
98efb4f6d5
commit
a4e0b52468
@ -341,7 +341,7 @@ android/build/include/org_musicpd_Bridge.h: android/build/classes.dex
|
|||||||
|
|
||||||
BUILT_SOURCES = android/build/include/org_musicpd_Bridge.h
|
BUILT_SOURCES = android/build/include/org_musicpd_Bridge.h
|
||||||
|
|
||||||
android/build/lib/armeabi-v7a/libmpd.so: libmpd.so
|
android/build/lib/$(ANDROID_ABI)/libmpd.so: libmpd.so
|
||||||
mkdir -p $(@D)
|
mkdir -p $(@D)
|
||||||
rm -f $@
|
rm -f $@
|
||||||
$(STRIP) -o $@ $<
|
$(STRIP) -o $@ $<
|
||||||
@ -351,7 +351,7 @@ android/build/res/drawable/icon.png: mpd.svg
|
|||||||
rsvg-convert --width=48 --height=48 $< -o $@
|
rsvg-convert --width=48 --height=48 $< -o $@
|
||||||
|
|
||||||
.DELETE_ON_ERROR: android/build/unsigned.apk
|
.DELETE_ON_ERROR: android/build/unsigned.apk
|
||||||
android/build/unsigned.apk: android/build/classes.dex android/build/resources.apk android/build/lib/armeabi-v7a/libmpd.so
|
android/build/unsigned.apk: android/build/classes.dex android/build/resources.apk android/build/lib/$(ANDROID_ABI)/libmpd.so
|
||||||
cp android/build/resources.apk $@
|
cp android/build/resources.apk $@
|
||||||
cd $(dir $@) && zip -q -r $(notdir $@) classes.dex lib
|
cd $(dir $@) && zip -q -r $(notdir $@) classes.dex lib
|
||||||
|
|
||||||
|
@ -186,6 +186,7 @@ AC_ARG_WITH([android-sdk],
|
|||||||
[Directory for Android SDK]),
|
[Directory for Android SDK]),
|
||||||
[], [with_android_sdk=no])
|
[], [with_android_sdk=no])
|
||||||
|
|
||||||
|
android_abi=""
|
||||||
if test x$host_is_android = xyes; then
|
if test x$host_is_android = xyes; then
|
||||||
if test x$with_android_sdk = xno; then
|
if test x$with_android_sdk = xno; then
|
||||||
AC_MSG_ERROR([Android build requires option --with-android-sdk=DIR])
|
AC_MSG_ERROR([Android build requires option --with-android-sdk=DIR])
|
||||||
@ -194,9 +195,12 @@ if test x$host_is_android = xyes; then
|
|||||||
if ! test -x $with_android_sdk/tools/android; then
|
if ! test -x $with_android_sdk/tools/android; then
|
||||||
AC_MSG_ERROR([Android SDK not found in $with_android_sdk])
|
AC_MSG_ERROR([Android SDK not found in $with_android_sdk])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
android_abi="armeabi-v7a"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_SUBST(ANDROID_SDK, [$with_android_sdk])
|
AC_SUBST(ANDROID_SDK, [$with_android_sdk])
|
||||||
|
AC_SUBST(ANDROID_ABI, [$android_abi])
|
||||||
|
|
||||||
dnl ---------------------------------------------------------------------------
|
dnl ---------------------------------------------------------------------------
|
||||||
dnl Language Checks
|
dnl Language Checks
|
||||||
|
Loading…
Reference in New Issue
Block a user