content_common.target.linux-x86_64.mk revision 5f1c94371a64b3196d4be9466099bb892df9b88e
1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := content_content_common_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,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_headers_gyp,,,$(GYP_VAR_PREFIX))/blink_headers.stamp \
18	$(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp,,,$(GYP_VAR_PREFIX))/icuuc.stamp \
19	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_accessibility_accessibility_gyp,,,$(GYP_VAR_PREFIX))/ui_accessibility_accessibility_gyp.a \
20	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_accessibility_ax_gen_gyp,,,$(GYP_VAR_PREFIX))/ui_accessibility_ax_gen_gyp.a \
21	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_base_ui_base_gyp,,,$(GYP_VAR_PREFIX))/ui_base_ui_base_gyp.a \
22	$(call intermediates-dir-for,GYP,content_content_resources_gyp,,,$(GYP_VAR_PREFIX))/content_resources.stamp \
23	$(call intermediates-dir-for,STATIC_LIBRARIES,mojo_mojo_application_bindings_gyp,,,$(GYP_VAR_PREFIX))/mojo_mojo_application_bindings_gyp.a \
24	$(call intermediates-dir-for,GYP,third_party_WebKit_public_blink_gyp,,,$(GYP_VAR_PREFIX))/blink.stamp \
25	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_gl_gl_gyp,,,$(GYP_VAR_PREFIX))/ui_gl_gl_gyp.a \
26	$(call intermediates-dir-for,GYP,content_content_jni_headers_gyp,,,$(GYP_VAR_PREFIX))/content_jni_headers.stamp \
27	$(call intermediates-dir-for,GYP,content_common_aidl_gyp,,,$(GYP_VAR_PREFIX))/common_aidl.stamp
28
29### Rules for action "generate_webkit_version":
30$(gyp_shared_intermediate_dir)/webkit_version.h: gyp_local_path := $(LOCAL_PATH)
31$(gyp_shared_intermediate_dir)/webkit_version.h: gyp_var_prefix := $(GYP_VAR_PREFIX)
32$(gyp_shared_intermediate_dir)/webkit_version.h: gyp_intermediate_dir := $(abspath $(gyp_intermediate_dir))
33$(gyp_shared_intermediate_dir)/webkit_version.h: gyp_shared_intermediate_dir := $(abspath $(gyp_shared_intermediate_dir))
34$(gyp_shared_intermediate_dir)/webkit_version.h: export PATH := $(subst $(ANDROID_BUILD_PATHS),,$(PATH))
35$(gyp_shared_intermediate_dir)/webkit_version.h: $(LOCAL_PATH)/build/util/version.py $(LOCAL_PATH)/build/util/LASTCHANGE.blink $(LOCAL_PATH)/content/webkit_version.h.in $(GYP_TARGET_DEPENDENCIES)
36	@echo "Gyp action: content_content_gyp_content_common_target_generate_webkit_version ($@)"
37	$(hide)cd $(gyp_local_path)/content; mkdir -p $(gyp_shared_intermediate_dir); python ../build/util/version.py -f ../build/util/LASTCHANGE.blink webkit_version.h.in "$(gyp_shared_intermediate_dir)/webkit_version.h"
38
39
40
41GYP_GENERATED_OUTPUTS := \
42	$(gyp_shared_intermediate_dir)/webkit_version.h
43
44# Make sure our deps and generated files are built first.
45LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
46
47LOCAL_CPP_EXTENSION := .cc
48LOCAL_GENERATED_SOURCES :=
49
50GYP_COPIED_SOURCE_ORIGIN_DIRS :=
51
52LOCAL_SRC_FILES := \
53	content/public/common/child_process_host_delegate.cc \
54	content/public/common/color_suggestion.cc \
55	content/public/common/common_param_traits.cc \
56	content/public/common/content_client.cc \
57	content/public/common/content_constants.cc \
58	content/public/common/content_switches.cc \
59	content/public/common/context_menu_params.cc \
60	content/public/common/drop_data.cc \
61	content/public/common/favicon_url.cc \
62	content/public/common/file_chooser_params.cc \
63	content/public/common/frame_navigate_params.cc \
64	content/public/common/geoposition.cc \
65	content/public/common/gpu_memory_stats.cc \
66	content/public/common/media_stream_request.cc \
67	content/public/common/menu_item.cc \
68	content/public/common/page_state.cc \
69	content/public/common/page_transition_types.cc \
70	content/public/common/pepper_plugin_info.cc \
71	content/public/common/push_messaging_status.cc \
72	content/public/common/renderer_preferences.cc \
73	content/public/common/resource_devtools_info.cc \
74	content/public/common/resource_response_info.cc \
75	content/public/common/resource_type.cc \
76	content/public/common/sandboxed_process_launcher_delegate.cc \
77	content/public/common/show_desktop_notification_params.cc \
78	content/public/common/signed_certificate_timestamp_id_and_status.cc \
79	content/public/common/speech_recognition_result.cc \
80	content/public/common/ssl_status.cc \
81	content/public/common/url_constants.cc \
82	content/public/common/url_utils.cc \
83	content/public/common/web_preferences.cc \
84	content/public/common/webplugininfo.cc \
85	content/public/common/window_container_type.cc \
86	content/common/android/address_parser.cc \
87	content/common/android/address_parser_internal.cc \
88	content/common/android/common_jni_registrar.cc \
89	content/common/android/gin_java_bridge_errors.cc \
90	content/common/android/gin_java_bridge_value.cc \
91	content/common/android/hash_set.cc \
92	content/common/android/surface_texture_lookup.cc \
93	content/common/android/surface_texture_peer.cc \
94	content/common/appcache_interfaces.cc \
95	content/common/browser_plugin/browser_plugin_constants.cc \
96	content/common/cc_messages.cc \
97	content/common/child_process_host_impl.cc \
98	content/common/content_constants_internal.cc \
99	content/common/content_ipc_logging.cc \
100	content/common/content_message_generator.cc \
101	content/common/content_param_traits.cc \
102	content/common/content_paths.cc \
103	content/common/content_switches_internal.cc \
104	content/common/cookie_data.cc \
105	content/common/cursors/webcursor.cc \
106	content/common/cursors/webcursor_android.cc \
107	content/common/dom_storage/dom_storage_map.cc \
108	content/common/font_list.cc \
109	content/common/font_list_android.cc \
110	content/common/frame_param.cc \
111	content/common/gamepad_param_traits.cc \
112	content/common/gamepad_user_gesture.cc \
113	content/common/gpu/client/command_buffer_proxy_impl.cc \
114	content/common/gpu/client/context_provider_command_buffer.cc \
115	content/common/gpu/client/gl_helper.cc \
116	content/common/gpu/client/gl_helper_readback_support.cc \
117	content/common/gpu/client/gl_helper_scaling.cc \
118	content/common/gpu/client/gpu_channel_host.cc \
119	content/common/gpu/client/gpu_memory_buffer_impl.cc \
120	content/common/gpu/client/gpu_memory_buffer_impl_android.cc \
121	content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.cc \
122	content/common/gpu/client/gpu_video_decode_accelerator_host.cc \
123	content/common/gpu/client/gpu_video_encode_accelerator_host.cc \
124	content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc \
125	content/common/gpu/devtools_gpu_agent.cc \
126	content/common/gpu/devtools_gpu_instrumentation.cc \
127	content/common/gpu/gpu_channel.cc \
128	content/common/gpu/gpu_channel_manager.cc \
129	content/common/gpu/gpu_command_buffer_stub.cc \
130	content/common/gpu/gpu_memory_buffer_factory_android.cc \
131	content/common/gpu/gpu_memory_manager.cc \
132	content/common/gpu/gpu_memory_manager_client.cc \
133	content/common/gpu/gpu_memory_tracking.cc \
134	content/common/gpu/gpu_surface_lookup.cc \
135	content/common/gpu/image_transport_surface.cc \
136	content/common/gpu/image_transport_surface_android.cc \
137	content/common/gpu/media/gpu_video_decode_accelerator.cc \
138	content/common/gpu/media/gpu_video_encode_accelerator.cc \
139	content/common/gpu/stream_texture_android.cc \
140	content/common/gpu/sync_point_manager.cc \
141	content/common/gpu/texture_image_transport_surface.cc \
142	content/common/host_shared_bitmap_manager.cc \
143	content/common/indexed_db/indexed_db_key.cc \
144	content/common/indexed_db/indexed_db_key_path.cc \
145	content/common/indexed_db/indexed_db_key_range.cc \
146	content/common/indexed_db/indexed_db_param_traits.cc \
147	content/common/input/gesture_event_stream_validator.cc \
148	content/common/input/input_event.cc \
149	content/common/input/input_event_stream_validator.cc \
150	content/common/input/input_param_traits.cc \
151	content/common/input/scoped_web_input_event.cc \
152	content/common/input/synthetic_gesture_packet.cc \
153	content/common/input/synthetic_gesture_params.cc \
154	content/common/input/synthetic_pinch_gesture_params.cc \
155	content/common/input/synthetic_smooth_scroll_gesture_params.cc \
156	content/common/input/synthetic_tap_gesture_params.cc \
157	content/common/input/synthetic_web_input_event_builders.cc \
158	content/common/input/touch_event_stream_validator.cc \
159	content/common/input/web_input_event_traits.cc \
160	content/common/input/web_touch_event_traits.cc \
161	content/common/inter_process_time_ticks_converter.cc \
162	content/common/media/media_param_traits.cc \
163	content/common/media/media_stream_options.cc \
164	content/common/message_router.cc \
165	content/common/mojo/service_registry_impl.cc \
166	content/common/net/url_fetcher.cc \
167	content/common/net/url_request_user_data.cc \
168	content/common/one_writer_seqlock.cc \
169	content/common/page_state_serialization.cc \
170	content/common/page_zoom.cc \
171	content/common/pepper_file_util.cc \
172	content/common/pepper_renderer_instance_data.cc \
173	content/common/plugin_list.cc \
174	content/common/plugin_list_posix.cc \
175	content/common/process_type.cc \
176	content/common/resource_messages.cc \
177	content/common/resource_request_body.cc \
178	content/common/sandbox_linux/android/sandbox_bpf_base_policy_android.cc \
179	content/common/sandbox_linux/sandbox_bpf_base_policy_linux.cc \
180	content/common/savable_url_schemes.cc \
181	content/common/service_worker/service_worker_status_code.cc \
182	content/common/service_worker/service_worker_types.cc \
183	content/common/set_process_title.cc \
184	content/common/ssl_status_serialization.cc \
185	content/common/swapped_out_messages.cc \
186	content/common/url_schemes.cc \
187	content/common/user_agent.cc \
188	content/common/webplugin_geometry.cc \
189	content/common/websocket.cc \
190	content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc \
191	content/common/gpu/media/android_video_decode_accelerator.cc \
192	content/common/gpu/media/android_video_encode_accelerator.cc
193
194
195# Flags passed to both C and C++ files.
196MY_CFLAGS_Debug := \
197	-fstack-protector \
198	--param=ssp-buffer-size=4 \
199	-Werror \
200	-fno-exceptions \
201	-fno-strict-aliasing \
202	-Wall \
203	-Wno-unused-parameter \
204	-Wno-missing-field-initializers \
205	-fvisibility=hidden \
206	-pipe \
207	-fPIC \
208	-Wno-unused-local-typedefs \
209	-m64 \
210	-march=x86-64 \
211	-ffunction-sections \
212	-funwind-tables \
213	-g \
214	-fstack-protector \
215	-fno-short-enums \
216	-finline-limit=64 \
217	-Wa,--noexecstack \
218	-U_FORTIFY_SOURCE \
219	-Wno-extra \
220	-Wno-ignored-qualifiers \
221	-Wno-type-limits \
222	-Wno-unused-but-set-variable \
223	-Os \
224	-g \
225	-fdata-sections \
226	-ffunction-sections \
227	-fomit-frame-pointer \
228	-funwind-tables
229
230MY_DEFS_Debug := \
231	'-DCONTENT_IMPLEMENTATION' \
232	'-DV8_DEPRECATION_WARNINGS' \
233	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
234	'-D_FILE_OFFSET_BITS=64' \
235	'-DNO_TCMALLOC' \
236	'-DDISABLE_NACL' \
237	'-DCHROMIUM_BUILD' \
238	'-DUSE_LIBJPEG_TURBO=1' \
239	'-DENABLE_WEBRTC=1' \
240	'-DUSE_PROPRIETARY_CODECS' \
241	'-DENABLE_BROWSER_CDMS' \
242	'-DENABLE_CONFIGURATION_POLICY' \
243	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
244	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
245	'-DENABLE_EGLIMAGE=1' \
246	'-DCLD_VERSION=1' \
247	'-DENABLE_PRINTING=1' \
248	'-DENABLE_MANAGED_USERS=1' \
249	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
250	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
251	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
252	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
253	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
254	'-DVIDEO_HOLE=1' \
255	'-DUSE_SECCOMP_BPF' \
256	'-DMOJO_USE_SYSTEM_IMPL' \
257	'-DPOSIX_AVOID_MMAP' \
258	'-DSK_ENABLE_INST_COUNT=0' \
259	'-DSK_SUPPORT_GPU=1' \
260	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
261	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
262	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
263	'-DGR_GL_IGNORE_ES3_MSAA=0' \
264	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
265	'-DSK_SUPPORT_LEGACY_PICTURE_CLONE' \
266	'-DSK_SUPPORT_LEGACY_GETDEVICE' \
267	'-DSK_IGNORE_ETC1_SUPPORT' \
268	'-DSK_IGNORE_GPU_DITHER' \
269	'-DSK_BUILD_FOR_ANDROID' \
270	'-DSK_USE_POSIX_THREADS' \
271	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
272	'-DU_USING_ICU_NAMESPACE=0' \
273	'-DU_ENABLE_DYLOAD=0' \
274	'-DMEDIA_DISABLE_LIBVPX' \
275	'-DCHROME_PNG_WRITE_SUPPORT' \
276	'-DPNG_USER_CONFIG' \
277	'-DCHROME_PNG_READ_PACK_SUPPORT' \
278	'-DUSE_SYSTEM_LIBJPEG' \
279	'-DMESA_EGL_NO_X11_HEADERS' \
280	'-DFEATURE_ENABLE_SSL' \
281	'-DFEATURE_ENABLE_VOICEMAIL' \
282	'-DEXPAT_RELATIVE_PATH' \
283	'-DGTEST_RELATIVE_PATH' \
284	'-DNO_MAIN_THREAD_WRAPPING' \
285	'-DNO_SOUND_SYSTEM' \
286	'-DANDROID' \
287	'-DPOSIX' \
288	'-DWEBRTC_POSIX' \
289	'-DUSE_OPENSSL=1' \
290	'-DUSE_OPENSSL_CERTS=1' \
291	'-D__STDC_CONSTANT_MACROS' \
292	'-D__STDC_FORMAT_MACROS' \
293	'-D__GNU_SOURCE=1' \
294	'-DUSE_STLPORT=1' \
295	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
296	'-DCHROME_BUILD_ID=""' \
297	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
298	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
299	'-D_DEBUG'
300
301
302# Include paths placed before CFLAGS/CPPFLAGS
303LOCAL_C_INCLUDES_Debug := \
304	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
305	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
306	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
307	$(gyp_shared_intermediate_dir) \
308	$(LOCAL_PATH) \
309	$(LOCAL_PATH)/third_party/khronos \
310	$(LOCAL_PATH)/gpu \
311	$(LOCAL_PATH)/skia/config \
312	$(LOCAL_PATH)/third_party/WebKit/Source \
313	$(LOCAL_PATH)/third_party/skia/src/core \
314	$(LOCAL_PATH)/third_party/skia/include/core \
315	$(LOCAL_PATH)/third_party/skia/include/effects \
316	$(LOCAL_PATH)/third_party/skia/include/pdf \
317	$(LOCAL_PATH)/third_party/skia/include/gpu \
318	$(LOCAL_PATH)/third_party/skia/include/lazy \
319	$(LOCAL_PATH)/third_party/skia/include/pathops \
320	$(LOCAL_PATH)/third_party/skia/include/pipe \
321	$(LOCAL_PATH)/third_party/skia/include/ports \
322	$(LOCAL_PATH)/third_party/skia/include/utils \
323	$(LOCAL_PATH)/skia/ext \
324	$(LOCAL_PATH)/third_party/WebKit \
325	$(PWD)/external/icu/icu4c/source/common \
326	$(PWD)/external/icu/icu4c/source/i18n \
327	$(gyp_shared_intermediate_dir)/content \
328	$(LOCAL_PATH)/ipc \
329	$(LOCAL_PATH)/third_party/WebKit \
330	$(LOCAL_PATH)/third_party/npapi \
331	$(LOCAL_PATH)/third_party/npapi/bindings \
332	$(LOCAL_PATH)/v8/include \
333	$(LOCAL_PATH)/third_party/libpng \
334	$(LOCAL_PATH)/third_party/zlib \
335	$(LOCAL_PATH)/third_party/libwebp \
336	$(LOCAL_PATH)/third_party/ots/include \
337	$(LOCAL_PATH)/third_party/qcms/src \
338	$(LOCAL_PATH)/third_party/iccjpeg \
339	$(PWD)/external/jpeg \
340	$(gyp_shared_intermediate_dir)/ui/gl \
341	$(LOCAL_PATH)/third_party/mesa/src/include \
342	$(LOCAL_PATH)/third_party/libyuv/include \
343	$(LOCAL_PATH)/third_party/libyuv \
344	$(LOCAL_PATH)/third_party/webrtc/overrides \
345	$(LOCAL_PATH)/third_party/libjingle/overrides \
346	$(LOCAL_PATH)/third_party/libjingle/source \
347	$(LOCAL_PATH)/testing/gtest/include \
348	$(LOCAL_PATH)/third_party \
349	$(PWD)/external/expat/lib \
350	$(PWD)/frameworks/wilhelm/include \
351	$(PWD)/bionic \
352	$(PWD)/external/stlport/stlport
353
354
355# Flags passed to only C++ (and not C) files.
356LOCAL_CPPFLAGS_Debug := \
357	-fno-rtti \
358	-fno-threadsafe-statics \
359	-fvisibility-inlines-hidden \
360	-Wsign-compare \
361	-std=gnu++11 \
362	-Wno-narrowing \
363	-Wno-literal-suffix \
364	-Wno-non-virtual-dtor \
365	-Wno-sign-promo
366
367
368# Flags passed to both C and C++ files.
369MY_CFLAGS_Release := \
370	-fstack-protector \
371	--param=ssp-buffer-size=4 \
372	-Werror \
373	-fno-exceptions \
374	-fno-strict-aliasing \
375	-Wall \
376	-Wno-unused-parameter \
377	-Wno-missing-field-initializers \
378	-fvisibility=hidden \
379	-pipe \
380	-fPIC \
381	-Wno-unused-local-typedefs \
382	-m64 \
383	-march=x86-64 \
384	-ffunction-sections \
385	-funwind-tables \
386	-g \
387	-fstack-protector \
388	-fno-short-enums \
389	-finline-limit=64 \
390	-Wa,--noexecstack \
391	-U_FORTIFY_SOURCE \
392	-Wno-extra \
393	-Wno-ignored-qualifiers \
394	-Wno-type-limits \
395	-Wno-unused-but-set-variable \
396	-Os \
397	-fno-ident \
398	-fdata-sections \
399	-ffunction-sections \
400	-fomit-frame-pointer \
401	-funwind-tables
402
403MY_DEFS_Release := \
404	'-DCONTENT_IMPLEMENTATION' \
405	'-DV8_DEPRECATION_WARNINGS' \
406	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
407	'-D_FILE_OFFSET_BITS=64' \
408	'-DNO_TCMALLOC' \
409	'-DDISABLE_NACL' \
410	'-DCHROMIUM_BUILD' \
411	'-DUSE_LIBJPEG_TURBO=1' \
412	'-DENABLE_WEBRTC=1' \
413	'-DUSE_PROPRIETARY_CODECS' \
414	'-DENABLE_BROWSER_CDMS' \
415	'-DENABLE_CONFIGURATION_POLICY' \
416	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
417	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
418	'-DENABLE_EGLIMAGE=1' \
419	'-DCLD_VERSION=1' \
420	'-DENABLE_PRINTING=1' \
421	'-DENABLE_MANAGED_USERS=1' \
422	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
423	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
424	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
425	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
426	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
427	'-DVIDEO_HOLE=1' \
428	'-DUSE_SECCOMP_BPF' \
429	'-DMOJO_USE_SYSTEM_IMPL' \
430	'-DPOSIX_AVOID_MMAP' \
431	'-DSK_ENABLE_INST_COUNT=0' \
432	'-DSK_SUPPORT_GPU=1' \
433	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
434	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
435	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
436	'-DGR_GL_IGNORE_ES3_MSAA=0' \
437	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
438	'-DSK_SUPPORT_LEGACY_PICTURE_CLONE' \
439	'-DSK_SUPPORT_LEGACY_GETDEVICE' \
440	'-DSK_IGNORE_ETC1_SUPPORT' \
441	'-DSK_IGNORE_GPU_DITHER' \
442	'-DSK_BUILD_FOR_ANDROID' \
443	'-DSK_USE_POSIX_THREADS' \
444	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
445	'-DU_USING_ICU_NAMESPACE=0' \
446	'-DU_ENABLE_DYLOAD=0' \
447	'-DMEDIA_DISABLE_LIBVPX' \
448	'-DCHROME_PNG_WRITE_SUPPORT' \
449	'-DPNG_USER_CONFIG' \
450	'-DCHROME_PNG_READ_PACK_SUPPORT' \
451	'-DUSE_SYSTEM_LIBJPEG' \
452	'-DMESA_EGL_NO_X11_HEADERS' \
453	'-DFEATURE_ENABLE_SSL' \
454	'-DFEATURE_ENABLE_VOICEMAIL' \
455	'-DEXPAT_RELATIVE_PATH' \
456	'-DGTEST_RELATIVE_PATH' \
457	'-DNO_MAIN_THREAD_WRAPPING' \
458	'-DNO_SOUND_SYSTEM' \
459	'-DANDROID' \
460	'-DPOSIX' \
461	'-DWEBRTC_POSIX' \
462	'-DUSE_OPENSSL=1' \
463	'-DUSE_OPENSSL_CERTS=1' \
464	'-D__STDC_CONSTANT_MACROS' \
465	'-D__STDC_FORMAT_MACROS' \
466	'-D__GNU_SOURCE=1' \
467	'-DUSE_STLPORT=1' \
468	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
469	'-DCHROME_BUILD_ID=""' \
470	'-DNDEBUG' \
471	'-DNVALGRIND' \
472	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
473	'-D_FORTIFY_SOURCE=2'
474
475
476# Include paths placed before CFLAGS/CPPFLAGS
477LOCAL_C_INCLUDES_Release := \
478	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
479	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
480	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
481	$(gyp_shared_intermediate_dir) \
482	$(LOCAL_PATH) \
483	$(LOCAL_PATH)/third_party/khronos \
484	$(LOCAL_PATH)/gpu \
485	$(LOCAL_PATH)/skia/config \
486	$(LOCAL_PATH)/third_party/WebKit/Source \
487	$(LOCAL_PATH)/third_party/skia/src/core \
488	$(LOCAL_PATH)/third_party/skia/include/core \
489	$(LOCAL_PATH)/third_party/skia/include/effects \
490	$(LOCAL_PATH)/third_party/skia/include/pdf \
491	$(LOCAL_PATH)/third_party/skia/include/gpu \
492	$(LOCAL_PATH)/third_party/skia/include/lazy \
493	$(LOCAL_PATH)/third_party/skia/include/pathops \
494	$(LOCAL_PATH)/third_party/skia/include/pipe \
495	$(LOCAL_PATH)/third_party/skia/include/ports \
496	$(LOCAL_PATH)/third_party/skia/include/utils \
497	$(LOCAL_PATH)/skia/ext \
498	$(LOCAL_PATH)/third_party/WebKit \
499	$(PWD)/external/icu/icu4c/source/common \
500	$(PWD)/external/icu/icu4c/source/i18n \
501	$(gyp_shared_intermediate_dir)/content \
502	$(LOCAL_PATH)/ipc \
503	$(LOCAL_PATH)/third_party/WebKit \
504	$(LOCAL_PATH)/third_party/npapi \
505	$(LOCAL_PATH)/third_party/npapi/bindings \
506	$(LOCAL_PATH)/v8/include \
507	$(LOCAL_PATH)/third_party/libpng \
508	$(LOCAL_PATH)/third_party/zlib \
509	$(LOCAL_PATH)/third_party/libwebp \
510	$(LOCAL_PATH)/third_party/ots/include \
511	$(LOCAL_PATH)/third_party/qcms/src \
512	$(LOCAL_PATH)/third_party/iccjpeg \
513	$(PWD)/external/jpeg \
514	$(gyp_shared_intermediate_dir)/ui/gl \
515	$(LOCAL_PATH)/third_party/mesa/src/include \
516	$(LOCAL_PATH)/third_party/libyuv/include \
517	$(LOCAL_PATH)/third_party/libyuv \
518	$(LOCAL_PATH)/third_party/webrtc/overrides \
519	$(LOCAL_PATH)/third_party/libjingle/overrides \
520	$(LOCAL_PATH)/third_party/libjingle/source \
521	$(LOCAL_PATH)/testing/gtest/include \
522	$(LOCAL_PATH)/third_party \
523	$(PWD)/external/expat/lib \
524	$(PWD)/frameworks/wilhelm/include \
525	$(PWD)/bionic \
526	$(PWD)/external/stlport/stlport
527
528
529# Flags passed to only C++ (and not C) files.
530LOCAL_CPPFLAGS_Release := \
531	-fno-rtti \
532	-fno-threadsafe-statics \
533	-fvisibility-inlines-hidden \
534	-Wsign-compare \
535	-std=gnu++11 \
536	-Wno-narrowing \
537	-Wno-literal-suffix \
538	-Wno-non-virtual-dtor \
539	-Wno-sign-promo
540
541
542LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
543LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
544LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
545LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
546### Rules for final target.
547
548LOCAL_LDFLAGS_Debug := \
549	-Wl,-z,now \
550	-Wl,-z,relro \
551	-Wl,--fatal-warnings \
552	-Wl,-z,noexecstack \
553	-fPIC \
554	-m64 \
555	-fuse-ld=gold \
556	-nostdlib \
557	-Wl,--no-undefined \
558	-Wl,--exclude-libs=ALL \
559	-Wl,--warn-shared-textrel \
560	-Wl,-O1 \
561	-Wl,--as-needed
562
563
564LOCAL_LDFLAGS_Release := \
565	-Wl,-z,now \
566	-Wl,-z,relro \
567	-Wl,--fatal-warnings \
568	-Wl,-z,noexecstack \
569	-fPIC \
570	-m64 \
571	-fuse-ld=gold \
572	-nostdlib \
573	-Wl,--no-undefined \
574	-Wl,--exclude-libs=ALL \
575	-Wl,-O1 \
576	-Wl,--as-needed \
577	-Wl,--gc-sections \
578	-Wl,--warn-shared-textrel
579
580
581LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
582
583LOCAL_STATIC_LIBRARIES := \
584	skia_skia_library_gyp \
585	ui_accessibility_accessibility_gyp \
586	ui_accessibility_ax_gen_gyp \
587	ui_base_ui_base_gyp \
588	mojo_mojo_application_bindings_gyp \
589	ui_gl_gl_gyp
590
591# Enable grouping to fix circular references
592LOCAL_GROUP_STATIC_LIBRARIES := true
593
594LOCAL_SHARED_LIBRARIES := \
595	libstlport \
596	libdl
597
598# Add target alias to "gyp_all_modules" target.
599.PHONY: gyp_all_modules
600gyp_all_modules: content_content_common_gyp
601
602# Alias gyp target name.
603.PHONY: content_common
604content_common: content_content_common_gyp
605
606include $(BUILD_STATIC_LIBRARY)
607