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