Separate all Android.mk files

This commit is contained in:
topjohnwu 2016-12-30 06:06:19 +08:00
parent 632b3cb9ae
commit 99406f2099
5 changed files with 7 additions and 32 deletions

View File

@ -1,6 +1,4 @@
my_path := $(call my-dir) LOCAL_PATH := $(call my-dir)
LOCAL_PATH := $(my_path)
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE := magiskhide LOCAL_MODULE := magiskhide
@ -16,30 +14,9 @@ LOCAL_SRC_FILES := bootimgtools/main.c bootimgtools/extract.c bootimgtools/repac
LOCAL_CFLAGS += -std=gnu11 LOCAL_CFLAGS += -std=gnu11
include $(BUILD_EXECUTABLE) include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS) include jni/resetprop/Android.mk
LOCAL_MODULE := sepolicy-inject include jni/sepolicy-inject/Android.mk
LOCAL_MODULE_TAGS := optional include jni/su/Android.mk
LOCAL_STATIC_LIBRARIES := libsepol
LOCAL_SRC_FILES := sepolicy-inject/sepolicy-inject.c sepolicy-inject/builtin_rules.c
LOCAL_C_INCLUDES := jni/selinux/libsepol/include/
LOCAL_CFLAGS += -std=gnu11
include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS)
LOCAL_MODULE := resetprop
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := resetprop/resetprop.cpp resetprop/system_properties.cpp resetprop/libc_logging.cpp
LOCAL_LDLIBS += -latomic
include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS)
LOCAL_MODULE := su
LOCAL_MODULE_TAGS := eng debug optional
LOCAL_STATIC_LIBRARIES := libselinux
LOCAL_C_INCLUDES := jni/selinux/libselinux/include/ jni/selinux/libsepol/include/ jni/su/sqlite3/
LOCAL_SRC_FILES := su/su.c su/daemon.c su/activity.c su/db.c su/utils.c su/pts.c su/hacks.c su/binds.c su/sqlite3/sqlite3.c
LOCAL_CFLAGS := -DSQLITE_OMIT_LOAD_EXTENSION -std=gnu11
include $(BUILD_EXECUTABLE)
include jni/selinux/libsepol/Android.mk include jni/selinux/libsepol/Android.mk
include jni/selinux/libselinux/Android.mk include jni/selinux/libselinux/Android.mk

View File

@ -1,6 +1,4 @@
NDK_TOOLCHAIN_VERSION=4.9
APP_ABI := x86 x86_64 armeabi arm64-v8a APP_ABI := x86 x86_64 armeabi arm64-v8a
APP_PIE = true APP_PIE = true
APP_PLATFORM := android-21 APP_PLATFORM := android-21
APP_CPPFLAGS += -std=c++11 APP_CPPFLAGS += -std=c++11
# APP_STL := c++_static

@ -1 +1 @@
Subproject commit 96949566fb99b2b74b9bb80398ea45ee90ceb592 Subproject commit 5bafa01da8ea6c82742f96673a89dd6ca668372d

@ -1 +1 @@
Subproject commit f760a9d0c2fb86786d880c72b83d82d16cb35301 Subproject commit 7dea682713cc81532291c8e8365b13b5a592e9c6

2
jni/su

@ -1 +1 @@
Subproject commit 8475cecfeb47fbc596898fb9fb296b5027bdc46b Subproject commit 7b1d3cf08e3376983837242e74f9d220bbbcc7cb