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