1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := ui_events_gesture_detection_gyp
7LOCAL_MODULE_SUFFIX := .a
8LOCAL_MODULE_TAGS := optional
9LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
10gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
11gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
12
13# Make sure our deps are built first.
14GYP_TARGET_DEPENDENCIES := \
15	$(call intermediates-dir-for,STATIC_LIBRARIES,skia_skia_library_gyp,,,$(GYP_VAR_PREFIX))/skia_skia_library_gyp.a
16
17GYP_GENERATED_OUTPUTS :=
18
19# Make sure our deps and generated files are built first.
20LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
21
22LOCAL_CPP_EXTENSION := .cc
23LOCAL_GENERATED_SOURCES :=
24
25GYP_COPIED_SOURCE_ORIGIN_DIRS :=
26
27LOCAL_SRC_FILES := \
28	ui/events/gesture_detection/filtered_gesture_provider.cc \
29	ui/events/gesture_detection/gesture_config_helper_android.cc \
30	ui/events/gesture_detection/gesture_detector.cc \
31	ui/events/gesture_detection/gesture_event_data.cc \
32	ui/events/gesture_detection/gesture_event_data_packet.cc \
33	ui/events/gesture_detection/gesture_provider.cc \
34	ui/events/gesture_detection/scale_gesture_detector.cc \
35	ui/events/gesture_detection/snap_scroll_controller.cc \
36	ui/events/gesture_detection/touch_disposition_gesture_filter.cc \
37	ui/events/gesture_detection/velocity_tracker_state.cc \
38	ui/events/gesture_detection/velocity_tracker.cc
39
40
41# Flags passed to both C and C++ files.
42MY_CFLAGS_Debug := \
43	--param=ssp-buffer-size=4 \
44	-Werror \
45	-fno-exceptions \
46	-fno-strict-aliasing \
47	-Wall \
48	-Wno-unused-parameter \
49	-Wno-missing-field-initializers \
50	-fvisibility=hidden \
51	-pipe \
52	-fPIC \
53	-Wno-unused-local-typedefs \
54	-ffunction-sections \
55	-funwind-tables \
56	-g \
57	-fno-short-enums \
58	-finline-limit=64 \
59	-Wa,--noexecstack \
60	-U_FORTIFY_SOURCE \
61	-Wno-extra \
62	-Wno-ignored-qualifiers \
63	-Wno-type-limits \
64	-Wno-unused-but-set-variable \
65	-Os \
66	-g \
67	-fdata-sections \
68	-ffunction-sections \
69	-funwind-tables
70
71MY_DEFS_Debug := \
72	'-DV8_DEPRECATION_WARNINGS' \
73	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
74	'-D_FILE_OFFSET_BITS=64' \
75	'-DNO_TCMALLOC' \
76	'-DDISABLE_NACL' \
77	'-DCHROMIUM_BUILD' \
78	'-DUSE_LIBJPEG_TURBO=1' \
79	'-DENABLE_WEBRTC=1' \
80	'-DUSE_PROPRIETARY_CODECS' \
81	'-DENABLE_BROWSER_CDMS' \
82	'-DENABLE_CONFIGURATION_POLICY' \
83	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
84	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
85	'-DENABLE_EGLIMAGE=1' \
86	'-DCLD_VERSION=1' \
87	'-DENABLE_PRINTING=1' \
88	'-DENABLE_MANAGED_USERS=1' \
89	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
90	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
91	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
92	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
93	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
94	'-DVIDEO_HOLE=1' \
95	'-DGESTURE_DETECTION_IMPLEMENTATION' \
96	'-DSK_ENABLE_INST_COUNT=0' \
97	'-DSK_SUPPORT_GPU=1' \
98	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
99	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
100	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
101	'-DGR_GL_IGNORE_ES3_MSAA=0' \
102	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
103	'-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \
104	'-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \
105	'-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \
106	'-DSK_SUPPORT_LEGACY_N32_NAME' \
107	'-DSK_SUPPORT_LEGACY_SETCONFIG' \
108	'-DSK_IGNORE_ETC1_SUPPORT' \
109	'-DSK_IGNORE_GPU_DITHER' \
110	'-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \
111	'-DSK_BUILD_FOR_ANDROID' \
112	'-DSK_USE_POSIX_THREADS' \
113	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
114	'-DU_USING_ICU_NAMESPACE=0' \
115	'-DUSE_OPENSSL=1' \
116	'-DUSE_OPENSSL_CERTS=1' \
117	'-D__STDC_CONSTANT_MACROS' \
118	'-D__STDC_FORMAT_MACROS' \
119	'-DANDROID' \
120	'-D__GNU_SOURCE=1' \
121	'-DUSE_STLPORT=1' \
122	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
123	'-DCHROME_BUILD_ID=""' \
124	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
125	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
126	'-D_DEBUG'
127
128
129# Include paths placed before CFLAGS/CPPFLAGS
130LOCAL_C_INCLUDES_Debug := \
131	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
132	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
133	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
134	$(gyp_shared_intermediate_dir) \
135	$(LOCAL_PATH) \
136	$(LOCAL_PATH)/skia/config \
137	$(LOCAL_PATH)/third_party/skia/src/core \
138	$(LOCAL_PATH)/third_party/skia/include/core \
139	$(LOCAL_PATH)/third_party/skia/include/effects \
140	$(LOCAL_PATH)/third_party/skia/include/pdf \
141	$(LOCAL_PATH)/third_party/skia/include/gpu \
142	$(LOCAL_PATH)/third_party/skia/include/lazy \
143	$(LOCAL_PATH)/third_party/skia/include/pathops \
144	$(LOCAL_PATH)/third_party/skia/include/pipe \
145	$(LOCAL_PATH)/third_party/skia/include/ports \
146	$(LOCAL_PATH)/third_party/skia/include/utils \
147	$(LOCAL_PATH)/skia/ext \
148	$(PWD)/external/icu/icu4c/source/common \
149	$(PWD)/external/icu/icu4c/source/i18n \
150	$(PWD)/frameworks/wilhelm/include \
151	$(PWD)/bionic \
152	$(PWD)/external/stlport/stlport
153
154
155# Flags passed to only C++ (and not C) files.
156LOCAL_CPPFLAGS_Debug := \
157	-fno-rtti \
158	-fno-threadsafe-statics \
159	-fvisibility-inlines-hidden \
160	-Wsign-compare \
161	-Wno-non-virtual-dtor \
162	-Wno-sign-promo
163
164
165LOCAL_FDO_SUPPORT_Debug := false
166
167# Flags passed to both C and C++ files.
168MY_CFLAGS_Release := \
169	--param=ssp-buffer-size=4 \
170	-Werror \
171	-fno-exceptions \
172	-fno-strict-aliasing \
173	-Wall \
174	-Wno-unused-parameter \
175	-Wno-missing-field-initializers \
176	-fvisibility=hidden \
177	-pipe \
178	-fPIC \
179	-Wno-unused-local-typedefs \
180	-ffunction-sections \
181	-funwind-tables \
182	-g \
183	-fno-short-enums \
184	-finline-limit=64 \
185	-Wa,--noexecstack \
186	-U_FORTIFY_SOURCE \
187	-Wno-extra \
188	-Wno-ignored-qualifiers \
189	-Wno-type-limits \
190	-Wno-unused-but-set-variable \
191	-Os \
192	-fno-ident \
193	-fdata-sections \
194	-ffunction-sections \
195	-funwind-tables
196
197MY_DEFS_Release := \
198	'-DV8_DEPRECATION_WARNINGS' \
199	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
200	'-D_FILE_OFFSET_BITS=64' \
201	'-DNO_TCMALLOC' \
202	'-DDISABLE_NACL' \
203	'-DCHROMIUM_BUILD' \
204	'-DUSE_LIBJPEG_TURBO=1' \
205	'-DENABLE_WEBRTC=1' \
206	'-DUSE_PROPRIETARY_CODECS' \
207	'-DENABLE_BROWSER_CDMS' \
208	'-DENABLE_CONFIGURATION_POLICY' \
209	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
210	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
211	'-DENABLE_EGLIMAGE=1' \
212	'-DCLD_VERSION=1' \
213	'-DENABLE_PRINTING=1' \
214	'-DENABLE_MANAGED_USERS=1' \
215	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
216	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
217	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
218	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
219	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
220	'-DVIDEO_HOLE=1' \
221	'-DGESTURE_DETECTION_IMPLEMENTATION' \
222	'-DSK_ENABLE_INST_COUNT=0' \
223	'-DSK_SUPPORT_GPU=1' \
224	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
225	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
226	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
227	'-DGR_GL_IGNORE_ES3_MSAA=0' \
228	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
229	'-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \
230	'-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \
231	'-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \
232	'-DSK_SUPPORT_LEGACY_N32_NAME' \
233	'-DSK_SUPPORT_LEGACY_SETCONFIG' \
234	'-DSK_IGNORE_ETC1_SUPPORT' \
235	'-DSK_IGNORE_GPU_DITHER' \
236	'-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \
237	'-DSK_BUILD_FOR_ANDROID' \
238	'-DSK_USE_POSIX_THREADS' \
239	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
240	'-DU_USING_ICU_NAMESPACE=0' \
241	'-DUSE_OPENSSL=1' \
242	'-DUSE_OPENSSL_CERTS=1' \
243	'-D__STDC_CONSTANT_MACROS' \
244	'-D__STDC_FORMAT_MACROS' \
245	'-DANDROID' \
246	'-D__GNU_SOURCE=1' \
247	'-DUSE_STLPORT=1' \
248	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
249	'-DCHROME_BUILD_ID=""' \
250	'-DNDEBUG' \
251	'-DNVALGRIND' \
252	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
253	'-D_FORTIFY_SOURCE=2'
254
255
256# Include paths placed before CFLAGS/CPPFLAGS
257LOCAL_C_INCLUDES_Release := \
258	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
259	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
260	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
261	$(gyp_shared_intermediate_dir) \
262	$(LOCAL_PATH) \
263	$(LOCAL_PATH)/skia/config \
264	$(LOCAL_PATH)/third_party/skia/src/core \
265	$(LOCAL_PATH)/third_party/skia/include/core \
266	$(LOCAL_PATH)/third_party/skia/include/effects \
267	$(LOCAL_PATH)/third_party/skia/include/pdf \
268	$(LOCAL_PATH)/third_party/skia/include/gpu \
269	$(LOCAL_PATH)/third_party/skia/include/lazy \
270	$(LOCAL_PATH)/third_party/skia/include/pathops \
271	$(LOCAL_PATH)/third_party/skia/include/pipe \
272	$(LOCAL_PATH)/third_party/skia/include/ports \
273	$(LOCAL_PATH)/third_party/skia/include/utils \
274	$(LOCAL_PATH)/skia/ext \
275	$(PWD)/external/icu/icu4c/source/common \
276	$(PWD)/external/icu/icu4c/source/i18n \
277	$(PWD)/frameworks/wilhelm/include \
278	$(PWD)/bionic \
279	$(PWD)/external/stlport/stlport
280
281
282# Flags passed to only C++ (and not C) files.
283LOCAL_CPPFLAGS_Release := \
284	-fno-rtti \
285	-fno-threadsafe-statics \
286	-fvisibility-inlines-hidden \
287	-Wsign-compare \
288	-Wno-non-virtual-dtor \
289	-Wno-sign-promo
290
291
292LOCAL_FDO_SUPPORT_Release := false
293
294LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
295LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION))
296LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
297LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
298LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
299### Rules for final target.
300
301LOCAL_LDFLAGS_Debug := \
302	-Wl,-z,now \
303	-Wl,-z,relro \
304	-Wl,--fatal-warnings \
305	-Wl,-z,noexecstack \
306	-fPIC \
307	-nostdlib \
308	-Wl,--no-undefined \
309	-Wl,--exclude-libs=ALL \
310	-Wl,--warn-shared-textrel \
311	-Wl,-O1 \
312	-Wl,--as-needed
313
314
315LOCAL_LDFLAGS_Release := \
316	-Wl,-z,now \
317	-Wl,-z,relro \
318	-Wl,--fatal-warnings \
319	-Wl,-z,noexecstack \
320	-fPIC \
321	-nostdlib \
322	-Wl,--no-undefined \
323	-Wl,--exclude-libs=ALL \
324	-Wl,-O1 \
325	-Wl,--as-needed \
326	-Wl,--gc-sections \
327	-Wl,--warn-shared-textrel
328
329
330LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
331
332LOCAL_STATIC_LIBRARIES := \
333	skia_skia_library_gyp
334
335# Enable grouping to fix circular references
336LOCAL_GROUP_STATIC_LIBRARIES := true
337
338LOCAL_SHARED_LIBRARIES := \
339	libstlport \
340	libdl
341
342# Add target alias to "gyp_all_modules" target.
343.PHONY: gyp_all_modules
344gyp_all_modules: ui_events_gesture_detection_gyp
345
346# Alias gyp target name.
347.PHONY: gesture_detection
348gesture_detection: ui_events_gesture_detection_gyp
349
350include $(BUILD_STATIC_LIBRARY)
351