forked from rovo89/Xposed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Android.mk
53 lines (41 loc) · 1.19 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
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
app_main.cpp \
xposed.cpp
LOCAL_SHARED_LIBRARIES := \
libcutils \
libutils \
libbinder \
libandroid_runtime \
libdvm \
libstlport \
libdl
ifneq ($(PLATFORM_SDK_VERSION),15)
LOCAL_SHARED_LIBRARIES += libandroidfw
endif
LOCAL_C_INCLUDES += dalvik \
dalvik/vm \
external/stlport/stlport \
bionic \
bionic/libstdc++/include
LOCAL_MODULE_TAGS := optional
LOCAL_CFLAGS += -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)
ifeq ($(strip $(WITH_JIT)),true)
LOCAL_CFLAGS += -DWITH_JIT
endif
ifeq ($(strip $(XPOSED_SHOW_OFFSETS)),true)
LOCAL_CFLAGS += -DXPOSED_SHOW_OFFSETS
endif
LOCAL_CFLAGS += -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)
LOCAL_MODULE := xposed
LOCAL_MODULE_STEM := app_process_xposed_sdk$(PLATFORM_SDK_VERSION)
include $(BUILD_EXECUTABLE)
### binary compatibility test executable
include $(CLEAR_VARS)
LOCAL_SRC_FILES := xposedtest.cpp
LOCAL_MODULE := xposedtest
LOCAL_MODULE_STEM := xposedtest_sdk$(PLATFORM_SDK_VERSION)
LOCAL_MODULE_TAGS := optional
LOCAL_CFLAGS += -O0 # no optimizations like inline etc.
include $(BUILD_EXECUTABLE)