Skip to content

Commit

Permalink
ndk构建测试
Browse files Browse the repository at this point in the history
  • Loading branch information
StArrayJaN committed Oct 26, 2023
1 parent d02ef67 commit d20f3a3
Show file tree
Hide file tree
Showing 47 changed files with 19 additions and 10 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
/.gradle
/local.properties
/push.sh
/app/src/main/obj
/app/src/main/obj
/app/src/main/jniLibs
/app/src/main/libs
10 changes: 3 additions & 7 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apply plugin: 'com.android.application'
android {
compileSdkVersion 30
buildToolsVersion '30.0.2'
ndkVersion '23.0.7599858'
namespace "thercn.wmw"
signingConfigs {
release {
Expand Down Expand Up @@ -30,12 +31,7 @@ android {
jniDebuggable true
}
}

sourceSets {
main {
jniLibs.srcDirs = ['libs']
}
}

lintOptions {
checkReleaseBuilds false
}
Expand All @@ -44,7 +40,7 @@ repositories {
maven {
google()
url "https://jitpack.io"
url "https://maven.google.com"
url "https://maven.google.com"
mavenCentral()
}
}
Expand Down
Binary file removed app/libs/arm64-v8a/libmui.so
Binary file not shown.
12 changes: 10 additions & 2 deletions app/src/main/jn/Android.mk → app/src/main/jni/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ LOCAL_SRC_FILES:= Source/Imgui/imgui.cpp \
LOCAL_LDLIBS := -ldl -llog -lEGL -lGLESv3 -landroid
include $(BUILD_SHARED_LIBRARY)

$(info $(shell cp -r $(LOCAL_PATH)/../../../libs/arm64-v8a $(LOCAL_PATH)/../libs))
$(info $(shell cp -r $(LOCAL_PATH)/../../../libs/arm64-v8a $(LOCAL_PATH)/../jniLibs))
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE:= wmw
LOCAL_SRC_FILES:= $(LOCAL_PATH)/libwmw.so
include $(PREBUILT_SHARED_LIBRARY)

LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE:= fmodex
LOCAL_SRC_FILES:= $(LOCAL_PATH)/libfmodex.so
include $(PREBUILT_SHARED_LIBRARY)
File renamed without changes.
1 change: 1 addition & 0 deletions app/src/main/jni/Binary/fmodex.s
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.incbin "libfmodex.so"
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions app/src/main/jni/Binary/wmw.s
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.incbin "libwmw.so"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file modified app/src/main/jniLibs/arm64-v8a/libfmodex.so
Binary file not shown.
Binary file modified app/src/main/jniLibs/arm64-v8a/libwmw.so
Binary file not shown.
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
android.useAndroidX=true
ndkVersion=23.0.7599858
Binary file added nativelib/libfmodex.so
Binary file not shown.
Binary file added nativelib/libwmw.so
Binary file not shown.

0 comments on commit d20f3a3

Please sign in to comment.