-
Notifications
You must be signed in to change notification settings - Fork 0
/
Android.mk
181 lines (149 loc) · 4.05 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
processrecordfile_src_files := \
src/ftraceentry.cpp \
src/processchange.cpp \
src/schedswitchentrycreator.cpp \
src/schedwakeupentrycreator.cpp \
src/simpleftraceentrybynamecreator.cpp \
src/simpleftraceentryfile.cpp \
src/simpleprocesschangefile.cpp \
src/simpleprocess.cpp \
src/simpleprocessrecordfile.cpp \
src/memoryentrycreator.cpp \
src/androidentrycreator.cpp \
src/tracingmarkentrycreator.cpp \
src/emptyentrycreator.cpp \
common_src_files := \
src/signal.cpp \
src/cmdlineapp.cpp \
src/environment.cpp \
src/listsupportedcategories.cpp \
src/addandroidcoretotrace.cpp \
src/sleepaction.cpp \
src/startaction.cpp \
src/streamaction.cpp \
src/cleanupaction.cpp \
src/stopaction.cpp \
src/dumpaction.cpp \
src/showhelpaction.cpp \
src/interpretdumpfileaction.cpp \
src/actionsrunner.cpp \
src/extracearguments.cpp \
src/extraceargumentsbuilder.cpp \
src/androidtoolbox.cpp \
src/arguments.cpp \
src/cmdlineargsparser.cpp \
src/cmdlineargs.cpp \
src/wire.cpp \
src/systemtime_impl.cpp \
src/filesystem_impl.cpp \
src/trace_impl.cpp \
src/ftrace.cpp \
src/kerneltracesystem.cpp \
src/simplefiledata.cpp \
src/filedataslice.cpp \
src/ftracebufferfile.cpp \
src/simplefiledatamaker.cpp \
src/simpleandroidtracesystem.cpp \
src/kerneltracecategory.cpp \
src/androidtracecategory.cpp \
src/cpuguard.cpp \
src/rssguard.cpp \
src/ussfilter.cpp \
libbinder_files := \
src/android_impl.cpp \
src/environmentbuilder.cpp \
src/extraceactionsrunnerbuilder.cpp \
src/extraceactioncmdlinebuilder.cpp \
libz_files := \
src/compressedfiledata.cpp \
src/compressedfiledatamaker.cpp \
pagemap_files := \
src/pm_kernelbuilder.cpp \
src/pm_kernel.cpp \
src/pm_process.cpp \
src/pm_abstractmemoryusage.cpp \
src/pm_memoryusage.cpp \
src/pm_workingset.cpp \
src/memorysampleaction.cpp \
common_test_files := \
src/arguments_test.cpp \
src/schedswitchentrycreator_test.cpp \
src/cmdlineargsparser_test.cpp \
src/schedwakeupentrycreator_test.cpp \
src/extrace_test.cpp \
src/processrecordfile_test.cpp \
src/simpleprocesschangefile_test.cpp \
src/processrecord_test.cpp \
src/memoryentrycreator_test.cpp \
src/androidentrycreator_test.cpp \
"src/cpuguard_test.cpp" \
"src/rssguard_test.cpp" \
local_test_files := \
src/simpleftraceentryfile_test.cpp \
common_cflags := \
-Wall \
-std=c++11 \
-pedantic \
LOCAL_PATH:= $(call my-dir)
# extrace
# ==========
include $(CLEAR_VARS)
LOCAL_SRC_FILES:= \
$(libbinder_files) \
$(libz_files) \
$(common_src_files) \
$(processrecordfile_src_files) \
$(pagemap_files) \
src/extrace.cpp \
LOCAL_MODULE:= extrace
LOCAL_CPPFLAGS := $(common_cflags)
LOCAL_C_INCLUDES += external/zlib
LOCAL_MODULE_TAGS:= optional
LOCAL_SHARED_LIBRARIES := \
libbinder \
libcutils \
libutils \
libz \
libpagemap \
include $(BUILD_EXECUTABLE)
# extrace_test target
# ===================
include $(CLEAR_VARS)
LOCAL_MODULE := extrace_test
LOCAL_MODULE_TAGS := tests
LOCAL_CPPFLAGS := $(common_cflags)
LOCAL_SRC_FILES := \
$(libbinder_files) \
$(libz_files) \
$(common_src_files) \
$(processrecordfile_src_files) \
${common_test_files} \
src/extrace_test.cpp \
LOCAL_STATIC_LIBRARIES := \
libgmock \
LOCAL_SHARED_LIBRARIES := \
libbinder \
libcutils \
libutils \
libz \
include $(BUILD_NATIVE_TEST)
# extrace_test host
# =================
include $(CLEAR_VARS)
LOCAL_MODULE := extrace_test_host
LOCAL_MODULE_TAGS := tests
LOCAL_MODULE_HOST := linux
LOCAL_CPPFLAGS := $(common_cflags)
LOCAL_C_INCLUDES := $(TOP)/system/core/cutils
LOCAL_SRC_FILES := \
$(common_src_files) \
$(processrecordfile_src_files) \
${common_test_files} \
src/extrace_test.cpp \
LOCAL_STATIC_LIBRARIES := \
libgmock_host \
LOCAL_SHARED_LIBRARIES := \
libutils \
libbacktrace \
libcutils \
include $(BUILD_HOST_NATIVE_TEST)