Home | History | Annotate | Download | only in content
      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/sandbox_linux/android/sandbox_bpf_base_policy_android.cc \
    172 	content/common/sandbox_linux/sandbox_bpf_base_policy_linux.cc \
    173 	content/common/savable_url_schemes.cc \
    174 	content/common/service_worker/service_worker_status_code.cc \
    175 	content/common/service_worker/service_worker_types.cc \
    176 	content/common/set_process_title.cc \
    177 	content/common/ssl_status_serialization.cc \
    178 	content/common/swapped_out_messages.cc \
    179 	content/common/url_schemes.cc \
    180 	content/common/user_agent.cc \
    181 	content/common/webplugin_geometry.cc \
    182 	content/common/websocket.cc \
    183 	content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc \
    184 	content/common/gpu/media/android_video_decode_accelerator.cc \
    185 	content/common/gpu/media/android_video_encode_accelerator.cc
    186 
    187 
    188 # Flags passed to both C and C++ files.
    189 MY_CFLAGS_Debug := \
    190 	-fstack-protector \
    191 	--param=ssp-buffer-size=4 \
    192 	-Werror \
    193 	-fno-exceptions \
    194 	-fno-strict-aliasing \
    195 	-Wall \
    196 	-Wno-unused-parameter \
    197 	-Wno-missing-field-initializers \
    198 	-fvisibility=hidden \
    199 	-pipe \
    200 	-fPIC \
    201 	-Wno-unused-local-typedefs \
    202 	-fno-tree-sra \
    203 	-fno-partial-inlining \
    204 	-fno-early-inlining \
    205 	-fno-tree-copy-prop \
    206 	-fno-tree-loop-optimize \
    207 	-fno-move-loop-invariants \
    208 	-fno-caller-saves \
    209 	-Wno-psabi \
    210 	-ffunction-sections \
    211 	-funwind-tables \
    212 	-g \
    213 	-fstack-protector \
    214 	-fno-short-enums \
    215 	-finline-limit=64 \
    216 	-Wa,--noexecstack \
    217 	-U_FORTIFY_SOURCE \
    218 	-Wno-extra \
    219 	-Wno-ignored-qualifiers \
    220 	-Wno-type-limits \
    221 	-Wno-unused-but-set-variable \
    222 	-Os \
    223 	-g \
    224 	-fdata-sections \
    225 	-ffunction-sections \
    226 	-fomit-frame-pointer \
    227 	-funwind-tables
    228 
    229 MY_DEFS_Debug := \
    230 	'-DCONTENT_IMPLEMENTATION' \
    231 	'-DV8_DEPRECATION_WARNINGS' \
    232 	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
    233 	'-D_FILE_OFFSET_BITS=64' \
    234 	'-DNO_TCMALLOC' \
    235 	'-DDISABLE_NACL' \
    236 	'-DCHROMIUM_BUILD' \
    237 	'-DUSE_LIBJPEG_TURBO=1' \
    238 	'-DENABLE_WEBRTC=1' \
    239 	'-DUSE_PROPRIETARY_CODECS' \
    240 	'-DENABLE_BROWSER_CDMS' \
    241 	'-DENABLE_CONFIGURATION_POLICY' \
    242 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    243 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    244 	'-DENABLE_EGLIMAGE=1' \
    245 	'-DCLD_VERSION=1' \
    246 	'-DENABLE_PRINTING=1' \
    247 	'-DENABLE_MANAGED_USERS=1' \
    248 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    249 	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
    250 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    251 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    252 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    253 	'-DVIDEO_HOLE=1' \
    254 	'-DUSE_SECCOMP_BPF' \
    255 	'-DMOJO_USE_SYSTEM_IMPL' \
    256 	'-DPOSIX_AVOID_MMAP' \
    257 	'-DSK_ENABLE_INST_COUNT=0' \
    258 	'-DSK_SUPPORT_GPU=1' \
    259 	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
    260 	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
    261 	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
    262 	'-DGR_GL_IGNORE_ES3_MSAA=0' \
    263 	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
    264 	'-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \
    265 	'-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \
    266 	'-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \
    267 	'-DSK_SUPPORT_LEGACY_N32_NAME' \
    268 	'-DSK_SUPPORT_LEGACY_SETCONFIG' \
    269 	'-DSK_IGNORE_ETC1_SUPPORT' \
    270 	'-DSK_IGNORE_GPU_DITHER' \
    271 	'-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \
    272 	'-DSK_BUILD_FOR_ANDROID' \
    273 	'-DSK_USE_POSIX_THREADS' \
    274 	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
    275 	'-DU_USING_ICU_NAMESPACE=0' \
    276 	'-DFEATURE_ENABLE_SSL' \
    277 	'-DFEATURE_ENABLE_VOICEMAIL' \
    278 	'-DEXPAT_RELATIVE_PATH' \
    279 	'-DGTEST_RELATIVE_PATH' \
    280 	'-DNO_MAIN_THREAD_WRAPPING' \
    281 	'-DNO_SOUND_SYSTEM' \
    282 	'-DANDROID' \
    283 	'-DPOSIX' \
    284 	'-DMEDIA_DISABLE_LIBVPX' \
    285 	'-DCHROME_PNG_WRITE_SUPPORT' \
    286 	'-DPNG_USER_CONFIG' \
    287 	'-DCHROME_PNG_READ_PACK_SUPPORT' \
    288 	'-DUSE_SYSTEM_LIBJPEG' \
    289 	'-DMESA_EGL_NO_X11_HEADERS' \
    290 	'-DAPPCACHE_USE_SIMPLE_CACHE' \
    291 	'-DUSE_OPENSSL=1' \
    292 	'-DUSE_OPENSSL_CERTS=1' \
    293 	'-D__STDC_CONSTANT_MACROS' \
    294 	'-D__STDC_FORMAT_MACROS' \
    295 	'-D__GNU_SOURCE=1' \
    296 	'-DUSE_STLPORT=1' \
    297 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    298 	'-DCHROME_BUILD_ID=""' \
    299 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    300 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    301 	'-D_DEBUG'
    302 
    303 
    304 # Include paths placed before CFLAGS/CPPFLAGS
    305 LOCAL_C_INCLUDES_Debug := \
    306 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    307 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    308 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    309 	$(gyp_shared_intermediate_dir) \
    310 	$(LOCAL_PATH) \
    311 	$(LOCAL_PATH)/third_party/khronos \
    312 	$(LOCAL_PATH)/gpu \
    313 	$(LOCAL_PATH)/skia/config \
    314 	$(LOCAL_PATH)/third_party/WebKit/Source \
    315 	$(LOCAL_PATH)/third_party/skia/src/core \
    316 	$(LOCAL_PATH)/third_party/skia/include/core \
    317 	$(LOCAL_PATH)/third_party/skia/include/effects \
    318 	$(LOCAL_PATH)/third_party/skia/include/pdf \
    319 	$(LOCAL_PATH)/third_party/skia/include/gpu \
    320 	$(LOCAL_PATH)/third_party/skia/include/lazy \
    321 	$(LOCAL_PATH)/third_party/skia/include/pathops \
    322 	$(LOCAL_PATH)/third_party/skia/include/pipe \
    323 	$(LOCAL_PATH)/third_party/skia/include/ports \
    324 	$(LOCAL_PATH)/third_party/skia/include/utils \
    325 	$(LOCAL_PATH)/skia/ext \
    326 	$(LOCAL_PATH)/third_party/WebKit \
    327 	$(PWD)/external/icu/icu4c/source/common \
    328 	$(PWD)/external/icu/icu4c/source/i18n \
    329 	$(LOCAL_PATH)/third_party/libjingle/overrides \
    330 	$(LOCAL_PATH)/third_party/libjingle/source \
    331 	$(LOCAL_PATH)/third_party/webrtc/overrides \
    332 	$(LOCAL_PATH)/testing/gtest/include \
    333 	$(LOCAL_PATH)/third_party \
    334 	$(LOCAL_PATH)/third_party/webrtc \
    335 	$(PWD)/external/expat/lib \
    336 	$(gyp_shared_intermediate_dir)/content \
    337 	$(LOCAL_PATH)/third_party/WebKit \
    338 	$(LOCAL_PATH)/third_party/npapi \
    339 	$(LOCAL_PATH)/third_party/npapi/bindings \
    340 	$(LOCAL_PATH)/v8/include \
    341 	$(LOCAL_PATH)/third_party/libpng \
    342 	$(LOCAL_PATH)/third_party/zlib \
    343 	$(LOCAL_PATH)/third_party/libwebp \
    344 	$(LOCAL_PATH)/third_party/ots/include \
    345 	$(LOCAL_PATH)/third_party/qcms/src \
    346 	$(LOCAL_PATH)/third_party/iccjpeg \
    347 	$(PWD)/external/jpeg \
    348 	$(gyp_shared_intermediate_dir)/ui/gl \
    349 	$(LOCAL_PATH)/third_party/mesa/src/include \
    350 	$(LOCAL_PATH)/third_party/libyuv/include \
    351 	$(LOCAL_PATH)/third_party/libyuv \
    352 	$(PWD)/frameworks/wilhelm/include \
    353 	$(PWD)/bionic \
    354 	$(PWD)/external/stlport/stlport
    355 
    356 
    357 # Flags passed to only C++ (and not C) files.
    358 LOCAL_CPPFLAGS_Debug := \
    359 	-fno-rtti \
    360 	-fno-threadsafe-statics \
    361 	-fvisibility-inlines-hidden \
    362 	-Wsign-compare \
    363 	-Wno-abi \
    364 	-Wno-non-virtual-dtor \
    365 	-Wno-sign-promo
    366 
    367 
    368 LOCAL_FDO_SUPPORT_Debug := false
    369 
    370 # Flags passed to both C and C++ files.
    371 MY_CFLAGS_Release := \
    372 	-fstack-protector \
    373 	--param=ssp-buffer-size=4 \
    374 	-Werror \
    375 	-fno-exceptions \
    376 	-fno-strict-aliasing \
    377 	-Wall \
    378 	-Wno-unused-parameter \
    379 	-Wno-missing-field-initializers \
    380 	-fvisibility=hidden \
    381 	-pipe \
    382 	-fPIC \
    383 	-Wno-unused-local-typedefs \
    384 	-fno-tree-sra \
    385 	-fno-partial-inlining \
    386 	-fno-early-inlining \
    387 	-fno-tree-copy-prop \
    388 	-fno-tree-loop-optimize \
    389 	-fno-move-loop-invariants \
    390 	-fno-caller-saves \
    391 	-Wno-psabi \
    392 	-ffunction-sections \
    393 	-funwind-tables \
    394 	-g \
    395 	-fstack-protector \
    396 	-fno-short-enums \
    397 	-finline-limit=64 \
    398 	-Wa,--noexecstack \
    399 	-U_FORTIFY_SOURCE \
    400 	-Wno-extra \
    401 	-Wno-ignored-qualifiers \
    402 	-Wno-type-limits \
    403 	-Wno-unused-but-set-variable \
    404 	-Os \
    405 	-fno-ident \
    406 	-fdata-sections \
    407 	-ffunction-sections \
    408 	-fomit-frame-pointer \
    409 	-funwind-tables
    410 
    411 MY_DEFS_Release := \
    412 	'-DCONTENT_IMPLEMENTATION' \
    413 	'-DV8_DEPRECATION_WARNINGS' \
    414 	'-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \
    415 	'-D_FILE_OFFSET_BITS=64' \
    416 	'-DNO_TCMALLOC' \
    417 	'-DDISABLE_NACL' \
    418 	'-DCHROMIUM_BUILD' \
    419 	'-DUSE_LIBJPEG_TURBO=1' \
    420 	'-DENABLE_WEBRTC=1' \
    421 	'-DUSE_PROPRIETARY_CODECS' \
    422 	'-DENABLE_BROWSER_CDMS' \
    423 	'-DENABLE_CONFIGURATION_POLICY' \
    424 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    425 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    426 	'-DENABLE_EGLIMAGE=1' \
    427 	'-DCLD_VERSION=1' \
    428 	'-DENABLE_PRINTING=1' \
    429 	'-DENABLE_MANAGED_USERS=1' \
    430 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    431 	'-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \
    432 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    433 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    434 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    435 	'-DVIDEO_HOLE=1' \
    436 	'-DUSE_SECCOMP_BPF' \
    437 	'-DMOJO_USE_SYSTEM_IMPL' \
    438 	'-DPOSIX_AVOID_MMAP' \
    439 	'-DSK_ENABLE_INST_COUNT=0' \
    440 	'-DSK_SUPPORT_GPU=1' \
    441 	'-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \
    442 	'-DSK_ENABLE_LEGACY_API_ALIASING=1' \
    443 	'-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \
    444 	'-DGR_GL_IGNORE_ES3_MSAA=0' \
    445 	'-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \
    446 	'-DSK_SUPPORT_LEGACY_GETTOPDEVICE' \
    447 	'-DSK_SUPPORT_LEGACY_BITMAP_CONFIG' \
    448 	'-DSK_SUPPORT_LEGACY_DEVICE_VIRTUAL_ISOPAQUE' \
    449 	'-DSK_SUPPORT_LEGACY_N32_NAME' \
    450 	'-DSK_SUPPORT_LEGACY_SETCONFIG' \
    451 	'-DSK_IGNORE_ETC1_SUPPORT' \
    452 	'-DSK_IGNORE_GPU_DITHER' \
    453 	'-DSK_SUPPORT_LEGACY_GETTOTALCLIP' \
    454 	'-DSK_BUILD_FOR_ANDROID' \
    455 	'-DSK_USE_POSIX_THREADS' \
    456 	'-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \
    457 	'-DU_USING_ICU_NAMESPACE=0' \
    458 	'-DFEATURE_ENABLE_SSL' \
    459 	'-DFEATURE_ENABLE_VOICEMAIL' \
    460 	'-DEXPAT_RELATIVE_PATH' \
    461 	'-DGTEST_RELATIVE_PATH' \
    462 	'-DNO_MAIN_THREAD_WRAPPING' \
    463 	'-DNO_SOUND_SYSTEM' \
    464 	'-DANDROID' \
    465 	'-DPOSIX' \
    466 	'-DMEDIA_DISABLE_LIBVPX' \
    467 	'-DCHROME_PNG_WRITE_SUPPORT' \
    468 	'-DPNG_USER_CONFIG' \
    469 	'-DCHROME_PNG_READ_PACK_SUPPORT' \
    470 	'-DUSE_SYSTEM_LIBJPEG' \
    471 	'-DMESA_EGL_NO_X11_HEADERS' \
    472 	'-DAPPCACHE_USE_SIMPLE_CACHE' \
    473 	'-DUSE_OPENSSL=1' \
    474 	'-DUSE_OPENSSL_CERTS=1' \
    475 	'-D__STDC_CONSTANT_MACROS' \
    476 	'-D__STDC_FORMAT_MACROS' \
    477 	'-D__GNU_SOURCE=1' \
    478 	'-DUSE_STLPORT=1' \
    479 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    480 	'-DCHROME_BUILD_ID=""' \
    481 	'-DNDEBUG' \
    482 	'-DNVALGRIND' \
    483 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    484 	'-D_FORTIFY_SOURCE=2'
    485 
    486 
    487 # Include paths placed before CFLAGS/CPPFLAGS
    488 LOCAL_C_INCLUDES_Release := \
    489 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    490 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    491 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    492 	$(gyp_shared_intermediate_dir) \
    493 	$(LOCAL_PATH) \
    494 	$(LOCAL_PATH)/third_party/khronos \
    495 	$(LOCAL_PATH)/gpu \
    496 	$(LOCAL_PATH)/skia/config \
    497 	$(LOCAL_PATH)/third_party/WebKit/Source \
    498 	$(LOCAL_PATH)/third_party/skia/src/core \
    499 	$(LOCAL_PATH)/third_party/skia/include/core \
    500 	$(LOCAL_PATH)/third_party/skia/include/effects \
    501 	$(LOCAL_PATH)/third_party/skia/include/pdf \
    502 	$(LOCAL_PATH)/third_party/skia/include/gpu \
    503 	$(LOCAL_PATH)/third_party/skia/include/lazy \
    504 	$(LOCAL_PATH)/third_party/skia/include/pathops \
    505 	$(LOCAL_PATH)/third_party/skia/include/pipe \
    506 	$(LOCAL_PATH)/third_party/skia/include/ports \
    507 	$(LOCAL_PATH)/third_party/skia/include/utils \
    508 	$(LOCAL_PATH)/skia/ext \
    509 	$(LOCAL_PATH)/third_party/WebKit \
    510 	$(PWD)/external/icu/icu4c/source/common \
    511 	$(PWD)/external/icu/icu4c/source/i18n \
    512 	$(LOCAL_PATH)/third_party/libjingle/overrides \
    513 	$(LOCAL_PATH)/third_party/libjingle/source \
    514 	$(LOCAL_PATH)/third_party/webrtc/overrides \
    515 	$(LOCAL_PATH)/testing/gtest/include \
    516 	$(LOCAL_PATH)/third_party \
    517 	$(LOCAL_PATH)/third_party/webrtc \
    518 	$(PWD)/external/expat/lib \
    519 	$(gyp_shared_intermediate_dir)/content \
    520 	$(LOCAL_PATH)/third_party/WebKit \
    521 	$(LOCAL_PATH)/third_party/npapi \
    522 	$(LOCAL_PATH)/third_party/npapi/bindings \
    523 	$(LOCAL_PATH)/v8/include \
    524 	$(LOCAL_PATH)/third_party/libpng \
    525 	$(LOCAL_PATH)/third_party/zlib \
    526 	$(LOCAL_PATH)/third_party/libwebp \
    527 	$(LOCAL_PATH)/third_party/ots/include \
    528 	$(LOCAL_PATH)/third_party/qcms/src \
    529 	$(LOCAL_PATH)/third_party/iccjpeg \
    530 	$(PWD)/external/jpeg \
    531 	$(gyp_shared_intermediate_dir)/ui/gl \
    532 	$(LOCAL_PATH)/third_party/mesa/src/include \
    533 	$(LOCAL_PATH)/third_party/libyuv/include \
    534 	$(LOCAL_PATH)/third_party/libyuv \
    535 	$(PWD)/frameworks/wilhelm/include \
    536 	$(PWD)/bionic \
    537 	$(PWD)/external/stlport/stlport
    538 
    539 
    540 # Flags passed to only C++ (and not C) files.
    541 LOCAL_CPPFLAGS_Release := \
    542 	-fno-rtti \
    543 	-fno-threadsafe-statics \
    544 	-fvisibility-inlines-hidden \
    545 	-Wsign-compare \
    546 	-Wno-abi \
    547 	-Wno-non-virtual-dtor \
    548 	-Wno-sign-promo
    549 
    550 
    551 LOCAL_FDO_SUPPORT_Release := false
    552 
    553 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    554 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION))
    555 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    556 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    557 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    558 ### Rules for final target.
    559 
    560 LOCAL_LDFLAGS_Debug := \
    561 	-Wl,-z,now \
    562 	-Wl,-z,relro \
    563 	-Wl,--fatal-warnings \
    564 	-Wl,-z,noexecstack \
    565 	-fPIC \
    566 	-Wl,-z,relro \
    567 	-Wl,-z,now \
    568 	-fuse-ld=gold \
    569 	-nostdlib \
    570 	-Wl,--no-undefined \
    571 	-Wl,--exclude-libs=ALL \
    572 	-Wl,--icf=safe \
    573 	-Wl,--warn-shared-textrel \
    574 	-Wl,-O1 \
    575 	-Wl,--as-needed
    576 
    577 
    578 LOCAL_LDFLAGS_Release := \
    579 	-Wl,-z,now \
    580 	-Wl,-z,relro \
    581 	-Wl,--fatal-warnings \
    582 	-Wl,-z,noexecstack \
    583 	-fPIC \
    584 	-Wl,-z,relro \
    585 	-Wl,-z,now \
    586 	-fuse-ld=gold \
    587 	-nostdlib \
    588 	-Wl,--no-undefined \
    589 	-Wl,--exclude-libs=ALL \
    590 	-Wl,--icf=safe \
    591 	-Wl,-O1 \
    592 	-Wl,--as-needed \
    593 	-Wl,--gc-sections \
    594 	-Wl,--warn-shared-textrel
    595 
    596 
    597 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    598 
    599 LOCAL_STATIC_LIBRARIES := \
    600 	skia_skia_library_gyp \
    601 	ui_accessibility_accessibility_gyp \
    602 	ui_accessibility_ax_gen_gyp \
    603 	ui_base_ui_base_gyp \
    604 	ui_gl_gl_gyp
    605 
    606 # Enable grouping to fix circular references
    607 LOCAL_GROUP_STATIC_LIBRARIES := true
    608 
    609 LOCAL_SHARED_LIBRARIES := \
    610 	libstlport \
    611 	libdl
    612 
    613 # Add target alias to "gyp_all_modules" target.
    614 .PHONY: gyp_all_modules
    615 gyp_all_modules: content_content_common_gyp
    616 
    617 # Alias gyp target name.
    618 .PHONY: content_common
    619 content_common: content_content_common_gyp
    620 
    621 include $(BUILD_STATIC_LIBRARY)
    622