forked from rovo89/Xposed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ART.mk
55 lines (44 loc) · 1.31 KB
/
ART.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
##########################################################
# Library for ART-specific functions
##########################################################
include $(CLEAR_VARS)
include art/build/Android.common_build.mk
$(eval $(call set-target-local-clang-vars))
$(eval $(call set-target-local-cflags-vars,ndebug))
ifeq (1,$(strip $(shell expr $(PLATFORM_SDK_VERSION) \>= 23)))
LOCAL_C_INCLUDES += \
external/valgrind \
external/valgrind/include
else
include external/libcxx/libcxx.mk
LOCAL_C_INCLUDES += \
external/valgrind/main \
external/valgrind/main/include
endif
LOCAL_SRC_FILES += \
libxposed_common.cpp \
libxposed_art.cpp
LOCAL_C_INCLUDES += \
art/runtime \
external/gtest/include
ifeq (1,$(strip $(shell expr $(PLATFORM_SDK_VERSION) \>= 24)))
LOCAL_C_INCLUDES += bionic/libc/private
endif
LOCAL_SHARED_LIBRARIES += \
libart \
liblog \
libcutils \
libandroidfw \
libnativehelper
LOCAL_CFLAGS += \
-DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION) \
-DXPOSED_WITH_SELINUX=1
LOCAL_MODULE := libxposed_art
LOCAL_MODULE_TAGS := optional
LOCAL_STRIP_MODULE := keep_symbols
LOCAL_MULTILIB := both
# Always build both architectures (if applicable)
ifeq ($(TARGET_IS_64_BIT),true)
$(LOCAL_MODULE): $(LOCAL_MODULE)$(TARGET_2ND_ARCH_MODULE_SUFFIX)
endif
include $(BUILD_SHARED_LIBRARY)