Build debug and release library variants

This commit is contained in:
Cameron Gutman 2017-06-08 19:55:28 -07:00
parent c8339d5eae
commit 8c09154183
4 changed files with 12 additions and 8 deletions

View File

@ -1,12 +1,15 @@
apply plugin: 'com.android.library'
android {
compileSdkVersion 25
buildToolsVersion "25.0.3"
compileSdkVersion 26
buildToolsVersion "26.0.0"
// Build release and debug libs
publishNonDefault true
defaultConfig {
minSdkVersion 16
targetSdkVersion 25
targetSdkVersion 26
ndk {
abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64", "mips", "mips64"

View File

@ -5,6 +5,3 @@ APP_PLATFORM := android-16
# Support all modern ABIs
APP_ABI := armeabi-v7a arm64-v8a x86 x86_64 mips mips64
# We want an optimized build
APP_OPTIM := release

View File

@ -43,7 +43,11 @@ LOCAL_C_INCLUDES := $(LOCAL_PATH)/moonlight-common-c/enet/include \
$(LOCAL_PATH)/moonlight-common-c/reedsolomon \
$(LOCAL_PATH)/moonlight-common-c/src \
LOCAL_CFLAGS := -DHAS_SOCKLEN_T=1 -DLC_ANDROID -DLC_DEBUG
LOCAL_CFLAGS := -DHAS_SOCKLEN_T=1 -DLC_ANDROID
ifeq ($(NDK_DEBUG),1)
LOCAL_CFLAGS += -DLC_DEBUG
endif
LOCAL_LDLIBS := -llog

@ -1 +1 @@
Subproject commit 634031839ca4b2b122278c36c5fc604e770bebbb
Subproject commit c01deff683d9192a71f851815dbea4bba14e4f04