• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# This file is generated by gyp; do not edit.
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE_CLASS := STATIC_LIBRARIES
6LOCAL_MODULE := content_content_renderer_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,GYP,content_content_resources_gyp,,,$(GYP_VAR_PREFIX))/content_resources.stamp \
15	$(call intermediates-dir-for,STATIC_LIBRARIES,content_content_common_mojo_bindings_gyp,,,$(GYP_VAR_PREFIX))/content_content_common_mojo_bindings_gyp.a \
16	$(call intermediates-dir-for,GYP,gpu_gpu_gyp,,,$(GYP_VAR_PREFIX))/gpu.stamp \
17	$(call intermediates-dir-for,STATIC_LIBRARIES,mojo_mojo_application_bindings_gyp,,,$(GYP_VAR_PREFIX))/mojo_mojo_application_bindings_gyp.a \
18	$(call intermediates-dir-for,GYP,skia_skia_gyp,,,$(GYP_VAR_PREFIX))/skia.stamp \
19	$(call intermediates-dir-for,STATIC_LIBRARIES,skia_skia_library_gyp,,,$(GYP_VAR_PREFIX))/skia_skia_library_gyp.a \
20	$(call intermediates-dir-for,GYP,third_party_WebKit_public_blink_gyp,,,$(GYP_VAR_PREFIX))/blink.stamp \
21	$(call intermediates-dir-for,GYP,third_party_icu_icui18n_gyp,,,$(GYP_VAR_PREFIX))/icui18n.stamp \
22	$(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp,,,$(GYP_VAR_PREFIX))/icuuc.stamp \
23	$(call intermediates-dir-for,GYP,third_party_npapi_npapi_gyp,,,$(GYP_VAR_PREFIX))/npapi.stamp \
24	$(call intermediates-dir-for,GYP,third_party_widevine_cdm_widevine_cdm_version_h_gyp,,,$(GYP_VAR_PREFIX))/widevine_cdm_version_h.stamp \
25	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_accessibility_accessibility_gyp,,,$(GYP_VAR_PREFIX))/ui_accessibility_accessibility_gyp.a \
26	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_accessibility_ax_gen_gyp,,,$(GYP_VAR_PREFIX))/ui_accessibility_ax_gen_gyp.a \
27	$(call intermediates-dir-for,GYP,v8_tools_gyp_v8_gyp,,,$(GYP_VAR_PREFIX))/v8.stamp \
28	$(call intermediates-dir-for,STATIC_LIBRARIES,third_party_libphonenumber_libphonenumber_without_metadata_gyp,,,$(GYP_VAR_PREFIX))/third_party_libphonenumber_libphonenumber_without_metadata_gyp.a
29
30GYP_GENERATED_OUTPUTS :=
31
32# Make sure our deps and generated files are built first.
33LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
34
35LOCAL_CPP_EXTENSION := .cc
36LOCAL_GENERATED_SOURCES :=
37
38GYP_COPIED_SOURCE_ORIGIN_DIRS :=
39
40LOCAL_SRC_FILES := \
41	content/public/renderer/android_content_detection_prefixes.cc \
42	content/public/renderer/content_renderer_client.cc \
43	content/public/renderer/document_state.cc \
44	content/public/renderer/key_system_info.cc \
45	content/public/renderer/navigation_state.cc \
46	content/public/renderer/render_frame_observer.cc \
47	content/public/renderer/render_process_observer.cc \
48	content/public/renderer/render_thread.cc \
49	content/public/renderer/render_view_observer.cc \
50	content/public/renderer/video_encode_accelerator.cc \
51	content/renderer/accessibility/blink_ax_enum_conversion.cc \
52	content/renderer/accessibility/blink_ax_tree_source.cc \
53	content/renderer/accessibility/renderer_accessibility.cc \
54	content/renderer/accessibility/renderer_accessibility_complete.cc \
55	content/renderer/android/address_detector.cc \
56	content/renderer/android/content_detector.cc \
57	content/renderer/android/email_detector.cc \
58	content/renderer/android/phone_number_detector.cc \
59	content/renderer/android/renderer_date_time_picker.cc \
60	content/renderer/android/synchronous_compositor_factory.cc \
61	content/renderer/battery_status/battery_status_dispatcher.cc \
62	content/renderer/browser_plugin/browser_plugin.cc \
63	content/renderer/browser_plugin/browser_plugin_manager_impl.cc \
64	content/renderer/browser_plugin/browser_plugin_manager.cc \
65	content/renderer/clipboard_utils.cc \
66	content/renderer/child_frame_compositing_helper.cc \
67	content/renderer/context_menu_params_builder.cc \
68	content/renderer/cursor_utils.cc \
69	content/renderer/date_time_suggestion_builder.cc \
70	content/renderer/device_sensors/device_light_event_pump.cc \
71	content/renderer/device_sensors/device_motion_event_pump.cc \
72	content/renderer/device_sensors/device_orientation_event_pump.cc \
73	content/renderer/devtools/devtools_agent.cc \
74	content/renderer/devtools/devtools_agent_filter.cc \
75	content/renderer/devtools/devtools_client.cc \
76	content/renderer/disambiguation_popup_helper.cc \
77	content/renderer/dom_automation_controller.cc \
78	content/renderer/dom_storage/dom_storage_cached_area.cc \
79	content/renderer/dom_storage/dom_storage_dispatcher.cc \
80	content/renderer/dom_storage/webstoragearea_impl.cc \
81	content/renderer/dom_storage/webstoragenamespace_impl.cc \
82	content/renderer/dom_utils.cc \
83	content/renderer/drop_data_builder.cc \
84	content/renderer/fetchers/image_resource_fetcher.cc \
85	content/renderer/fetchers/manifest_fetcher.cc \
86	content/renderer/fetchers/multi_resolution_image_resource_fetcher.cc \
87	content/renderer/fetchers/resource_fetcher_impl.cc \
88	content/renderer/fetchers/web_url_loader_client_impl.cc \
89	content/renderer/gamepad_shared_memory_reader.cc \
90	content/renderer/geolocation_dispatcher.cc \
91	content/renderer/gpu/compositor_output_surface.cc \
92	content/renderer/gpu/compositor_software_output_device.cc \
93	content/renderer/gpu/delegated_compositor_output_surface.cc \
94	content/renderer/gpu/frame_swap_message_queue.cc \
95	content/renderer/gpu/gpu_benchmarking_extension.cc \
96	content/renderer/gpu/mailbox_output_surface.cc \
97	content/renderer/gpu/queue_message_swap_promise.cc \
98	content/renderer/gpu/render_widget_compositor.cc \
99	content/renderer/gpu/stream_texture_host_android.cc \
100	content/renderer/history_controller.cc \
101	content/renderer/history_entry.cc \
102	content/renderer/history_serialization.cc \
103	content/renderer/idle_user_detector.cc \
104	content/renderer/image_loading_helper.cc \
105	content/renderer/ime_event_guard.cc \
106	content/renderer/in_process_renderer_thread.cc \
107	content/renderer/input/input_event_filter.cc \
108	content/renderer/input/input_handler_manager.cc \
109	content/renderer/input/input_handler_proxy.cc \
110	content/renderer/input/input_handler_wrapper.cc \
111	content/renderer/internal_document_state_data.cc \
112	content/renderer/java/gin_java_bridge_dispatcher.cc \
113	content/renderer/java/gin_java_bridge_object.cc \
114	content/renderer/java/gin_java_bridge_value_converter.cc \
115	content/renderer/manifest/manifest_manager.cc \
116	content/renderer/manifest/manifest_parser.cc \
117	content/renderer/media/aec_dump_message_filter.cc \
118	content/renderer/media/android/audio_decoder_android.cc \
119	content/renderer/media/android/media_info_loader.cc \
120	content/renderer/media/android/media_source_delegate.cc \
121	content/renderer/media/android/renderer_demuxer_android.cc \
122	content/renderer/media/android/renderer_media_player_manager.cc \
123	content/renderer/media/android/stream_texture_factory_impl.cc \
124	content/renderer/media/android/stream_texture_factory_synchronous_impl.cc \
125	content/renderer/media/android/webmediaplayer_android.cc \
126	content/renderer/media/audio_device_factory.cc \
127	content/renderer/media/audio_input_message_filter.cc \
128	content/renderer/media/audio_message_filter.cc \
129	content/renderer/media/audio_renderer_mixer_manager.cc \
130	content/renderer/media/cdm_result_promise.cc \
131	content/renderer/media/cdm_session_adapter.cc \
132	content/renderer/media/crypto/content_decryption_module_factory.cc \
133	content/renderer/media/crypto/key_systems.cc \
134	content/renderer/media/crypto/key_systems_support_uma.cc \
135	content/renderer/media/crypto/proxy_decryptor.cc \
136	content/renderer/media/media_stream_audio_level_calculator.cc \
137	content/renderer/media/media_stream_audio_renderer.cc \
138	content/renderer/media/media_stream_constraints_util.cc \
139	content/renderer/media/media_stream_track.cc \
140	content/renderer/media/midi_dispatcher.cc \
141	content/renderer/media/midi_message_filter.cc \
142	content/renderer/media/render_media_log.cc \
143	content/renderer/media/renderer_gpu_video_accelerator_factories.cc \
144	content/renderer/media/renderer_webaudiodevice_impl.cc \
145	content/renderer/media/renderer_webmidiaccessor_impl.cc \
146	content/renderer/media/video_capture_impl.cc \
147	content/renderer/media/video_capture_impl_manager.cc \
148	content/renderer/media/video_capture_message_filter.cc \
149	content/renderer/media/video_frame_provider.cc \
150	content/renderer/media/webcontentdecryptionmodule_impl.cc \
151	content/renderer/media/webcontentdecryptionmodulesession_impl.cc \
152	content/renderer/media/webmediaplayer_ms.cc \
153	content/renderer/memory_benchmarking_extension.cc \
154	content/renderer/menu_item_builder.cc \
155	content/renderer/mhtml_generator.cc \
156	content/renderer/mojo/service_registry_js_wrapper.cc \
157	content/renderer/mouse_lock_dispatcher.cc \
158	content/renderer/net_info_helper.cc \
159	content/renderer/notification_permission_dispatcher.cc \
160	content/renderer/push_messaging_dispatcher.cc \
161	content/renderer/render_frame_impl.cc \
162	content/renderer/render_frame_proxy.cc \
163	content/renderer/render_process_impl.cc \
164	content/renderer/render_thread_impl.cc \
165	content/renderer/render_view_impl.cc \
166	content/renderer/render_view_impl_android.cc \
167	content/renderer/render_view_impl_params.cc \
168	content/renderer/render_view_linux.cc \
169	content/renderer/render_view_mouse_lock_dispatcher.cc \
170	content/renderer/render_widget.cc \
171	content/renderer/render_widget_fullscreen.cc \
172	content/renderer/renderer_clipboard_client.cc \
173	content/renderer/renderer_main.cc \
174	content/renderer/renderer_main_platform_delegate_android.cc \
175	content/renderer/renderer_webapplicationcachehost_impl.cc \
176	content/renderer/renderer_webcolorchooser_impl.cc \
177	content/renderer/renderer_webcookiejar_impl.cc \
178	content/renderer/renderer_webkitplatformsupport_impl.cc \
179	content/renderer/resizing_mode_selector.cc \
180	content/renderer/sad_plugin.cc \
181	content/renderer/savable_resources.cc \
182	content/renderer/screen_orientation/screen_orientation_dispatcher.cc \
183	content/renderer/screen_orientation/screen_orientation_observer.cc \
184	content/renderer/scoped_clipboard_writer_glue.cc \
185	content/renderer/service_worker/embedded_worker_context_client.cc \
186	content/renderer/service_worker/embedded_worker_context_message_filter.cc \
187	content/renderer/service_worker/embedded_worker_devtools_agent.cc \
188	content/renderer/service_worker/embedded_worker_dispatcher.cc \
189	content/renderer/service_worker/service_worker_cache_storage_dispatcher.cc \
190	content/renderer/service_worker/service_worker_script_context.cc \
191	content/renderer/shared_memory_seqlock_reader.cc \
192	content/renderer/shared_worker_repository.cc \
193	content/renderer/shared_worker/embedded_shared_worker_permission_client_proxy.cc \
194	content/renderer/shared_worker/embedded_shared_worker_stub.cc \
195	content/renderer/skia_benchmarking_extension.cc \
196	content/renderer/speech_recognition_dispatcher.cc \
197	content/renderer/stats_collection_controller.cc \
198	content/renderer/stats_collection_observer.cc \
199	content/renderer/text_input_client_observer.cc \
200	content/renderer/v8_value_converter_impl.cc \
201	content/renderer/web_ui_extension.cc \
202	content/renderer/web_ui_extension_data.cc \
203	content/renderer/web_ui_mojo.cc \
204	content/renderer/web_ui_mojo_context_state.cc \
205	content/renderer/web_ui_runner.cc \
206	content/renderer/webclipboard_impl.cc \
207	content/renderer/webgraphicscontext3d_provider_impl.cc \
208	content/renderer/webpublicsuffixlist_impl.cc \
209	content/renderer/webscrollbarbehavior_impl_gtkoraura.cc \
210	content/renderer/websharedworker_proxy.cc \
211	content/renderer/external_popup_menu.cc \
212	content/public/renderer/media_stream_audio_sink.cc \
213	content/public/renderer/media_stream_video_sink.cc \
214	content/renderer/media/media_stream.cc \
215	content/renderer/media/media_stream_audio_processor.cc \
216	content/renderer/media/media_stream_audio_processor_options.cc \
217	content/renderer/media/media_stream_audio_sink_owner.cc \
218	content/renderer/media/media_stream_center.cc \
219	content/renderer/media/media_stream_dispatcher.cc \
220	content/renderer/media/media_stream_audio_source.cc \
221	content/renderer/media/media_stream_renderer_factory.cc \
222	content/renderer/media/media_stream_source.cc \
223	content/renderer/media/media_stream_video_capturer_source.cc \
224	content/renderer/media/media_stream_video_source.cc \
225	content/renderer/media/media_stream_video_track.cc \
226	content/renderer/media/native_handle_impl.cc \
227	content/renderer/media/peer_connection_audio_sink_owner.cc \
228	content/renderer/media/peer_connection_identity_service.cc \
229	content/renderer/media/peer_connection_tracker.cc \
230	content/renderer/media/remote_media_stream_impl.cc \
231	content/renderer/media/rtc_data_channel_handler.cc \
232	content/renderer/media/rtc_dtmf_sender_handler.cc \
233	content/renderer/media/rtc_media_constraints.cc \
234	content/renderer/media/rtc_peer_connection_handler.cc \
235	content/renderer/media/rtc_video_decoder.cc \
236	content/renderer/media/rtc_video_decoder_factory.cc \
237	content/renderer/media/rtc_video_encoder.cc \
238	content/renderer/media/rtc_video_encoder_factory.cc \
239	content/renderer/media/rtc_video_renderer.cc \
240	content/renderer/media/user_media_client_impl.cc \
241	content/renderer/media/video_source_handler.cc \
242	content/renderer/media/video_track_adapter.cc \
243	content/renderer/media/webaudio_capturer_source.cc \
244	content/renderer/media/webrtc/webrtc_video_track_adapter.cc \
245	content/renderer/media/webrtc/media_stream_remote_video_source.cc \
246	content/renderer/media/webrtc/media_stream_track_metrics.cc \
247	content/renderer/media/webrtc/peer_connection_dependency_factory.cc \
248	content/renderer/media/webrtc/webrtc_audio_sink_adapter.cc \
249	content/renderer/media/webrtc/webrtc_local_audio_track_adapter.cc \
250	content/renderer/media/webrtc/webrtc_media_stream_adapter.cc \
251	content/renderer/media/webrtc/webrtc_video_capturer_adapter.cc \
252	content/renderer/media/webrtc_audio_capturer.cc \
253	content/renderer/media/webrtc_audio_device_impl.cc \
254	content/renderer/media/webrtc_audio_device_not_impl.cc \
255	content/renderer/media/webrtc_audio_renderer.cc \
256	content/renderer/media/webrtc_identity_service.cc \
257	content/renderer/media/webrtc_local_audio_renderer.cc \
258	content/renderer/media/webrtc_local_audio_source_provider.cc \
259	content/renderer/media/webrtc_local_audio_track.cc \
260	content/renderer/media/webrtc_logging.cc \
261	content/renderer/media/webrtc_uma_histograms.cc \
262	content/renderer/p2p/host_address_request.cc \
263	content/renderer/p2p/ipc_network_manager.cc \
264	content/renderer/p2p/ipc_socket_factory.cc \
265	content/renderer/p2p/port_allocator.cc \
266	content/renderer/p2p/socket_client_impl.cc \
267	content/renderer/p2p/socket_dispatcher.cc \
268	content/renderer/media/crypto/proxy_media_keys.cc \
269	content/renderer/media/crypto/renderer_cdm_manager.cc
270
271
272# Flags passed to both C and C++ files.
273MY_CFLAGS_Debug := \
274	-fstack-protector \
275	--param=ssp-buffer-size=4 \
276	 \
277	-fno-strict-aliasing \
278	-Wall \
279	-Wno-unused-parameter \
280	-Wno-missing-field-initializers \
281	-fvisibility=hidden \
282	-pipe \
283	-fPIC \
284	-Wno-unused-local-typedefs \
285	-ffunction-sections \
286	-funwind-tables \
287	-g \
288	-fstack-protector \
289	-fno-short-enums \
290	-finline-limit=64 \
291	-Wa,--noexecstack \
292	-U_FORTIFY_SOURCE \
293	-Wno-extra \
294	-Wno-ignored-qualifiers \
295	-Wno-type-limits \
296	-Wno-unused-but-set-variable \
297	-Os \
298	-g \
299	-gdwarf-4 \
300	-fdata-sections \
301	-ffunction-sections \
302	-fomit-frame-pointer \
303	-funwind-tables
304
305MY_DEFS_Debug := \
306	'-DCONTENT_IMPLEMENTATION' \
307	'-DV8_DEPRECATION_WARNINGS' \
308	'-D_FILE_OFFSET_BITS=64' \
309	'-DNO_TCMALLOC' \
310	'-DDISABLE_NACL' \
311	'-DCHROMIUM_BUILD' \
312	'-DUSE_LIBJPEG_TURBO=1' \
313	'-DENABLE_WEBRTC=1' \
314	'-DUSE_PROPRIETARY_CODECS' \
315	'-DENABLE_BROWSER_CDMS' \
316	'-DENABLE_CONFIGURATION_POLICY' \
317	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
318	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
319	'-DENABLE_EGLIMAGE=1' \
320	'-DCLD_VERSION=1' \
321	'-DENABLE_PRINTING=1' \
322	'-DENABLE_MANAGED_USERS=1' \
323	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
324	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
325	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
326	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
327	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
328	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
329	'-DVIDEO_HOLE=1' \
330	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
331	'-DMOJO_USE_SYSTEM_IMPL' \
332	'-DLIBPEERCONNECTION_LIB=1' \
333	'-DMEDIA_DISABLE_LIBVPX' \
334	'-DPOSIX_AVOID_MMAP' \
335	'-DSK_ENABLE_INST_COUNT=0' \
336	'-DSK_SUPPORT_GPU=1' \
337	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
338	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
339	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
340	'-DGR_GL_IGNORE_ES3_MSAA=0' \
341	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
342	'-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \
343	'-DSK_BUILD_FOR_ANDROID' \
344	'-DSK_USE_POSIX_THREADS' \
345	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
346	'-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \
347	'-DCHROME_PNG_WRITE_SUPPORT' \
348	'-DPNG_USER_CONFIG' \
349	'-DCHROME_PNG_READ_PACK_SUPPORT' \
350	'-DU_USING_ICU_NAMESPACE=0' \
351	'-DU_ENABLE_DYLOAD=0' \
352	'-DFEATURE_ENABLE_SSL' \
353	'-DFEATURE_ENABLE_VOICEMAIL' \
354	'-DEXPAT_RELATIVE_PATH' \
355	'-DGTEST_RELATIVE_PATH' \
356	'-DNO_MAIN_THREAD_WRAPPING' \
357	'-DNO_SOUND_SYSTEM' \
358	'-DANDROID' \
359	'-DPOSIX' \
360	'-DWEBRTC_POSIX' \
361	'-DXML_STATIC' \
362	'-DI18N_PHONENUMBERS_USE_ICU_REGEXP=1' \
363	'-DPROTOBUF_USE_DLLS' \
364	'-DGOOGLE_PROTOBUF_NO_RTTI' \
365	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
366	'-DWEBRTC_CHROMIUM_BUILD' \
367	'-DWEBRTC_LINUX' \
368	'-DWEBRTC_ANDROID' \
369	'-DWEBRTC_ANDROID_OPENSLES' \
370	'-DUSE_OPENSSL=1' \
371	'-DUSE_OPENSSL_CERTS=1' \
372	'-D__STDC_CONSTANT_MACROS' \
373	'-D__STDC_FORMAT_MACROS' \
374	'-D__GNU_SOURCE=1' \
375	'-DUSE_STLPORT=1' \
376	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
377	'-DCHROME_BUILD_ID=""' \
378	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
379	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
380	'-D_DEBUG'
381
382
383# Include paths placed before CFLAGS/CPPFLAGS
384LOCAL_C_INCLUDES_Debug := \
385	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
386	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
387	$(gyp_shared_intermediate_dir) \
388	$(LOCAL_PATH) \
389	$(LOCAL_PATH)/skia/config \
390	$(LOCAL_PATH)/third_party/WebKit/Source \
391	$(LOCAL_PATH)/third_party/khronos \
392	$(LOCAL_PATH)/gpu \
393	$(LOCAL_PATH)/third_party/WebKit \
394	$(LOCAL_PATH)/third_party/skia/src/core \
395	$(LOCAL_PATH)/third_party/skia/include/core \
396	$(LOCAL_PATH)/third_party/skia/include/effects \
397	$(LOCAL_PATH)/third_party/skia/include/pdf \
398	$(LOCAL_PATH)/third_party/skia/include/gpu \
399	$(LOCAL_PATH)/third_party/skia/include/lazy \
400	$(LOCAL_PATH)/third_party/skia/include/pathops \
401	$(LOCAL_PATH)/third_party/skia/include/pipe \
402	$(LOCAL_PATH)/third_party/skia/include/ports \
403	$(LOCAL_PATH)/third_party/skia/include/utils \
404	$(LOCAL_PATH)/skia/ext \
405	$(LOCAL_PATH)/third_party/WebKit \
406	$(LOCAL_PATH)/third_party/libpng \
407	$(LOCAL_PATH)/third_party/zlib \
408	$(LOCAL_PATH)/third_party/libwebp \
409	$(LOCAL_PATH)/third_party/ots/include \
410	$(LOCAL_PATH)/third_party/qcms/src \
411	$(LOCAL_PATH)/third_party/iccjpeg \
412	$(LOCAL_PATH)/third_party/libjpeg_turbo \
413	$(PWD)/external/icu/icu4c/source/common \
414	$(PWD)/external/icu/icu4c/source/i18n \
415	$(LOCAL_PATH)/third_party/webrtc/overrides \
416	$(LOCAL_PATH)/third_party/libjingle/overrides \
417	$(LOCAL_PATH)/third_party/libjingle/source \
418	$(LOCAL_PATH)/testing/gtest/include \
419	$(LOCAL_PATH)/third_party \
420	$(LOCAL_PATH)/third_party/expat/files/lib \
421	$(LOCAL_PATH)/third_party/npapi \
422	$(LOCAL_PATH)/third_party/npapi/bindings \
423	$(LOCAL_PATH)/v8/include \
424	$(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber \
425	$(LOCAL_PATH)/third_party/libphonenumber/src \
426	$(gyp_shared_intermediate_dir)/protoc_out \
427	$(LOCAL_PATH)/third_party/protobuf \
428	$(LOCAL_PATH)/third_party/protobuf/src \
429	$(LOCAL_PATH)/third_party/libyuv/include \
430	$(LOCAL_PATH)/third_party/libyuv \
431	$(LOCAL_PATH)/third_party/webrtc/modules/interface \
432	$(LOCAL_PATH)/third_party/webrtc/modules/audio_device/include \
433	$(PWD)/frameworks/wilhelm/include \
434	$(PWD)/bionic \
435	$(PWD)/external/stlport/stlport
436
437
438# Flags passed to only C++ (and not C) files.
439LOCAL_CPPFLAGS_Debug := \
440	-fno-exceptions \
441	-fno-rtti \
442	-fno-threadsafe-statics \
443	-fvisibility-inlines-hidden \
444	-Wsign-compare \
445	-Wno-uninitialized \
446	-std=gnu++11 \
447	-Wno-narrowing \
448	-Wno-literal-suffix \
449	-Wno-non-virtual-dtor \
450	-Wno-sign-promo
451
452
453# Flags passed to both C and C++ files.
454MY_CFLAGS_Release := \
455	-fstack-protector \
456	--param=ssp-buffer-size=4 \
457	 \
458	-fno-strict-aliasing \
459	-Wall \
460	-Wno-unused-parameter \
461	-Wno-missing-field-initializers \
462	-fvisibility=hidden \
463	-pipe \
464	-fPIC \
465	-Wno-unused-local-typedefs \
466	-ffunction-sections \
467	-funwind-tables \
468	-g \
469	-fstack-protector \
470	-fno-short-enums \
471	-finline-limit=64 \
472	-Wa,--noexecstack \
473	-U_FORTIFY_SOURCE \
474	-Wno-extra \
475	-Wno-ignored-qualifiers \
476	-Wno-type-limits \
477	-Wno-unused-but-set-variable \
478	-Os \
479	-fno-ident \
480	-fdata-sections \
481	-ffunction-sections \
482	-fomit-frame-pointer \
483	-funwind-tables
484
485MY_DEFS_Release := \
486	'-DCONTENT_IMPLEMENTATION' \
487	'-DV8_DEPRECATION_WARNINGS' \
488	'-D_FILE_OFFSET_BITS=64' \
489	'-DNO_TCMALLOC' \
490	'-DDISABLE_NACL' \
491	'-DCHROMIUM_BUILD' \
492	'-DUSE_LIBJPEG_TURBO=1' \
493	'-DENABLE_WEBRTC=1' \
494	'-DUSE_PROPRIETARY_CODECS' \
495	'-DENABLE_BROWSER_CDMS' \
496	'-DENABLE_CONFIGURATION_POLICY' \
497	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
498	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
499	'-DENABLE_EGLIMAGE=1' \
500	'-DCLD_VERSION=1' \
501	'-DENABLE_PRINTING=1' \
502	'-DENABLE_MANAGED_USERS=1' \
503	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
504	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
505	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
506	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
507	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
508	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
509	'-DVIDEO_HOLE=1' \
510	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
511	'-DMOJO_USE_SYSTEM_IMPL' \
512	'-DLIBPEERCONNECTION_LIB=1' \
513	'-DMEDIA_DISABLE_LIBVPX' \
514	'-DPOSIX_AVOID_MMAP' \
515	'-DSK_ENABLE_INST_COUNT=0' \
516	'-DSK_SUPPORT_GPU=1' \
517	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
518	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
519	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
520	'-DGR_GL_IGNORE_ES3_MSAA=0' \
521	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
522	'-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \
523	'-DSK_BUILD_FOR_ANDROID' \
524	'-DSK_USE_POSIX_THREADS' \
525	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
526	'-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \
527	'-DCHROME_PNG_WRITE_SUPPORT' \
528	'-DPNG_USER_CONFIG' \
529	'-DCHROME_PNG_READ_PACK_SUPPORT' \
530	'-DU_USING_ICU_NAMESPACE=0' \
531	'-DU_ENABLE_DYLOAD=0' \
532	'-DFEATURE_ENABLE_SSL' \
533	'-DFEATURE_ENABLE_VOICEMAIL' \
534	'-DEXPAT_RELATIVE_PATH' \
535	'-DGTEST_RELATIVE_PATH' \
536	'-DNO_MAIN_THREAD_WRAPPING' \
537	'-DNO_SOUND_SYSTEM' \
538	'-DANDROID' \
539	'-DPOSIX' \
540	'-DWEBRTC_POSIX' \
541	'-DXML_STATIC' \
542	'-DI18N_PHONENUMBERS_USE_ICU_REGEXP=1' \
543	'-DPROTOBUF_USE_DLLS' \
544	'-DGOOGLE_PROTOBUF_NO_RTTI' \
545	'-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \
546	'-DWEBRTC_CHROMIUM_BUILD' \
547	'-DWEBRTC_LINUX' \
548	'-DWEBRTC_ANDROID' \
549	'-DWEBRTC_ANDROID_OPENSLES' \
550	'-DUSE_OPENSSL=1' \
551	'-DUSE_OPENSSL_CERTS=1' \
552	'-D__STDC_CONSTANT_MACROS' \
553	'-D__STDC_FORMAT_MACROS' \
554	'-D__GNU_SOURCE=1' \
555	'-DUSE_STLPORT=1' \
556	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
557	'-DCHROME_BUILD_ID=""' \
558	'-DNDEBUG' \
559	'-DNVALGRIND' \
560	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
561	'-D_FORTIFY_SOURCE=2'
562
563
564# Include paths placed before CFLAGS/CPPFLAGS
565LOCAL_C_INCLUDES_Release := \
566	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
567	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
568	$(gyp_shared_intermediate_dir) \
569	$(LOCAL_PATH) \
570	$(LOCAL_PATH)/skia/config \
571	$(LOCAL_PATH)/third_party/WebKit/Source \
572	$(LOCAL_PATH)/third_party/khronos \
573	$(LOCAL_PATH)/gpu \
574	$(LOCAL_PATH)/third_party/WebKit \
575	$(LOCAL_PATH)/third_party/skia/src/core \
576	$(LOCAL_PATH)/third_party/skia/include/core \
577	$(LOCAL_PATH)/third_party/skia/include/effects \
578	$(LOCAL_PATH)/third_party/skia/include/pdf \
579	$(LOCAL_PATH)/third_party/skia/include/gpu \
580	$(LOCAL_PATH)/third_party/skia/include/lazy \
581	$(LOCAL_PATH)/third_party/skia/include/pathops \
582	$(LOCAL_PATH)/third_party/skia/include/pipe \
583	$(LOCAL_PATH)/third_party/skia/include/ports \
584	$(LOCAL_PATH)/third_party/skia/include/utils \
585	$(LOCAL_PATH)/skia/ext \
586	$(LOCAL_PATH)/third_party/WebKit \
587	$(LOCAL_PATH)/third_party/libpng \
588	$(LOCAL_PATH)/third_party/zlib \
589	$(LOCAL_PATH)/third_party/libwebp \
590	$(LOCAL_PATH)/third_party/ots/include \
591	$(LOCAL_PATH)/third_party/qcms/src \
592	$(LOCAL_PATH)/third_party/iccjpeg \
593	$(LOCAL_PATH)/third_party/libjpeg_turbo \
594	$(PWD)/external/icu/icu4c/source/common \
595	$(PWD)/external/icu/icu4c/source/i18n \
596	$(LOCAL_PATH)/third_party/webrtc/overrides \
597	$(LOCAL_PATH)/third_party/libjingle/overrides \
598	$(LOCAL_PATH)/third_party/libjingle/source \
599	$(LOCAL_PATH)/testing/gtest/include \
600	$(LOCAL_PATH)/third_party \
601	$(LOCAL_PATH)/third_party/expat/files/lib \
602	$(LOCAL_PATH)/third_party/npapi \
603	$(LOCAL_PATH)/third_party/npapi/bindings \
604	$(LOCAL_PATH)/v8/include \
605	$(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber \
606	$(LOCAL_PATH)/third_party/libphonenumber/src \
607	$(gyp_shared_intermediate_dir)/protoc_out \
608	$(LOCAL_PATH)/third_party/protobuf \
609	$(LOCAL_PATH)/third_party/protobuf/src \
610	$(LOCAL_PATH)/third_party/libyuv/include \
611	$(LOCAL_PATH)/third_party/libyuv \
612	$(LOCAL_PATH)/third_party/webrtc/modules/interface \
613	$(LOCAL_PATH)/third_party/webrtc/modules/audio_device/include \
614	$(PWD)/frameworks/wilhelm/include \
615	$(PWD)/bionic \
616	$(PWD)/external/stlport/stlport
617
618
619# Flags passed to only C++ (and not C) files.
620LOCAL_CPPFLAGS_Release := \
621	-fno-exceptions \
622	-fno-rtti \
623	-fno-threadsafe-statics \
624	-fvisibility-inlines-hidden \
625	-Wsign-compare \
626	-Wno-uninitialized \
627	-std=gnu++11 \
628	-Wno-narrowing \
629	-Wno-literal-suffix \
630	-Wno-non-virtual-dtor \
631	-Wno-sign-promo
632
633
634LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
635LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
636LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
637LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
638### Rules for final target.
639
640LOCAL_STATIC_LIBRARIES := \
641	cpufeatures
642
643# Enable grouping to fix circular references
644LOCAL_GROUP_STATIC_LIBRARIES := true
645
646LOCAL_SHARED_LIBRARIES := \
647	libstlport \
648	libdl
649
650# Add target alias to "gyp_all_modules" target.
651.PHONY: gyp_all_modules
652gyp_all_modules: content_content_renderer_gyp
653
654# Alias gyp target name.
655.PHONY: content_renderer
656content_renderer: content_content_renderer_gyp
657
658include $(BUILD_STATIC_LIBRARY)
659