1 # This file is generated by gyp; do not edit. 2 3 include $(CLEAR_VARS) 4 5 LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6 LOCAL_MODULE := content_content_renderer_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TAGS := optional 9 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 10 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 11 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 12 13 # Make sure our deps are built first. 14 GYP_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 32 GYP_GENERATED_OUTPUTS := 33 34 # Make sure our deps and generated files are built first. 35 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 36 37 LOCAL_CPP_EXTENSION := .cc 38 LOCAL_GENERATED_SOURCES := 39 40 GYP_COPIED_SOURCE_ORIGIN_DIRS := 41 42 LOCAL_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_source_handler.cc \ 273 content/renderer/media/video_track_adapter.cc \ 274 content/renderer/media/webaudio_capturer_source.cc \ 275 content/renderer/media/webrtc/webrtc_video_track_adapter.cc \ 276 content/renderer/media/webrtc/media_stream_remote_video_source.cc \ 277 content/renderer/media/webrtc/media_stream_track_metrics.cc \ 278 content/renderer/media/webrtc/peer_connection_dependency_factory.cc \ 279 content/renderer/media/webrtc/webrtc_audio_sink_adapter.cc \ 280 content/renderer/media/webrtc/webrtc_local_audio_track_adapter.cc \ 281 content/renderer/media/webrtc/webrtc_media_stream_adapter.cc \ 282 content/renderer/media/webrtc/webrtc_video_capturer_adapter.cc \ 283 content/renderer/media/webrtc_audio_capturer.cc \ 284 content/renderer/media/webrtc_audio_device_impl.cc \ 285 content/renderer/media/webrtc_audio_device_not_impl.cc \ 286 content/renderer/media/webrtc_audio_renderer.cc \ 287 content/renderer/media/webrtc_identity_service.cc \ 288 content/renderer/media/webrtc_local_audio_renderer.cc \ 289 content/renderer/media/webrtc_local_audio_source_provider.cc \ 290 content/renderer/media/webrtc_local_audio_track.cc \ 291 content/renderer/media/webrtc_logging.cc \ 292 content/renderer/media/webrtc_uma_histograms.cc \ 293 content/renderer/p2p/host_address_request.cc \ 294 content/renderer/p2p/ipc_network_manager.cc \ 295 content/renderer/p2p/ipc_socket_factory.cc \ 296 content/renderer/p2p/port_allocator.cc \ 297 content/renderer/p2p/socket_client_impl.cc \ 298 content/renderer/p2p/socket_dispatcher.cc \ 299 content/renderer/media/crypto/proxy_media_keys.cc \ 300 content/renderer/media/crypto/renderer_cdm_manager.cc 301 302 303 # Flags passed to both C and C++ files. 304 MY_CFLAGS_Debug := \ 305 -fstack-protector \ 306 --param=ssp-buffer-size=4 \ 307 -Werror \ 308 -fno-exceptions \ 309 -fno-strict-aliasing \ 310 -Wall \ 311 -Wno-unused-parameter \ 312 -Wno-missing-field-initializers \ 313 -fvisibility=hidden \ 314 -pipe \ 315 -fPIC \ 316 -Wno-unused-local-typedefs \ 317 -fno-tree-sra \ 318 -fno-partial-inlining \ 319 -fno-early-inlining \ 320 -fno-tree-copy-prop \ 321 -fno-tree-loop-optimize \ 322 -fno-move-loop-invariants \ 323 -fno-caller-saves \ 324 -Wno-psabi \ 325 -ffunction-sections \ 326 -funwind-tables \ 327 -g \ 328 -fstack-protector \ 329 -fno-short-enums \ 330 -finline-limit=64 \ 331 -Wa,--noexecstack \ 332 -U_FORTIFY_SOURCE \ 333 -Wno-extra \ 334 -Wno-ignored-qualifiers \ 335 -Wno-type-limits \ 336 -Wno-unused-but-set-variable \ 337 -Os \ 338 -g \ 339 -fdata-sections \ 340 -ffunction-sections \ 341 -fomit-frame-pointer \ 342 -funwind-tables 343 344 MY_DEFS_Debug := \ 345 '-DCONTENT_IMPLEMENTATION' \ 346 '-DV8_DEPRECATION_WARNINGS' \ 347 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 348 '-D_FILE_OFFSET_BITS=64' \ 349 '-DNO_TCMALLOC' \ 350 '-DDISABLE_NACL' \ 351 '-DCHROMIUM_BUILD' \ 352 '-DUSE_LIBJPEG_TURBO=1' \ 353 '-DENABLE_WEBRTC=1' \ 354 '-DUSE_PROPRIETARY_CODECS' \ 355 '-DENABLE_BROWSER_CDMS' \ 356 '-DENABLE_CONFIGURATION_POLICY' \ 357 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 358 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 359 '-DENABLE_EGLIMAGE=1' \ 360 '-DCLD_VERSION=1' \ 361 '-DENABLE_PRINTING=1' \ 362 '-DENABLE_MANAGED_USERS=1' \ 363 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 364 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 365 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 366 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 367 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 368 '-DVIDEO_HOLE=1' \ 369 '-DMOJO_USE_SYSTEM_IMPL' \ 370 '-DLIBPEERCONNECTION_LIB=1' \ 371 '-DMEDIA_DISABLE_LIBVPX' \ 372 '-DPOSIX_AVOID_MMAP' \ 373 '-DSK_ENABLE_INST_COUNT=0' \ 374 '-DSK_SUPPORT_GPU=1' \ 375 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 376 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 377 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 378 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 379 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 380 '-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \ 381 '-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \ 382 '-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \ 383 '-DSK_SUPPORT_LEGACY_N32_NAME' \ 384 '-DSK_SUPPORT_LEGACY_SETCONFIG' \ 385 '-DSK_IGNORE_ETC1_SUPPORT' \ 386 '-DSK_IGNORE_GPU_DITHER' \ 387 '-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \ 388 '-DSK_BUILD_FOR_ANDROID' \ 389 '-DSK_USE_POSIX_THREADS' \ 390 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 391 '-DCHROME_PNG_WRITE_SUPPORT' \ 392 '-DPNG_USER_CONFIG' \ 393 '-DCHROME_PNG_READ_PACK_SUPPORT' \ 394 '-DUSE_SYSTEM_LIBJPEG' \ 395 '-DU_USING_ICU_NAMESPACE=0' \ 396 '-DFEATURE_ENABLE_SSL' \ 397 '-DFEATURE_ENABLE_VOICEMAIL' \ 398 '-DEXPAT_RELATIVE_PATH' \ 399 '-DGTEST_RELATIVE_PATH' \ 400 '-DNO_MAIN_THREAD_WRAPPING' \ 401 '-DNO_SOUND_SYSTEM' \ 402 '-DANDROID' \ 403 '-DPOSIX' \ 404 '-DI18N_PHONENUMBERS_USE_ICU_REGEXP=1' \ 405 '-DPROTOBUF_USE_DLLS' \ 406 '-DGOOGLE_PROTOBUF_NO_RTTI' \ 407 '-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \ 408 '-DWEBRTC_CHROMIUM_BUILD' \ 409 '-DWEBRTC_LINUX' \ 410 '-DWEBRTC_ANDROID' \ 411 '-DWEBRTC_ANDROID_OPENSLES' \ 412 '-DWEBRTC_POSIX' \ 413 '-DUSE_OPENSSL=1' \ 414 '-DUSE_OPENSSL_CERTS=1' \ 415 '-D__STDC_CONSTANT_MACROS' \ 416 '-D__STDC_FORMAT_MACROS' \ 417 '-D__GNU_SOURCE=1' \ 418 '-DUSE_STLPORT=1' \ 419 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 420 '-DCHROME_BUILD_ID=""' \ 421 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 422 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 423 '-D_DEBUG' 424 425 426 # Include paths placed before CFLAGS/CPPFLAGS 427 LOCAL_C_INCLUDES_Debug := \ 428 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 429 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 430 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 431 $(gyp_shared_intermediate_dir) \ 432 $(LOCAL_PATH) \ 433 $(LOCAL_PATH)/skia/config \ 434 $(LOCAL_PATH)/third_party/WebKit/Source \ 435 $(LOCAL_PATH)/third_party/khronos \ 436 $(LOCAL_PATH)/gpu \ 437 $(LOCAL_PATH)/third_party/WebKit \ 438 $(gyp_shared_intermediate_dir)/content \ 439 $(LOCAL_PATH)/third_party/skia/src/core \ 440 $(LOCAL_PATH)/third_party/skia/include/core \ 441 $(LOCAL_PATH)/third_party/skia/include/effects \ 442 $(LOCAL_PATH)/third_party/skia/include/pdf \ 443 $(LOCAL_PATH)/third_party/skia/include/gpu \ 444 $(LOCAL_PATH)/third_party/skia/include/lazy \ 445 $(LOCAL_PATH)/third_party/skia/include/pathops \ 446 $(LOCAL_PATH)/third_party/skia/include/pipe \ 447 $(LOCAL_PATH)/third_party/skia/include/ports \ 448 $(LOCAL_PATH)/third_party/skia/include/utils \ 449 $(LOCAL_PATH)/skia/ext \ 450 $(LOCAL_PATH)/third_party/WebKit \ 451 $(LOCAL_PATH)/third_party/libpng \ 452 $(LOCAL_PATH)/third_party/zlib \ 453 $(LOCAL_PATH)/third_party/libwebp \ 454 $(LOCAL_PATH)/third_party/ots/include \ 455 $(LOCAL_PATH)/third_party/qcms/src \ 456 $(LOCAL_PATH)/third_party/iccjpeg \ 457 $(PWD)/external/jpeg \ 458 $(PWD)/external/icu/icu4c/source/common \ 459 $(PWD)/external/icu/icu4c/source/i18n \ 460 $(LOCAL_PATH)/third_party/libjingle/overrides \ 461 $(LOCAL_PATH)/third_party/libjingle/source \ 462 $(LOCAL_PATH)/third_party/webrtc/overrides \ 463 $(LOCAL_PATH)/testing/gtest/include \ 464 $(LOCAL_PATH)/third_party \ 465 $(LOCAL_PATH)/third_party/webrtc \ 466 $(PWD)/external/expat/lib \ 467 $(LOCAL_PATH)/third_party/npapi \ 468 $(LOCAL_PATH)/third_party/npapi/bindings \ 469 $(LOCAL_PATH)/v8/include \ 470 $(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber \ 471 $(LOCAL_PATH)/third_party/libphonenumber/src \ 472 $(gyp_shared_intermediate_dir)/protoc_out \ 473 $(LOCAL_PATH)/third_party/protobuf \ 474 $(LOCAL_PATH)/third_party/protobuf/src \ 475 $(LOCAL_PATH)/third_party/libyuv/include \ 476 $(LOCAL_PATH)/third_party/libyuv \ 477 $(LOCAL_PATH)/third_party/webrtc/modules/interface \ 478 $(LOCAL_PATH)/third_party/webrtc/modules/audio_device/include \ 479 $(PWD)/frameworks/wilhelm/include \ 480 $(PWD)/bionic \ 481 $(PWD)/external/stlport/stlport 482 483 484 # Flags passed to only C++ (and not C) files. 485 LOCAL_CPPFLAGS_Debug := \ 486 -fno-rtti \ 487 -fno-threadsafe-statics \ 488 -fvisibility-inlines-hidden \ 489 -Wsign-compare \ 490 -Wno-abi \ 491 -Wno-non-virtual-dtor \ 492 -Wno-sign-promo 493 494 495 LOCAL_FDO_SUPPORT_Debug := false 496 497 # Flags passed to both C and C++ files. 498 MY_CFLAGS_Release := \ 499 -fstack-protector \ 500 --param=ssp-buffer-size=4 \ 501 -Werror \ 502 -fno-exceptions \ 503 -fno-strict-aliasing \ 504 -Wall \ 505 -Wno-unused-parameter \ 506 -Wno-missing-field-initializers \ 507 -fvisibility=hidden \ 508 -pipe \ 509 -fPIC \ 510 -Wno-unused-local-typedefs \ 511 -fno-tree-sra \ 512 -fno-partial-inlining \ 513 -fno-early-inlining \ 514 -fno-tree-copy-prop \ 515 -fno-tree-loop-optimize \ 516 -fno-move-loop-invariants \ 517 -fno-caller-saves \ 518 -Wno-psabi \ 519 -ffunction-sections \ 520 -funwind-tables \ 521 -g \ 522 -fstack-protector \ 523 -fno-short-enums \ 524 -finline-limit=64 \ 525 -Wa,--noexecstack \ 526 -U_FORTIFY_SOURCE \ 527 -Wno-extra \ 528 -Wno-ignored-qualifiers \ 529 -Wno-type-limits \ 530 -Wno-unused-but-set-variable \ 531 -Os \ 532 -fno-ident \ 533 -fdata-sections \ 534 -ffunction-sections \ 535 -fomit-frame-pointer \ 536 -funwind-tables 537 538 MY_DEFS_Release := \ 539 '-DCONTENT_IMPLEMENTATION' \ 540 '-DV8_DEPRECATION_WARNINGS' \ 541 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 542 '-D_FILE_OFFSET_BITS=64' \ 543 '-DNO_TCMALLOC' \ 544 '-DDISABLE_NACL' \ 545 '-DCHROMIUM_BUILD' \ 546 '-DUSE_LIBJPEG_TURBO=1' \ 547 '-DENABLE_WEBRTC=1' \ 548 '-DUSE_PROPRIETARY_CODECS' \ 549 '-DENABLE_BROWSER_CDMS' \ 550 '-DENABLE_CONFIGURATION_POLICY' \ 551 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 552 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 553 '-DENABLE_EGLIMAGE=1' \ 554 '-DCLD_VERSION=1' \ 555 '-DENABLE_PRINTING=1' \ 556 '-DENABLE_MANAGED_USERS=1' \ 557 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 558 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 559 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 560 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 561 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 562 '-DVIDEO_HOLE=1' \ 563 '-DMOJO_USE_SYSTEM_IMPL' \ 564 '-DLIBPEERCONNECTION_LIB=1' \ 565 '-DMEDIA_DISABLE_LIBVPX' \ 566 '-DPOSIX_AVOID_MMAP' \ 567 '-DSK_ENABLE_INST_COUNT=0' \ 568 '-DSK_SUPPORT_GPU=1' \ 569 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 570 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 571 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 572 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 573 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 574 '-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \ 575 '-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \ 576 '-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \ 577 '-DSK_SUPPORT_LEGACY_N32_NAME' \ 578 '-DSK_SUPPORT_LEGACY_SETCONFIG' \ 579 '-DSK_IGNORE_ETC1_SUPPORT' \ 580 '-DSK_IGNORE_GPU_DITHER' \ 581 '-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \ 582 '-DSK_BUILD_FOR_ANDROID' \ 583 '-DSK_USE_POSIX_THREADS' \ 584 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 585 '-DCHROME_PNG_WRITE_SUPPORT' \ 586 '-DPNG_USER_CONFIG' \ 587 '-DCHROME_PNG_READ_PACK_SUPPORT' \ 588 '-DUSE_SYSTEM_LIBJPEG' \ 589 '-DU_USING_ICU_NAMESPACE=0' \ 590 '-DFEATURE_ENABLE_SSL' \ 591 '-DFEATURE_ENABLE_VOICEMAIL' \ 592 '-DEXPAT_RELATIVE_PATH' \ 593 '-DGTEST_RELATIVE_PATH' \ 594 '-DNO_MAIN_THREAD_WRAPPING' \ 595 '-DNO_SOUND_SYSTEM' \ 596 '-DANDROID' \ 597 '-DPOSIX' \ 598 '-DI18N_PHONENUMBERS_USE_ICU_REGEXP=1' \ 599 '-DPROTOBUF_USE_DLLS' \ 600 '-DGOOGLE_PROTOBUF_NO_RTTI' \ 601 '-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \ 602 '-DWEBRTC_CHROMIUM_BUILD' \ 603 '-DWEBRTC_LINUX' \ 604 '-DWEBRTC_ANDROID' \ 605 '-DWEBRTC_ANDROID_OPENSLES' \ 606 '-DWEBRTC_POSIX' \ 607 '-DUSE_OPENSSL=1' \ 608 '-DUSE_OPENSSL_CERTS=1' \ 609 '-D__STDC_CONSTANT_MACROS' \ 610 '-D__STDC_FORMAT_MACROS' \ 611 '-D__GNU_SOURCE=1' \ 612 '-DUSE_STLPORT=1' \ 613 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 614 '-DCHROME_BUILD_ID=""' \ 615 '-DNDEBUG' \ 616 '-DNVALGRIND' \ 617 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 618 '-D_FORTIFY_SOURCE=2' 619 620 621 # Include paths placed before CFLAGS/CPPFLAGS 622 LOCAL_C_INCLUDES_Release := \ 623 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 624 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 625 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 626 $(gyp_shared_intermediate_dir) \ 627 $(LOCAL_PATH) \ 628 $(LOCAL_PATH)/skia/config \ 629 $(LOCAL_PATH)/third_party/WebKit/Source \ 630 $(LOCAL_PATH)/third_party/khronos \ 631 $(LOCAL_PATH)/gpu \ 632 $(LOCAL_PATH)/third_party/WebKit \ 633 $(gyp_shared_intermediate_dir)/content \ 634 $(LOCAL_PATH)/third_party/skia/src/core \ 635 $(LOCAL_PATH)/third_party/skia/include/core \ 636 $(LOCAL_PATH)/third_party/skia/include/effects \ 637 $(LOCAL_PATH)/third_party/skia/include/pdf \ 638 $(LOCAL_PATH)/third_party/skia/include/gpu \ 639 $(LOCAL_PATH)/third_party/skia/include/lazy \ 640 $(LOCAL_PATH)/third_party/skia/include/pathops \ 641 $(LOCAL_PATH)/third_party/skia/include/pipe \ 642 $(LOCAL_PATH)/third_party/skia/include/ports \ 643 $(LOCAL_PATH)/third_party/skia/include/utils \ 644 $(LOCAL_PATH)/skia/ext \ 645 $(LOCAL_PATH)/third_party/WebKit \ 646 $(LOCAL_PATH)/third_party/libpng \ 647 $(LOCAL_PATH)/third_party/zlib \ 648 $(LOCAL_PATH)/third_party/libwebp \ 649 $(LOCAL_PATH)/third_party/ots/include \ 650 $(LOCAL_PATH)/third_party/qcms/src \ 651 $(LOCAL_PATH)/third_party/iccjpeg \ 652 $(PWD)/external/jpeg \ 653 $(PWD)/external/icu/icu4c/source/common \ 654 $(PWD)/external/icu/icu4c/source/i18n \ 655 $(LOCAL_PATH)/third_party/libjingle/overrides \ 656 $(LOCAL_PATH)/third_party/libjingle/source \ 657 $(LOCAL_PATH)/third_party/webrtc/overrides \ 658 $(LOCAL_PATH)/testing/gtest/include \ 659 $(LOCAL_PATH)/third_party \ 660 $(LOCAL_PATH)/third_party/webrtc \ 661 $(PWD)/external/expat/lib \ 662 $(LOCAL_PATH)/third_party/npapi \ 663 $(LOCAL_PATH)/third_party/npapi/bindings \ 664 $(LOCAL_PATH)/v8/include \ 665 $(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber \ 666 $(LOCAL_PATH)/third_party/libphonenumber/src \ 667 $(gyp_shared_intermediate_dir)/protoc_out \ 668 $(LOCAL_PATH)/third_party/protobuf \ 669 $(LOCAL_PATH)/third_party/protobuf/src \ 670 $(LOCAL_PATH)/third_party/libyuv/include \ 671 $(LOCAL_PATH)/third_party/libyuv \ 672 $(LOCAL_PATH)/third_party/webrtc/modules/interface \ 673 $(LOCAL_PATH)/third_party/webrtc/modules/audio_device/include \ 674 $(PWD)/frameworks/wilhelm/include \ 675 $(PWD)/bionic \ 676 $(PWD)/external/stlport/stlport 677 678 679 # Flags passed to only C++ (and not C) files. 680 LOCAL_CPPFLAGS_Release := \ 681 -fno-rtti \ 682 -fno-threadsafe-statics \ 683 -fvisibility-inlines-hidden \ 684 -Wsign-compare \ 685 -Wno-abi \ 686 -Wno-non-virtual-dtor \ 687 -Wno-sign-promo 688 689 690 LOCAL_FDO_SUPPORT_Release := false 691 692 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 693 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 694 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 695 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 696 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 697 ### Rules for final target. 698 699 LOCAL_LDFLAGS_Debug := \ 700 -Wl,-z,now \ 701 -Wl,-z,relro \ 702 -Wl,--fatal-warnings \ 703 -Wl,-z,noexecstack \ 704 -fPIC \ 705 -Wl,-z,relro \ 706 -Wl,-z,now \ 707 -fuse-ld=gold \ 708 -nostdlib \ 709 -Wl,--no-undefined \ 710 -Wl,--exclude-libs=ALL \ 711 -Wl,--icf=safe \ 712 -Wl,--warn-shared-textrel \ 713 -Wl,-O1 \ 714 -Wl,--as-needed 715 716 717 LOCAL_LDFLAGS_Release := \ 718 -Wl,-z,now \ 719 -Wl,-z,relro \ 720 -Wl,--fatal-warnings \ 721 -Wl,-z,noexecstack \ 722 -fPIC \ 723 -Wl,-z,relro \ 724 -Wl,-z,now \ 725 -fuse-ld=gold \ 726 -nostdlib \ 727 -Wl,--no-undefined \ 728 -Wl,--exclude-libs=ALL \ 729 -Wl,--icf=safe \ 730 -Wl,-O1 \ 731 -Wl,--as-needed \ 732 -Wl,--gc-sections \ 733 -Wl,--warn-shared-textrel 734 735 736 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 737 738 LOCAL_STATIC_LIBRARIES := \ 739 cpufeatures \ 740 content_content_common_mojo_bindings_gyp \ 741 mojo_mojo_service_provider_bindings_gyp \ 742 skia_skia_library_gyp \ 743 ui_accessibility_accessibility_gyp \ 744 ui_accessibility_ax_gen_gyp \ 745 webkit_child_webkit_child_gyp \ 746 third_party_libphonenumber_libphonenumber_without_metadata_gyp 747 748 # Enable grouping to fix circular references 749 LOCAL_GROUP_STATIC_LIBRARIES := true 750 751 LOCAL_SHARED_LIBRARIES := \ 752 libstlport \ 753 libdl 754 755 # Add target alias to "gyp_all_modules" target. 756 .PHONY: gyp_all_modules 757 gyp_all_modules: content_content_renderer_gyp 758 759 # Alias gyp target name. 760 .PHONY: content_renderer 761 content_renderer: content_content_renderer_gyp 762 763 include $(BUILD_STATIC_LIBRARY) 764