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