-
-
Notifications
You must be signed in to change notification settings - Fork 292
/
Android.mk
357 lines (212 loc) · 6.38 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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
LOCAL_PATH:= $(call my-dir)
LOCAL_MODULE_TAGS := optional
include $(CLEAR_VARS)
TSLIB_PLUGINDIR := /system/lib/ts/plugins
LOCAL_SRC_FILES := \
src/ts_attach.c \
src/ts_close.c \
src/ts_config.c \
src/ts_error.c \
src/ts_fd.c \
src/ts_get_eventpath.c \
src/ts_load_module.c \
src/ts_open.c \
src/ts_option.c \
src/ts_parse_vars.c \
src/ts_read.c \
src/ts_read_raw.c \
src/ts_setup.c \
src/ts_version.c
LOCAL_C_INCLUDES += $(LOCAL_PATH)/src/
LOCAL_CFLAGS := -DTS_CONF=\"/system/etc/ts.conf\"
LOCAL_CFLAGS += -DPLUGIN_DIR=\"/system/lib/ts/plugins\"
LOCAL_SHARED_LIBRARIES := libdl
LOCAL_MODULE := libts
LOCAL_MODULE_TAGS := optional
LOCAL_PRELINK_MODULE := false
include $(BUILD_SHARED_LIBRARY)
# plugin: input-raw
include $(CLEAR_VARS)
LOCAL_SRC_FILES := plugins/input-raw.c
LOCAL_C_INCLUDES += $(LOCAL_PATH)/src/
LOCAL_SHARED_LIBRARIES := libdl \
libts
LOCAL_MODULE := ts/plugins/input
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)
# plugin: pthres
include $(CLEAR_VARS)
LOCAL_PRELINK_MODULE := false
LOCAL_SRC_FILES := plugins/pthres.c
LOCAL_C_INCLUDES += $(LOCAL_PATH)/src/
LOCAL_SHARED_LIBRARIES := libdl \
libts
LOCAL_MODULE := ts/plugins/pthres
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)
# plugin: linear
include $(CLEAR_VARS)
LOCAL_PRELINK_MODULE := false
LOCAL_SRC_FILES := plugins/linear.c
LOCAL_C_INCLUDES += $(LOCAL_PATH)/src/
LOCAL_CFLAGS += -DTS_POINTERCAL=\"/system/etc/pointercal\"
LOCAL_SHARED_LIBRARIES := libdl \
libts
LOCAL_MODULE := ts/plugins/linear
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)
# plugin: dejitter
include $(CLEAR_VARS)
LOCAL_PRELINK_MODULE := false
LOCAL_SRC_FILES := plugins/dejitter.c
LOCAL_C_INCLUDES += $(LOCAL_PATH)/src/
LOCAL_SHARED_LIBRARIES := libdl \
libts
LOCAL_MODULE := ts/plugins/dejitter
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)
# plugin: skip
include $(CLEAR_VARS)
LOCAL_PRELINK_MODULE := false
LOCAL_SRC_FILES := plugins/skip.c
LOCAL_C_INCLUDES += $(LOCAL_PATH)/src/
LOCAL_SHARED_LIBRARIES := libdl \
libts
LOCAL_MODULE := ts/plugins/skip
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)
# plugin: debounce
include $(CLEAR_VARS)
LOCAL_PRELINK_MODULE := false
LOCAL_SRC_FILES := plugins/debounce.c
LOCAL_C_INCLUDES += $(LOCAL_PATH)/src/
LOCAL_SHARED_LIBRARIES := libdl \
libts
LOCAL_MODULE := ts/plugins/debounce
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)
# plugin: median
include $(CLEAR_VARS)
LOCAL_PRELINK_MODULE := false
LOCAL_SRC_FILES := plugins/median.c
LOCAL_C_INCLUDES += $(LOCAL_PATH)/src/
LOCAL_SHARED_LIBRARIES := libdl \
libts
LOCAL_MODULE := ts/plugins/median
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)
# plugin: iir
include $(CLEAR_VARS)
LOCAL_PRELINK_MODULE := false
LOCAL_SRC_FILES := plugins/iir.c
LOCAL_C_INCLUDES += $(LOCAL_PATH)/src/
LOCAL_SHARED_LIBRARIES := libdl \
libts
LOCAL_MODULE := ts/plugins/iir
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)
# plugin: crop
include $(CLEAR_VARS)
LOCAL_PRELINK_MODULE := false
LOCAL_SRC_FILES := plugins/crop.c
LOCAL_C_INCLUDES += $(LOCAL_PATH)/src/
LOCAL_SHARED_LIBRARIES := libdl \
libts
LOCAL_MODULE := ts/plugins/crop
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)
# plugin: evthres
include $(CLEAR_VARS)
LOCAL_PRELINK_MODULE := false
LOCAL_SRC_FILES := plugins/evthres.c
LOCAL_C_INCLUDES += $(LOCAL_PATH)/src/
LOCAL_SHARED_LIBRARIES := libdl \
libts
LOCAL_MODULE := ts/plugins/evthres
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)
# plugin: lowpass
include $(CLEAR_VARS)
LOCAL_PRELINK_MODULE := false
LOCAL_SRC_FILES := plugins/lowpass.c
LOCAL_C_INCLUDES += $(LOCAL_PATH)/src/
LOCAL_SHARED_LIBRARIES := libdl \
libts
LOCAL_MODULE := ts/plugins/lowpass
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)
# plugin: invert
include $(CLEAR_VARS)
LOCAL_PRELINK_MODULE := false
LOCAL_SRC_FILES := plugins/invert.c
LOCAL_C_INCLUDES += $(LOCAL_PATH)/src/
LOCAL_SHARED_LIBRARIES := libdl \
libts
LOCAL_MODULE := ts/plugins/invert
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)
# ts_calibrate
include $(CLEAR_VARS)
LOCAL_SRC_FILES := tests/testutils.c \
tests/fbutils-linux.c \
tests/font_8x8.c \
tests/font_8x16.c \
tests/ts_calibrate_common.c \
tests/ts_calibrate.c
LOCAL_C_INCLUDES += $(LOCAL_PATH)/src/
LOCAL_CFLAGS := -DTS_POINTERCAL=\"/system/etc/pointercal\"
LOCAL_SHARED_LIBRARIES := libdl \
libts
LOCAL_MODULE := ts_calibrate
LOCAL_MODULE_TAGS := optional
include $(BUILD_EXECUTABLE)
# ts_test_mt
include $(CLEAR_VARS)
LOCAL_SRC_FILES := tests/testutils.c \
tests/fbutils-linux.c \
tests/font_8x8.c \
tests/font_8x16.c \
tests/ts_test_mt.c
LOCAL_C_INCLUDES += $(LOCAL_PATH)/src/
LOCAL_SHARED_LIBRARIES := libdl \
libts
LOCAL_MODULE := ts_test_mt
LOCAL_MODULE_TAGS := optional
include $(BUILD_EXECUTABLE)
# ts_print
include $(CLEAR_VARS)
LOCAL_SRC_FILES := tests/ts_print.c
LOCAL_C_INCLUDES += $(LOCAL_PATH)/src/
LOCAL_SHARED_LIBRARIES := libdl \
libts
LOCAL_MODULE := ts_print
LOCAL_MODULE_TAGS := optional
include $(BUILD_EXECUTABLE)
# ts_print_mt
include $(CLEAR_VARS)
LOCAL_SRC_FILES := tests/testutils.c \
tests/ts_print_mt.c
LOCAL_C_INCLUDES += $(LOCAL_PATH)/src/
LOCAL_SHARED_LIBRARIES := libdl \
libts
LOCAL_MODULE := ts_print_mt
LOCAL_MODULE_TAGS := optional
include $(BUILD_EXECUTABLE)
# ts_print_raw
include $(CLEAR_VARS)
LOCAL_SRC_FILES := tests/ts_print_raw.c
LOCAL_C_INCLUDES += $(LOCAL_PATH)/src/
LOCAL_SHARED_LIBRARIES := libdl \
libts
LOCAL_MODULE := ts_print_raw
LOCAL_MODULE_TAGS := optional
include $(BUILD_EXECUTABLE)
# ts_uinput
include $(CLEAR_VARS)
LOCAL_SRC_FILES := tools/ts_uinput.c
LOCAL_C_INCLUDES += $(LOCAL_PATH)/src/
LOCAL_SHARED_LIBRARIES := libdl \
libts
LOCAL_MODULE := ts_uinput
LOCAL_MODULE_TAGS := optional
include $(BUILD_EXECUTABLE)