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_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 11 12 # Make sure our deps are built first. 13 GYP_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 30 GYP_GENERATED_OUTPUTS := 31 32 # Make sure our deps and generated files are built first. 33 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 34 35 LOCAL_CPP_EXTENSION := .cc 36 LOCAL_GENERATED_SOURCES := 37 38 GYP_COPIED_SOURCE_ORIGIN_DIRS := 39 40 LOCAL_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. 273 MY_CFLAGS_Debug := \ 274 -fstack-protector \ 275 --param=ssp-buffer-size=4 \ 276 -Werror \ 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 -fno-tree-sra \ 286 -fno-caller-saves \ 287 -Wno-psabi \ 288 -fno-partial-inlining \ 289 -fno-early-inlining \ 290 -fno-tree-copy-prop \ 291 -fno-tree-loop-optimize \ 292 -fno-move-loop-invariants \ 293 -ffunction-sections \ 294 -funwind-tables \ 295 -g \ 296 -fstack-protector \ 297 -fno-short-enums \ 298 -finline-limit=64 \ 299 -Wa,--noexecstack \ 300 -U_FORTIFY_SOURCE \ 301 -Wno-extra \ 302 -Wno-ignored-qualifiers \ 303 -Wno-type-limits \ 304 -Wno-unused-but-set-variable \ 305 -Os \ 306 -g \ 307 -gdwarf-4 \ 308 -fdata-sections \ 309 -ffunction-sections \ 310 -fomit-frame-pointer \ 311 -funwind-tables 312 313 MY_DEFS_Debug := \ 314 '-DCONTENT_IMPLEMENTATION' \ 315 '-DV8_DEPRECATION_WARNINGS' \ 316 '-D_FILE_OFFSET_BITS=64' \ 317 '-DNO_TCMALLOC' \ 318 '-DDISABLE_NACL' \ 319 '-DCHROMIUM_BUILD' \ 320 '-DUSE_LIBJPEG_TURBO=1' \ 321 '-DENABLE_WEBRTC=1' \ 322 '-DUSE_PROPRIETARY_CODECS' \ 323 '-DENABLE_BROWSER_CDMS' \ 324 '-DENABLE_CONFIGURATION_POLICY' \ 325 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 326 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 327 '-DENABLE_EGLIMAGE=1' \ 328 '-DCLD_VERSION=1' \ 329 '-DENABLE_PRINTING=1' \ 330 '-DENABLE_MANAGED_USERS=1' \ 331 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 332 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 333 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 334 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 335 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 336 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 337 '-DVIDEO_HOLE=1' \ 338 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 339 '-DMOJO_USE_SYSTEM_IMPL' \ 340 '-DLIBPEERCONNECTION_LIB=1' \ 341 '-DMEDIA_DISABLE_LIBVPX' \ 342 '-DPOSIX_AVOID_MMAP' \ 343 '-DSK_ENABLE_INST_COUNT=0' \ 344 '-DSK_SUPPORT_GPU=1' \ 345 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 346 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 347 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 348 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 349 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 350 '-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \ 351 '-DSK_BUILD_FOR_ANDROID' \ 352 '-DSK_USE_POSIX_THREADS' \ 353 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 354 '-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \ 355 '-DCHROME_PNG_WRITE_SUPPORT' \ 356 '-DPNG_USER_CONFIG' \ 357 '-DCHROME_PNG_READ_PACK_SUPPORT' \ 358 '-DU_USING_ICU_NAMESPACE=0' \ 359 '-DU_ENABLE_DYLOAD=0' \ 360 '-DFEATURE_ENABLE_SSL' \ 361 '-DFEATURE_ENABLE_VOICEMAIL' \ 362 '-DEXPAT_RELATIVE_PATH' \ 363 '-DGTEST_RELATIVE_PATH' \ 364 '-DNO_MAIN_THREAD_WRAPPING' \ 365 '-DNO_SOUND_SYSTEM' \ 366 '-DANDROID' \ 367 '-DPOSIX' \ 368 '-DWEBRTC_POSIX' \ 369 '-DXML_STATIC' \ 370 '-DI18N_PHONENUMBERS_USE_ICU_REGEXP=1' \ 371 '-DPROTOBUF_USE_DLLS' \ 372 '-DGOOGLE_PROTOBUF_NO_RTTI' \ 373 '-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \ 374 '-DWEBRTC_CHROMIUM_BUILD' \ 375 '-DWEBRTC_LINUX' \ 376 '-DWEBRTC_ANDROID' \ 377 '-DWEBRTC_ANDROID_OPENSLES' \ 378 '-DUSE_OPENSSL=1' \ 379 '-DUSE_OPENSSL_CERTS=1' \ 380 '-D__STDC_CONSTANT_MACROS' \ 381 '-D__STDC_FORMAT_MACROS' \ 382 '-D__GNU_SOURCE=1' \ 383 '-DUSE_STLPORT=1' \ 384 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 385 '-DCHROME_BUILD_ID=""' \ 386 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 387 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 388 '-D_DEBUG' 389 390 391 # Include paths placed before CFLAGS/CPPFLAGS 392 LOCAL_C_INCLUDES_Debug := \ 393 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 394 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 395 $(gyp_shared_intermediate_dir) \ 396 $(LOCAL_PATH) \ 397 $(LOCAL_PATH)/skia/config \ 398 $(LOCAL_PATH)/third_party/WebKit/Source \ 399 $(LOCAL_PATH)/third_party/khronos \ 400 $(LOCAL_PATH)/gpu \ 401 $(LOCAL_PATH)/third_party/WebKit \ 402 $(LOCAL_PATH)/third_party/skia/src/core \ 403 $(LOCAL_PATH)/third_party/skia/include/core \ 404 $(LOCAL_PATH)/third_party/skia/include/effects \ 405 $(LOCAL_PATH)/third_party/skia/include/pdf \ 406 $(LOCAL_PATH)/third_party/skia/include/gpu \ 407 $(LOCAL_PATH)/third_party/skia/include/lazy \ 408 $(LOCAL_PATH)/third_party/skia/include/pathops \ 409 $(LOCAL_PATH)/third_party/skia/include/pipe \ 410 $(LOCAL_PATH)/third_party/skia/include/ports \ 411 $(LOCAL_PATH)/third_party/skia/include/utils \ 412 $(LOCAL_PATH)/skia/ext \ 413 $(LOCAL_PATH)/third_party/WebKit \ 414 $(LOCAL_PATH)/third_party/libpng \ 415 $(LOCAL_PATH)/third_party/zlib \ 416 $(LOCAL_PATH)/third_party/libwebp \ 417 $(LOCAL_PATH)/third_party/ots/include \ 418 $(LOCAL_PATH)/third_party/qcms/src \ 419 $(LOCAL_PATH)/third_party/iccjpeg \ 420 $(LOCAL_PATH)/third_party/libjpeg_turbo \ 421 $(PWD)/external/icu/icu4c/source/common \ 422 $(PWD)/external/icu/icu4c/source/i18n \ 423 $(LOCAL_PATH)/third_party/webrtc/overrides \ 424 $(LOCAL_PATH)/third_party/libjingle/overrides \ 425 $(LOCAL_PATH)/third_party/libjingle/source \ 426 $(LOCAL_PATH)/testing/gtest/include \ 427 $(LOCAL_PATH)/third_party \ 428 $(LOCAL_PATH)/third_party/expat/files/lib \ 429 $(LOCAL_PATH)/third_party/npapi \ 430 $(LOCAL_PATH)/third_party/npapi/bindings \ 431 $(LOCAL_PATH)/v8/include \ 432 $(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber \ 433 $(LOCAL_PATH)/third_party/libphonenumber/src \ 434 $(gyp_shared_intermediate_dir)/protoc_out \ 435 $(LOCAL_PATH)/third_party/protobuf \ 436 $(LOCAL_PATH)/third_party/protobuf/src \ 437 $(LOCAL_PATH)/third_party/libyuv/include \ 438 $(LOCAL_PATH)/third_party/libyuv \ 439 $(LOCAL_PATH)/third_party/webrtc/modules/interface \ 440 $(LOCAL_PATH)/third_party/webrtc/modules/audio_device/include \ 441 $(PWD)/frameworks/wilhelm/include \ 442 $(PWD)/bionic \ 443 $(PWD)/external/stlport/stlport 444 445 446 # Flags passed to only C++ (and not C) files. 447 LOCAL_CPPFLAGS_Debug := \ 448 -fno-exceptions \ 449 -fno-rtti \ 450 -fno-threadsafe-statics \ 451 -fvisibility-inlines-hidden \ 452 -Wsign-compare \ 453 -Wno-abi \ 454 -std=gnu++11 \ 455 -Wno-narrowing \ 456 -Wno-literal-suffix \ 457 -Wno-non-virtual-dtor \ 458 -Wno-sign-promo 459 460 461 # Flags passed to both C and C++ files. 462 MY_CFLAGS_Release := \ 463 -fstack-protector \ 464 --param=ssp-buffer-size=4 \ 465 -Werror \ 466 -fno-strict-aliasing \ 467 -Wall \ 468 -Wno-unused-parameter \ 469 -Wno-missing-field-initializers \ 470 -fvisibility=hidden \ 471 -pipe \ 472 -fPIC \ 473 -Wno-unused-local-typedefs \ 474 -fno-tree-sra \ 475 -fno-caller-saves \ 476 -Wno-psabi \ 477 -fno-partial-inlining \ 478 -fno-early-inlining \ 479 -fno-tree-copy-prop \ 480 -fno-tree-loop-optimize \ 481 -fno-move-loop-invariants \ 482 -ffunction-sections \ 483 -funwind-tables \ 484 -g \ 485 -fstack-protector \ 486 -fno-short-enums \ 487 -finline-limit=64 \ 488 -Wa,--noexecstack \ 489 -U_FORTIFY_SOURCE \ 490 -Wno-extra \ 491 -Wno-ignored-qualifiers \ 492 -Wno-type-limits \ 493 -Wno-unused-but-set-variable \ 494 -Os \ 495 -fno-ident \ 496 -fdata-sections \ 497 -ffunction-sections \ 498 -fomit-frame-pointer \ 499 -funwind-tables 500 501 MY_DEFS_Release := \ 502 '-DCONTENT_IMPLEMENTATION' \ 503 '-DV8_DEPRECATION_WARNINGS' \ 504 '-D_FILE_OFFSET_BITS=64' \ 505 '-DNO_TCMALLOC' \ 506 '-DDISABLE_NACL' \ 507 '-DCHROMIUM_BUILD' \ 508 '-DUSE_LIBJPEG_TURBO=1' \ 509 '-DENABLE_WEBRTC=1' \ 510 '-DUSE_PROPRIETARY_CODECS' \ 511 '-DENABLE_BROWSER_CDMS' \ 512 '-DENABLE_CONFIGURATION_POLICY' \ 513 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 514 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 515 '-DENABLE_EGLIMAGE=1' \ 516 '-DCLD_VERSION=1' \ 517 '-DENABLE_PRINTING=1' \ 518 '-DENABLE_MANAGED_USERS=1' \ 519 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 520 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 521 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 522 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 523 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 524 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 525 '-DVIDEO_HOLE=1' \ 526 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 527 '-DMOJO_USE_SYSTEM_IMPL' \ 528 '-DLIBPEERCONNECTION_LIB=1' \ 529 '-DMEDIA_DISABLE_LIBVPX' \ 530 '-DPOSIX_AVOID_MMAP' \ 531 '-DSK_ENABLE_INST_COUNT=0' \ 532 '-DSK_SUPPORT_GPU=1' \ 533 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 534 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 535 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 536 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 537 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 538 '-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \ 539 '-DSK_BUILD_FOR_ANDROID' \ 540 '-DSK_USE_POSIX_THREADS' \ 541 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 542 '-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \ 543 '-DCHROME_PNG_WRITE_SUPPORT' \ 544 '-DPNG_USER_CONFIG' \ 545 '-DCHROME_PNG_READ_PACK_SUPPORT' \ 546 '-DU_USING_ICU_NAMESPACE=0' \ 547 '-DU_ENABLE_DYLOAD=0' \ 548 '-DFEATURE_ENABLE_SSL' \ 549 '-DFEATURE_ENABLE_VOICEMAIL' \ 550 '-DEXPAT_RELATIVE_PATH' \ 551 '-DGTEST_RELATIVE_PATH' \ 552 '-DNO_MAIN_THREAD_WRAPPING' \ 553 '-DNO_SOUND_SYSTEM' \ 554 '-DANDROID' \ 555 '-DPOSIX' \ 556 '-DWEBRTC_POSIX' \ 557 '-DXML_STATIC' \ 558 '-DI18N_PHONENUMBERS_USE_ICU_REGEXP=1' \ 559 '-DPROTOBUF_USE_DLLS' \ 560 '-DGOOGLE_PROTOBUF_NO_RTTI' \ 561 '-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER' \ 562 '-DWEBRTC_CHROMIUM_BUILD' \ 563 '-DWEBRTC_LINUX' \ 564 '-DWEBRTC_ANDROID' \ 565 '-DWEBRTC_ANDROID_OPENSLES' \ 566 '-DUSE_OPENSSL=1' \ 567 '-DUSE_OPENSSL_CERTS=1' \ 568 '-D__STDC_CONSTANT_MACROS' \ 569 '-D__STDC_FORMAT_MACROS' \ 570 '-D__GNU_SOURCE=1' \ 571 '-DUSE_STLPORT=1' \ 572 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 573 '-DCHROME_BUILD_ID=""' \ 574 '-DNDEBUG' \ 575 '-DNVALGRIND' \ 576 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 577 '-D_FORTIFY_SOURCE=2' 578 579 580 # Include paths placed before CFLAGS/CPPFLAGS 581 LOCAL_C_INCLUDES_Release := \ 582 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 583 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 584 $(gyp_shared_intermediate_dir) \ 585 $(LOCAL_PATH) \ 586 $(LOCAL_PATH)/skia/config \ 587 $(LOCAL_PATH)/third_party/WebKit/Source \ 588 $(LOCAL_PATH)/third_party/khronos \ 589 $(LOCAL_PATH)/gpu \ 590 $(LOCAL_PATH)/third_party/WebKit \ 591 $(LOCAL_PATH)/third_party/skia/src/core \ 592 $(LOCAL_PATH)/third_party/skia/include/core \ 593 $(LOCAL_PATH)/third_party/skia/include/effects \ 594 $(LOCAL_PATH)/third_party/skia/include/pdf \ 595 $(LOCAL_PATH)/third_party/skia/include/gpu \ 596 $(LOCAL_PATH)/third_party/skia/include/lazy \ 597 $(LOCAL_PATH)/third_party/skia/include/pathops \ 598 $(LOCAL_PATH)/third_party/skia/include/pipe \ 599 $(LOCAL_PATH)/third_party/skia/include/ports \ 600 $(LOCAL_PATH)/third_party/skia/include/utils \ 601 $(LOCAL_PATH)/skia/ext \ 602 $(LOCAL_PATH)/third_party/WebKit \ 603 $(LOCAL_PATH)/third_party/libpng \ 604 $(LOCAL_PATH)/third_party/zlib \ 605 $(LOCAL_PATH)/third_party/libwebp \ 606 $(LOCAL_PATH)/third_party/ots/include \ 607 $(LOCAL_PATH)/third_party/qcms/src \ 608 $(LOCAL_PATH)/third_party/iccjpeg \ 609 $(LOCAL_PATH)/third_party/libjpeg_turbo \ 610 $(PWD)/external/icu/icu4c/source/common \ 611 $(PWD)/external/icu/icu4c/source/i18n \ 612 $(LOCAL_PATH)/third_party/webrtc/overrides \ 613 $(LOCAL_PATH)/third_party/libjingle/overrides \ 614 $(LOCAL_PATH)/third_party/libjingle/source \ 615 $(LOCAL_PATH)/testing/gtest/include \ 616 $(LOCAL_PATH)/third_party \ 617 $(LOCAL_PATH)/third_party/expat/files/lib \ 618 $(LOCAL_PATH)/third_party/npapi \ 619 $(LOCAL_PATH)/third_party/npapi/bindings \ 620 $(LOCAL_PATH)/v8/include \ 621 $(gyp_shared_intermediate_dir)/protoc_out/third_party/libphonenumber \ 622 $(LOCAL_PATH)/third_party/libphonenumber/src \ 623 $(gyp_shared_intermediate_dir)/protoc_out \ 624 $(LOCAL_PATH)/third_party/protobuf \ 625 $(LOCAL_PATH)/third_party/protobuf/src \ 626 $(LOCAL_PATH)/third_party/libyuv/include \ 627 $(LOCAL_PATH)/third_party/libyuv \ 628 $(LOCAL_PATH)/third_party/webrtc/modules/interface \ 629 $(LOCAL_PATH)/third_party/webrtc/modules/audio_device/include \ 630 $(PWD)/frameworks/wilhelm/include \ 631 $(PWD)/bionic \ 632 $(PWD)/external/stlport/stlport 633 634 635 # Flags passed to only C++ (and not C) files. 636 LOCAL_CPPFLAGS_Release := \ 637 -fno-exceptions \ 638 -fno-rtti \ 639 -fno-threadsafe-statics \ 640 -fvisibility-inlines-hidden \ 641 -Wsign-compare \ 642 -Wno-abi \ 643 -std=gnu++11 \ 644 -Wno-narrowing \ 645 -Wno-literal-suffix \ 646 -Wno-non-virtual-dtor \ 647 -Wno-sign-promo 648 649 650 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 651 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 652 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 653 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 654 ### Rules for final target. 655 656 LOCAL_STATIC_LIBRARIES := \ 657 cpufeatures 658 659 # Enable grouping to fix circular references 660 LOCAL_GROUP_STATIC_LIBRARIES := true 661 662 LOCAL_SHARED_LIBRARIES := \ 663 libstlport \ 664 libdl 665 666 # Add target alias to "gyp_all_modules" target. 667 .PHONY: gyp_all_modules 668 gyp_all_modules: content_content_renderer_gyp 669 670 # Alias gyp target name. 671 .PHONY: content_renderer 672 content_renderer: content_content_renderer_gyp 673 674 include $(BUILD_STATIC_LIBRARY) 675