Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
StArrayJaN committed Oct 26, 2023
1 parent 09e003d commit 02c5c32
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
8 changes: 7 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,13 @@ android {
jniDebuggable true
}
}


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

lintOptions {
checkReleaseBuilds false
}
Expand Down
File renamed without changes.
File renamed without changes.
9 changes: 5 additions & 4 deletions app/src/main/jni/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ LOCAL_MODULE:= libmui

LOCAL_CFLAGS := -w -s -Wno-error=format-security -fvisibility=hidden -fpermissive -fexceptions
LOCAL_CPPFLAGS := -std=c++17
LOCAL_CPPFLAGS += -w -s -Wno-error=format-security -fvisibility=hidden -Werror
LOCAL_CPPFLAGS += -w -s -Wno-error=format-security -fvisibility=hidden -Werror
LOCAL_CPPFLAGS += -Wno-error=c++11-narrowing -fpermissive -Wall -fexceptions
LOCAL_CPPFLAGS += -I$(LOCAL_PATH)/Include -I$(LOCAL_PATH)/Include/Imgui -I$(LOCAL_PATCH)/Includes -I$(LOCAL_PATH)/And64InlineHook

Expand All @@ -45,11 +45,12 @@ LOCAL_SRC_FILES:= Source/Imgui/imgui.cpp \
Source/MyFile.cpp \
Platinmods/PlatinmodsUtils.cpp \
Platinmods/PlatinmodsMemoryPatch.cpp \
native-lib.cpp
native-lib.cpp

LOCAL_LDLIBS := -ldl -llog -lEGL -lGLESv3 -landroid
include $(BUILD_SHARED_LIBRARY)

#以下用于兼容AIDE构建
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE:= wmw
Expand All @@ -60,4 +61,4 @@ LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE:= fmodex
LOCAL_SRC_FILES:= $(LOCAL_PATH)/libfmodex.so
include $(PREBUILT_SHARED_LIBRARY)
include $(PREBUILT_SHARED_LIBRARY)
2 changes: 1 addition & 1 deletion setupNDK.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ curl -O https://dl.google.com/android/repository/android-ndk-r23-linux.zip
unzip android-ndk-r23-linux.zip
mv android-ndk-r23 23.0.7599858
cd $OLDPWD
cp nativelib/*.so /usr/local/lib/android/sdk/ndk/23.0.7599858/build/core/
cp app/libs/arm64-v8a/*.so /usr/local/lib/android/sdk/ndk/23.0.7599858/build/core/

0 comments on commit 02c5c32

Please sign in to comment.