Skip to content

Commit

Permalink
Use make instead of cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
DerGoogler committed Oct 27, 2023
1 parent e9d65f3 commit 689cf7d
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 29 deletions.
11 changes: 7 additions & 4 deletions Android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ android {
arguments "-DANDROID_STL=c++_shared"
}
}

project.tasks.preBuild.dependsOn("webProd")

ndk {
abiFilters "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
}
Expand All @@ -43,7 +46,7 @@ android {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
multiDexEnabled true
project.tasks.preBuild.dependsOn("webProd")
// project.tasks.preBuild.dependsOn("webProd")
}
debug {
resValue "string", "app_name", "${app_name} Debug"
Expand All @@ -52,12 +55,12 @@ android {
minifyEnabled false
multiDexEnabled false
applicationIdSuffix '.debug'
project.tasks.preBuild.dependsOn("webDev")
// project.tasks.preBuild.dependsOn("webDev")
}
}
externalNativeBuild {
cmake {
path = file("src/main/cpp/CMakeLists.txt")
ndkBuild {
path("src/main/cpp/Android.mk")
}
}
compileOptions {
Expand Down
17 changes: 17 additions & 0 deletions Android/app/src/main/cpp/Android.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE := libshell
LOCAL_SRC_FILES := shell.cpp
include $(BUILD_SHARED_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE := libproperties
LOCAL_SRC_FILES := properties.cpp
include $(BUILD_SHARED_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE := libclog
LOCAL_SRC_FILES := clog.cpp
LOCAL_LDLIBS := -llog
include $(BUILD_SHARED_LIBRARY)
22 changes: 0 additions & 22 deletions Android/app/src/main/cpp/CMakeLists.txt

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
public class NativeLog {

static {
System.loadLibrary("native-log-lib");
System.loadLibrary("clog");
}

@JavascriptInterface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
public class NativeProperties {

static {
System.loadLibrary("native-properties-lib");
System.loadLibrary("properties");
}

@JavascriptInterface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public NativeShell(WebView wv) {
}

static {
System.loadLibrary("native-shell-lib");
System.loadLibrary("shell");
}

@JavascriptInterface
Expand Down

0 comments on commit 689cf7d

Please sign in to comment.