forked from rovo89/Xposed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ART.mk
51 lines (41 loc) · 1.2 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
##########################################################
# 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
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)