Skip to content

Commit b78447f

Browse files
committedAug 10, 2019
Update makefiles to support ndk build r13b
1 parent a5f2d39 commit b78447f

File tree

5 files changed

+11
-12
lines changed

5 files changed

+11
-12
lines changed
 

‎.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@
1414
/scidOnTheGo/build
1515
/chessEngineSupportLibrary/build
1616
/scidOnTheGo/src/main/jniLibs
17+
/scidOnTheGo/src/main/libs
18+
/scidOnTheGo/src/main/obj

‎scidOnTheGo/build.gradle

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ android {
44
compileSdkVersion 29
55
buildToolsVersion "28.0.3"
66

7+
sourceSets.main {
8+
jniLibs.srcDir 'src/main/libs'
9+
jni.srcDirs = [] //disable automatic ndk-build call
10+
}
11+
712
defaultConfig {
813
applicationId "org.scid.android"
914
minSdkVersion 14

‎scidOnTheGo/src/main/jni/Android.mk

+1-5
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,9 @@ LOCAL_PATH := $(call my-dir)
22

33
include $(CLEAR_VARS)
44

5+
LOCAL_LDLIBS := -llog -latomic
56
LOCAL_MODULE := jni
67
LOCAL_SRC_FILES := jniscid.cpp
7-
LOCAL_LDLIBS := -llog
8-
9-
LOCAL_CFLAGS := -mandroid \
10-
-DTARGET_OS=android -D__ANDROID__ \
11-
-isystem $(SYSROOT)/usr/include
128

139
LOCAL_STATIC_LIBRARIES := scid
1410

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
APP_ABI := armeabi armeabi-v7a x86
2-
APP_STL := stlport_static
1+
APP_ABI := all
2+
APP_STL := stlport_static
3+
NDK_TOOLCHAIN_VERSION=clang

‎scidOnTheGo/src/main/jni/scid/Android.mk

-5
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ LOCAL_SRC_FILES := \
1010
mfile.cpp dstring.cpp pgnparse.cpp stored.cpp \
1111
movelist.cpp
1212

13-
LOCAL_CFLAGS := -mandroid \
14-
-DTARGET_OS=android -D__ANDROID__ \
15-
-isystem $(SYSROOT)/usr/include \
16-
-DNO_PREFETCH=1
17-
1813
LOCAL_STATIC_LIBRARIES :=
1914

2015
include $(BUILD_STATIC_LIBRARY)

0 commit comments

Comments
 (0)
Failed to load comments.