android_webview_common.target.linux-arm64.mk revision ab8f6f0bd665d3c1ff476eb06c58c42630e462d4
1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := android_webview_android_webview_common_gyp
7LOCAL_MODULE_SUFFIX := .a
8LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH)
9gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX))
10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX))
11
12# Make sure our deps are built first.
13GYP_TARGET_DEPENDENCIES := \
14	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_accessibility_ax_gen_gyp,,,$(GYP_VAR_PREFIX))/ui_accessibility_ax_gen_gyp.a \
15	$(call intermediates-dir-for,GYP,skia_skia_gyp,,,$(GYP_VAR_PREFIX))/skia.stamp \
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,third_party_WebKit_public_blink_gyp,,,$(GYP_VAR_PREFIX))/blink.stamp \
18	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_gl_gl_gyp,,,$(GYP_VAR_PREFIX))/ui_gl_gl_gyp.a \
19	$(call intermediates-dir-for,GYP,android_webview_android_webview_pak_gyp,,,$(GYP_VAR_PREFIX))/android_webview_pak.stamp
20
21GYP_GENERATED_OUTPUTS :=
22
23# Make sure our deps and generated files are built first.
24LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
25
26LOCAL_CPP_EXTENSION := .cc
27LOCAL_GENERATED_SOURCES :=
28
29GYP_COPIED_SOURCE_ORIGIN_DIRS :=
30
31LOCAL_SRC_FILES := \
32	android_webview/browser/aw_browser_context.cc \
33	android_webview/browser/aw_browser_main_parts.cc \
34	android_webview/browser/aw_contents_client_bridge_base.cc \
35	android_webview/browser/aw_content_browser_client.cc \
36	android_webview/browser/aw_cookie_access_policy.cc \
37	android_webview/browser/aw_dev_tools_manager_delegate.cc \
38	android_webview/browser/aw_download_manager_delegate.cc \
39	android_webview/browser/aw_form_database_service.cc \
40	android_webview/browser/aw_gl_surface.cc \
41	android_webview/browser/aw_http_auth_handler_base.cc \
42	android_webview/browser/aw_javascript_dialog_manager.cc \
43	android_webview/browser/aw_login_delegate.cc \
44	android_webview/browser/aw_pref_store.cc \
45	android_webview/browser/aw_quota_manager_bridge.cc \
46	android_webview/browser/aw_quota_permission_context.cc \
47	android_webview/browser/aw_request_interceptor.cc \
48	android_webview/browser/aw_resource_context.cc \
49	android_webview/browser/aw_web_preferences_populater.cc \
50	android_webview/browser/aw_web_resource_response.cc \
51	android_webview/browser/browser_view_renderer.cc \
52	android_webview/browser/deferred_gpu_command_service.cc \
53	android_webview/browser/find_helper.cc \
54	android_webview/browser/global_tile_manager.cc \
55	android_webview/browser/gpu_memory_buffer_factory_impl.cc \
56	android_webview/browser/hardware_renderer.cc \
57	android_webview/browser/icon_helper.cc \
58	android_webview/browser/gl_view_renderer_manager.cc \
59	android_webview/browser/net/android_stream_reader_url_request_job.cc \
60	android_webview/browser/net/aw_network_delegate.cc \
61	android_webview/browser/net/aw_url_request_context_getter.cc \
62	android_webview/browser/net/aw_url_request_job_factory.cc \
63	android_webview/browser/net_disk_cache_remover.cc \
64	android_webview/browser/net/input_stream_reader.cc \
65	android_webview/browser/parent_compositor_draw_constraints.cc \
66	android_webview/browser/parent_output_surface.cc \
67	android_webview/browser/renderer_host/aw_render_view_host_ext.cc \
68	android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc \
69	android_webview/browser/renderer_host/print_manager.cc \
70	android_webview/browser/scoped_app_gl_state_restore.cc \
71	android_webview/browser/shared_renderer_state.cc \
72	android_webview/common/android_webview_message_generator.cc \
73	android_webview/common/aw_content_client.cc \
74	android_webview/common/aw_hit_test_data.cc \
75	android_webview/common/aw_switches.cc \
76	android_webview/common/print_messages.cc \
77	android_webview/common/render_view_messages.cc \
78	android_webview/common/url_constants.cc \
79	android_webview/lib/aw_browser_dependency_factory_impl.cc \
80	android_webview/lib/main/aw_main_delegate.cc \
81	android_webview/renderer/aw_content_renderer_client.cc \
82	android_webview/renderer/aw_key_systems.cc \
83	android_webview/renderer/aw_permission_client.cc \
84	android_webview/renderer/aw_render_process_observer.cc \
85	android_webview/renderer/aw_render_frame_ext.cc \
86	android_webview/renderer/aw_render_view_ext.cc \
87	android_webview/renderer/print_web_view_helper.cc \
88	android_webview/renderer/print_web_view_helper_android.cc \
89	android_webview/renderer/print_render_frame_observer.cc
90
91
92# Flags passed to both C and C++ files.
93MY_CFLAGS_Debug := \
94	--param=ssp-buffer-size=4 \
95	-Werror \
96	-fno-strict-aliasing \
97	-Wall \
98	-Wno-unused-parameter \
99	-Wno-missing-field-initializers \
100	-fvisibility=hidden \
101	-pipe \
102	-fPIC \
103	-Wno-unused-local-typedefs \
104	-ffunction-sections \
105	-funwind-tables \
106	-g \
107	-fno-short-enums \
108	-finline-limit=64 \
109	-Wa,--noexecstack \
110	-U_FORTIFY_SOURCE \
111	-Wno-extra \
112	-Wno-ignored-qualifiers \
113	-Wno-type-limits \
114	-Wno-unused-but-set-variable \
115	-Os \
116	-g \
117	-gdwarf-4 \
118	-fdata-sections \
119	-ffunction-sections \
120	-funwind-tables
121
122MY_DEFS_Debug := \
123	'-DV8_DEPRECATION_WARNINGS' \
124	'-D_FILE_OFFSET_BITS=64' \
125	'-DNO_TCMALLOC' \
126	'-DDISABLE_NACL' \
127	'-DCHROMIUM_BUILD' \
128	'-DUSE_LIBJPEG_TURBO=1' \
129	'-DENABLE_WEBRTC=1' \
130	'-DUSE_PROPRIETARY_CODECS' \
131	'-DENABLE_BROWSER_CDMS' \
132	'-DENABLE_CONFIGURATION_POLICY' \
133	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
134	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
135	'-DENABLE_EGLIMAGE=1' \
136	'-DCLD_VERSION=1' \
137	'-DENABLE_PRINTING=1' \
138	'-DENABLE_MANAGED_USERS=1' \
139	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
140	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
141	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
142	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
143	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
144	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
145	'-DVIDEO_HOLE=1' \
146	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
147	'-DMOJO_USE_SYSTEM_IMPL' \
148	'-DLIBPEERCONNECTION_LIB=1' \
149	'-DAPPCACHE_USE_SIMPLE_CACHE' \
150	'-DMEDIA_DISABLE_LIBVPX' \
151	'-DSK_ENABLE_INST_COUNT=0' \
152	'-DSK_SUPPORT_GPU=1' \
153	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
154	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
155	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
156	'-DGR_GL_IGNORE_ES3_MSAA=0' \
157	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
158	'-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \
159	'-DSK_BUILD_FOR_ANDROID' \
160	'-DSK_USE_POSIX_THREADS' \
161	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
162	'-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \
163	'-DU_USING_ICU_NAMESPACE=0' \
164	'-DU_ENABLE_DYLOAD=0' \
165	'-DCHROME_PNG_WRITE_SUPPORT' \
166	'-DPNG_USER_CONFIG' \
167	'-DCHROME_PNG_READ_PACK_SUPPORT' \
168	'-DMESA_EGL_NO_X11_HEADERS' \
169	'-DUSE_OPENSSL=1' \
170	'-DUSE_OPENSSL_CERTS=1' \
171	'-D__STDC_CONSTANT_MACROS' \
172	'-D__STDC_FORMAT_MACROS' \
173	'-DANDROID' \
174	'-D__GNU_SOURCE=1' \
175	'-DUSE_STLPORT=1' \
176	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
177	'-DCHROME_BUILD_ID=""' \
178	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
179	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
180	'-D_DEBUG'
181
182
183# Include paths placed before CFLAGS/CPPFLAGS
184LOCAL_C_INCLUDES_Debug := \
185	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
186	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
187	$(gyp_shared_intermediate_dir) \
188	$(LOCAL_PATH) \
189	$(LOCAL_PATH)/skia/config \
190	$(gyp_shared_intermediate_dir)/ui/resources \
191	$(LOCAL_PATH)/third_party/khronos \
192	$(LOCAL_PATH)/gpu \
193	$(LOCAL_PATH)/third_party/WebKit/Source \
194	$(gyp_shared_intermediate_dir)/angle \
195	$(LOCAL_PATH)/third_party/WebKit \
196	$(LOCAL_PATH)/third_party/skia/src/core \
197	$(LOCAL_PATH)/third_party/skia/include/core \
198	$(LOCAL_PATH)/third_party/skia/include/effects \
199	$(LOCAL_PATH)/third_party/skia/include/pdf \
200	$(LOCAL_PATH)/third_party/skia/include/gpu \
201	$(LOCAL_PATH)/third_party/skia/include/lazy \
202	$(LOCAL_PATH)/third_party/skia/include/pathops \
203	$(LOCAL_PATH)/third_party/skia/include/pipe \
204	$(LOCAL_PATH)/third_party/skia/include/ports \
205	$(LOCAL_PATH)/third_party/skia/include/utils \
206	$(LOCAL_PATH)/skia/ext \
207	$(LOCAL_PATH)/third_party/WebKit \
208	$(PWD)/external/icu/icu4c/source/common \
209	$(PWD)/external/icu/icu4c/source/i18n \
210	$(LOCAL_PATH)/third_party/npapi \
211	$(LOCAL_PATH)/third_party/npapi/bindings \
212	$(LOCAL_PATH)/v8/include \
213	$(LOCAL_PATH)/third_party/libpng \
214	$(LOCAL_PATH)/third_party/zlib \
215	$(LOCAL_PATH)/third_party/libwebp \
216	$(LOCAL_PATH)/third_party/ots/include \
217	$(LOCAL_PATH)/third_party/qcms/src \
218	$(LOCAL_PATH)/third_party/iccjpeg \
219	$(LOCAL_PATH)/third_party/libjpeg_turbo \
220	$(gyp_shared_intermediate_dir)/ui/gl \
221	$(LOCAL_PATH)/third_party/mesa/src/include \
222	$(PWD)/frameworks/wilhelm/include \
223	$(PWD)/bionic \
224	$(PWD)/external/stlport/stlport
225
226
227# Flags passed to only C++ (and not C) files.
228LOCAL_CPPFLAGS_Debug := \
229	-fno-exceptions \
230	-fno-rtti \
231	-fno-threadsafe-statics \
232	-fvisibility-inlines-hidden \
233	-Wsign-compare \
234	-std=gnu++11 \
235	-Wno-narrowing \
236	-Wno-literal-suffix \
237	-Wno-non-virtual-dtor \
238	-Wno-sign-promo
239
240
241# Flags passed to both C and C++ files.
242MY_CFLAGS_Release := \
243	--param=ssp-buffer-size=4 \
244	-Werror \
245	-fno-strict-aliasing \
246	-Wall \
247	-Wno-unused-parameter \
248	-Wno-missing-field-initializers \
249	-fvisibility=hidden \
250	-pipe \
251	-fPIC \
252	-Wno-unused-local-typedefs \
253	-ffunction-sections \
254	-funwind-tables \
255	-g \
256	-fno-short-enums \
257	-finline-limit=64 \
258	-Wa,--noexecstack \
259	-U_FORTIFY_SOURCE \
260	-Wno-extra \
261	-Wno-ignored-qualifiers \
262	-Wno-type-limits \
263	-Wno-unused-but-set-variable \
264	-Os \
265	-fno-ident \
266	-fdata-sections \
267	-ffunction-sections \
268	-funwind-tables
269
270MY_DEFS_Release := \
271	'-DV8_DEPRECATION_WARNINGS' \
272	'-D_FILE_OFFSET_BITS=64' \
273	'-DNO_TCMALLOC' \
274	'-DDISABLE_NACL' \
275	'-DCHROMIUM_BUILD' \
276	'-DUSE_LIBJPEG_TURBO=1' \
277	'-DENABLE_WEBRTC=1' \
278	'-DUSE_PROPRIETARY_CODECS' \
279	'-DENABLE_BROWSER_CDMS' \
280	'-DENABLE_CONFIGURATION_POLICY' \
281	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
282	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
283	'-DENABLE_EGLIMAGE=1' \
284	'-DCLD_VERSION=1' \
285	'-DENABLE_PRINTING=1' \
286	'-DENABLE_MANAGED_USERS=1' \
287	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
288	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
289	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
290	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
291	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
292	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
293	'-DVIDEO_HOLE=1' \
294	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
295	'-DMOJO_USE_SYSTEM_IMPL' \
296	'-DLIBPEERCONNECTION_LIB=1' \
297	'-DAPPCACHE_USE_SIMPLE_CACHE' \
298	'-DMEDIA_DISABLE_LIBVPX' \
299	'-DSK_ENABLE_INST_COUNT=0' \
300	'-DSK_SUPPORT_GPU=1' \
301	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
302	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
303	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
304	'-DGR_GL_IGNORE_ES3_MSAA=0' \
305	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
306	'-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \
307	'-DSK_BUILD_FOR_ANDROID' \
308	'-DSK_USE_POSIX_THREADS' \
309	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
310	'-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \
311	'-DU_USING_ICU_NAMESPACE=0' \
312	'-DU_ENABLE_DYLOAD=0' \
313	'-DCHROME_PNG_WRITE_SUPPORT' \
314	'-DPNG_USER_CONFIG' \
315	'-DCHROME_PNG_READ_PACK_SUPPORT' \
316	'-DMESA_EGL_NO_X11_HEADERS' \
317	'-DUSE_OPENSSL=1' \
318	'-DUSE_OPENSSL_CERTS=1' \
319	'-D__STDC_CONSTANT_MACROS' \
320	'-D__STDC_FORMAT_MACROS' \
321	'-DANDROID' \
322	'-D__GNU_SOURCE=1' \
323	'-DUSE_STLPORT=1' \
324	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
325	'-DCHROME_BUILD_ID=""' \
326	'-DNDEBUG' \
327	'-DNVALGRIND' \
328	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
329	'-D_FORTIFY_SOURCE=2'
330
331
332# Include paths placed before CFLAGS/CPPFLAGS
333LOCAL_C_INCLUDES_Release := \
334	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
335	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
336	$(gyp_shared_intermediate_dir) \
337	$(LOCAL_PATH) \
338	$(LOCAL_PATH)/skia/config \
339	$(gyp_shared_intermediate_dir)/ui/resources \
340	$(LOCAL_PATH)/third_party/khronos \
341	$(LOCAL_PATH)/gpu \
342	$(LOCAL_PATH)/third_party/WebKit/Source \
343	$(gyp_shared_intermediate_dir)/angle \
344	$(LOCAL_PATH)/third_party/WebKit \
345	$(LOCAL_PATH)/third_party/skia/src/core \
346	$(LOCAL_PATH)/third_party/skia/include/core \
347	$(LOCAL_PATH)/third_party/skia/include/effects \
348	$(LOCAL_PATH)/third_party/skia/include/pdf \
349	$(LOCAL_PATH)/third_party/skia/include/gpu \
350	$(LOCAL_PATH)/third_party/skia/include/lazy \
351	$(LOCAL_PATH)/third_party/skia/include/pathops \
352	$(LOCAL_PATH)/third_party/skia/include/pipe \
353	$(LOCAL_PATH)/third_party/skia/include/ports \
354	$(LOCAL_PATH)/third_party/skia/include/utils \
355	$(LOCAL_PATH)/skia/ext \
356	$(LOCAL_PATH)/third_party/WebKit \
357	$(PWD)/external/icu/icu4c/source/common \
358	$(PWD)/external/icu/icu4c/source/i18n \
359	$(LOCAL_PATH)/third_party/npapi \
360	$(LOCAL_PATH)/third_party/npapi/bindings \
361	$(LOCAL_PATH)/v8/include \
362	$(LOCAL_PATH)/third_party/libpng \
363	$(LOCAL_PATH)/third_party/zlib \
364	$(LOCAL_PATH)/third_party/libwebp \
365	$(LOCAL_PATH)/third_party/ots/include \
366	$(LOCAL_PATH)/third_party/qcms/src \
367	$(LOCAL_PATH)/third_party/iccjpeg \
368	$(LOCAL_PATH)/third_party/libjpeg_turbo \
369	$(gyp_shared_intermediate_dir)/ui/gl \
370	$(LOCAL_PATH)/third_party/mesa/src/include \
371	$(PWD)/frameworks/wilhelm/include \
372	$(PWD)/bionic \
373	$(PWD)/external/stlport/stlport
374
375
376# Flags passed to only C++ (and not C) files.
377LOCAL_CPPFLAGS_Release := \
378	-fno-exceptions \
379	-fno-rtti \
380	-fno-threadsafe-statics \
381	-fvisibility-inlines-hidden \
382	-Wsign-compare \
383	-std=gnu++11 \
384	-Wno-narrowing \
385	-Wno-literal-suffix \
386	-Wno-non-virtual-dtor \
387	-Wno-sign-promo
388
389
390LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
391LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
392LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
393LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
394### Rules for final target.
395
396LOCAL_SHARED_LIBRARIES := \
397	libstlport \
398	libdl
399
400# Add target alias to "gyp_all_modules" target.
401.PHONY: gyp_all_modules
402gyp_all_modules: android_webview_android_webview_common_gyp
403
404# Alias gyp target name.
405.PHONY: android_webview_common
406android_webview_common: android_webview_android_webview_common_gyp
407
408include $(BUILD_STATIC_LIBRARY)
409