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