-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAndroid.mk
62 lines (39 loc) · 1.96 KB
/
Android.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
LOCAL_PATH := $(call my-dir)
####################################################################################################
#include $(CLEAR_VARS)
LOCAL_MODULE := bootstrap
LOCAL_MODULE_FILENAME := libbootstrap
cmd-strip = $(TOOLCHAIN_PREFIX)strip --strip-unneeded -x $1
LOCAL_SRC_FILES := \
xhook/xhook.c \
xhook/xh_core.c \
xhook/xh_elf.c \
xhook/xh_jni.c \
xhook/xh_log.c \
xhook/xh_util.c \
xhook/xh_version.c \
bootstrap.cpp \
zip/shadow_zip.cpp \
zip/ZipEntry.cpp \
zip/ZipFile.cpp
LOCAL_CFLAGS := -Izip -DTARGET_ARCH_ABI=\"$(TARGET_ARCH_ABI)\" -DBUNDLE_ID=\"cn.noodle1983.unitypatchdemo*\" -std=c11 -fvisibility=hidden
LOCAL_CPPFLAGS := -Izip -DTARGET_ARCH_ABI=\"$(TARGET_ARCH_ABI)\" -DBUNDLE_ID=\"cn.noodle1983.unitypatchdemo*\" -std=c++11 -fvisibility=hidden
LOCAL_LDLIBS := -llog -L$(LOCAL_PATH)/../../libs/$(TARGET_ARCH_ABI)
LOCAL_C_INCLUDES += system/core/include/cutils
LOCAL_SHARED_LIBRARIES :=
include $(BUILD_SHARED_LIBRARY)
####################################################################################################
####################################################################################################
#include $(CLEAR_VARS)
LOCAL_MODULE := test_pthread_mutex
LOCAL_MODULE_FILENAME := test_pthread_mutex
cmd-strip = $(TOOLCHAIN_PREFIX)strip --strip-unneeded -x $1
LOCAL_SRC_FILES := unittest/test_mutex.cpp
LOCAL_CFLAGS := -g -O0 -std=c11 -fvisibility=hidden -pie -fPIE
LOCAL_CPPFLAGS := -g -O0 -std=c++11 -fvisibility=hidden -pie -fPIE
LOCAL_LDFLAGS += -pie -fPIE
LOCAL_LDLIBS := -llog -L$(LOCAL_PATH)/../../libs/$(TARGET_ARCH_ABI)
LOCAL_C_INCLUDES += system/core/include/cutils
LOCAL_SHARED_LIBRARIES :=
include $(BUILD_EXECUTABLE)
####################################################################################################