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