-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathAndroid.mk
81 lines (75 loc) · 1.8 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
LOCAL_PATH := $(call my-dir)
LOCAL_PATH_BKP := $(LOCAL_PATH)
# go build target bins
include $(call all-subdir-makefiles)
LOCAL_PATH := $(LOCAL_PATH_BKP)
## Host ##
include $(CLEAR_VARS)
LOCAL_MODULE := stap
LOCAL_MODULE_TAGS := optional
LOCAL_CPP_EXTENSION:=.cxx
LOCAL_SRC_FILES := \
main.cxx \
session.cxx \
parse.cxx \
staptree.cxx \
elaborate.cxx \
translate.cxx \
tapsets.cxx \
buildrun.cxx \
loc2c.c \
hash.cxx \
mdfour.c \
cache.cxx \
util.cxx \
coveragedb.cxx \
dwarf_wrappers.cxx \
tapset-been.cxx \
tapset-procfs.cxx \
tapset-timers.cxx \
tapset-netfilter.cxx \
tapset-perfmon.cxx \
tapset-mark.cxx \
tapset-itrace.cxx \
tapset-utrace.cxx \
tapset-dynprobe.cxx \
re2c-migrate/re2c-dfa.cxx \
re2c-migrate/re2c-emit.cxx \
re2c-migrate/re2c-globals.cxx \
re2c-migrate/re2c-regex.cxx \
re2c-migrate/stapregex.cxx \
task_finder.cxx \
dwflpp.cxx \
rpm_finder.cxx \
setupdwfl.cxx \
remote.cxx \
privilege.cxx \
cmdline.cxx
LOCAL_C_INCLUDES += \
$(LOCAL_PATH)/includes \
$(LOCAL_PATH)/android/host \
$(LOCAL_PATH)/android/ \
external/elfutils-redhat/ \
external/elfutils-redhat/libdwfl \
external/elfutils-redhat/libdw \
external/elfutils-redhat/libelf
LOCAL_MODULE_CLASS := EXECUTABLES
intermediates := $(call local-intermediates-dir)
GEN:=$(addprefix $(intermediates)/,git_version.h)
$(GEN) : PRIVATE_CUSTOM_TOOL = external/systemtap/git_version.sh -k -s external/systemtap -o $@
$(GEN) : PRIVATE_PATH := $(LOCAL_PATH)
$(GEN) :
$(transform-generated-source)
LOCAL_C_INCLUDES += $(intermediates)
LOCAL_GENERATED_SOURCES = $(GEN)
LOCAL_CFLAGS += \
-DLOCALEDIR='""' \
-DBINDIR='""' \
-DPKGDATADIR='""' \
-fexceptions \
-Wall \
-Wno-unused-parameter \
-Wformat=2
LOCAL_LDLIBS += -lpthread -ldl
LOCAL_SHARED_LIBRARIES := libdwflrh libdwrh libeblrh libelfrh
include $(BUILD_HOST_EXECUTABLE)