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 gyp_intermediate_dir := $(call local-intermediates-dir)
     10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared)
     11 
     12 # Make sure our deps are built first.
     13 GYP_TARGET_DEPENDENCIES := \
     14 	$(call intermediates-dir-for,GYP,skia_skia_gyp)/skia.stamp \
     15 	$(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp)/icuuc.stamp \
     16 	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_ui_gyp)/ui_ui_gyp.a \
     17 	$(call intermediates-dir-for,GYP,content_content_resources_gyp)/content_resources.stamp \
     18 	$(call intermediates-dir-for,GYP,third_party_WebKit_public_blink_minimal_gyp)/blink_minimal.stamp \
     19 	$(call intermediates-dir-for,STATIC_LIBRARIES,ui_gl_gl_gyp)/ui_gl_gl_gyp.a \
     20 	$(call intermediates-dir-for,STATIC_LIBRARIES,webkit_support_glue_gyp)/webkit_support_glue_gyp.a \
     21 	$(call intermediates-dir-for,GYP,content_content_jni_headers_gyp)/content_jni_headers.stamp \
     22 	$(call intermediates-dir-for,GYP,content_common_aidl_gyp)/common_aidl.stamp
     23 
     24 GYP_GENERATED_OUTPUTS :=
     25 
     26 # Make sure our deps and generated files are built first.
     27 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     28 
     29 LOCAL_CPP_EXTENSION := .cc
     30 LOCAL_GENERATED_SOURCES :=
     31 
     32 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     33 
     34 LOCAL_SRC_FILES := \
     35 	content/public/common/child_process_host_delegate.cc \
     36 	content/public/common/content_constants.cc \
     37 	content/public/common/content_switches.cc \
     38 	content/public/common/context_menu_params.cc \
     39 	content/public/common/desktop_media_id.cc \
     40 	content/public/common/drop_data.cc \
     41 	content/public/common/favicon_url.cc \
     42 	content/public/common/file_chooser_params.cc \
     43 	content/public/common/frame_navigate_params.cc \
     44 	content/public/common/geoposition.cc \
     45 	content/public/common/gpu_memory_stats.cc \
     46 	content/public/common/media_stream_request.cc \
     47 	content/public/common/menu_item.cc \
     48 	content/public/common/page_state.cc \
     49 	content/public/common/page_transition_types.cc \
     50 	content/public/common/password_form.cc \
     51 	content/public/common/pepper_plugin_info.cc \
     52 	content/public/common/renderer_preferences.cc \
     53 	content/public/common/show_desktop_notification_params.cc \
     54 	content/public/common/speech_recognition_result.cc \
     55 	content/public/common/ssl_status.cc \
     56 	content/public/common/url_constants.cc \
     57 	content/public/common/url_utils.cc \
     58 	content/public/common/webplugininfo.cc \
     59 	content/common/accessibility_node_data.cc \
     60 	content/common/android/address_parser.cc \
     61 	content/common/android/address_parser_internal.cc \
     62 	content/common/android/command_line.cc \
     63 	content/common/android/common_jni_registrar.cc \
     64 	content/common/android/device_telephony_info.cc \
     65 	content/common/android/hash_set.cc \
     66 	content/common/android/surface_texture_peer.cc \
     67 	content/common/android/trace_event_binding.cc \
     68 	content/common/browser_plugin/browser_plugin_constants.cc \
     69 	content/common/browser_rendering_stats.cc \
     70 	content/common/cc_messages.cc \
     71 	content/common/child_process_host_impl.cc \
     72 	content/common/clipboard_messages.cc \
     73 	content/common/content_constants_internal.cc \
     74 	content/common/content_ipc_logging.cc \
     75 	content/common/content_message_generator.cc \
     76 	content/common/content_param_traits.cc \
     77 	content/common/content_paths.cc \
     78 	content/common/cookie_data.cc \
     79 	content/common/dom_storage/dom_storage_map.cc \
     80 	content/common/find_match_rect_android.cc \
     81 	content/common/font_list.cc \
     82 	content/common/font_list_android.cc \
     83 	content/common/gamepad_user_gesture.cc \
     84 	content/common/gpu/client/command_buffer_proxy_impl.cc \
     85 	content/common/gpu/client/context_provider_command_buffer.cc \
     86 	content/common/gpu/client/gl_helper.cc \
     87 	content/common/gpu/client/gl_helper_scaling.cc \
     88 	content/common/gpu/client/gpu_channel_host.cc \
     89 	content/common/gpu/client/gpu_video_decode_accelerator_host.cc \
     90 	content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc \
     91 	content/common/gpu/gpu_channel.cc \
     92 	content/common/gpu/gpu_channel_manager.cc \
     93 	content/common/gpu/gpu_command_buffer_stub.cc \
     94 	content/common/gpu/gpu_memory_manager.cc \
     95 	content/common/gpu/gpu_memory_manager_client.cc \
     96 	content/common/gpu/gpu_memory_tracking.cc \
     97 	content/common/gpu/gpu_rendering_stats.cc \
     98 	content/common/gpu/gpu_surface_lookup.cc \
     99 	content/common/gpu/stream_texture_manager_android.cc \
    100 	content/common/gpu/image_transport_surface.cc \
    101 	content/common/gpu/image_transport_surface_android.cc \
    102 	content/common/gpu/media/h264_bit_reader.cc \
    103 	content/common/gpu/media/h264_parser.cc \
    104 	content/common/gpu/media/gpu_video_decode_accelerator.cc \
    105 	content/common/gpu/sync_point_manager.cc \
    106 	content/common/gpu/texture_image_transport_surface.cc \
    107 	content/common/indexed_db/indexed_db_key.cc \
    108 	content/common/indexed_db/indexed_db_key_path.cc \
    109 	content/common/indexed_db/indexed_db_key_range.cc \
    110 	content/common/indexed_db/indexed_db_param_traits.cc \
    111 	content/common/inter_process_time_ticks_converter.cc \
    112 	content/common/media/media_param_traits.cc \
    113 	content/common/media/media_stream_options.cc \
    114 	content/common/message_router.cc \
    115 	content/common/net/url_fetcher.cc \
    116 	content/common/net/url_request_user_data.cc \
    117 	content/common/one_writer_seqlock.cc \
    118 	content/common/page_state_serialization.cc \
    119 	content/common/page_zoom.cc \
    120 	content/common/pepper_renderer_instance_data.cc \
    121 	content/common/plugin_list.cc \
    122 	content/common/plugin_list_posix.cc \
    123 	content/common/process_type.cc \
    124 	content/common/resource_messages.cc \
    125 	content/common/sandbox_util.cc \
    126 	content/common/savable_url_schemes.cc \
    127 	content/common/set_process_title.cc \
    128 	content/common/socket_stream_handle_data.cc \
    129 	content/common/ssl_status_serialization.cc \
    130 	content/common/swapped_out_messages.cc \
    131 	content/common/url_schemes.cc \
    132 	content/common/webplugin_geometry.cc \
    133 	content/public/common/common_param_traits.cc \
    134 	content/public/common/content_client.cc \
    135 	content/public/common/window_container_type.cc \
    136 	content/common/gpu/media/android_video_decode_accelerator.cc
    137 
    138 
    139 # Flags passed to both C and C++ files.
    140 MY_CFLAGS_Debug := \
    141 	-fstack-protector \
    142 	--param=ssp-buffer-size=4 \
    143 	-Werror \
    144 	-fno-exceptions \
    145 	-fno-strict-aliasing \
    146 	-Wall \
    147 	-Wno-unused-parameter \
    148 	-Wno-missing-field-initializers \
    149 	-fvisibility=hidden \
    150 	-pipe \
    151 	-fPIC \
    152 	-Wno-unknown-pragmas \
    153 	-fno-tree-sra \
    154 	-fuse-ld=gold \
    155 	-Wno-psabi \
    156 	-ffunction-sections \
    157 	-funwind-tables \
    158 	-g \
    159 	-fstack-protector \
    160 	-fno-short-enums \
    161 	-finline-limit=64 \
    162 	-Wa,--noexecstack \
    163 	-U_FORTIFY_SOURCE \
    164 	-Wno-extra \
    165 	-Wno-ignored-qualifiers \
    166 	-Wno-type-limits \
    167 	-Os \
    168 	-g \
    169 	-fomit-frame-pointer \
    170 	-fdata-sections \
    171 	-ffunction-sections
    172 
    173 MY_DEFS_Debug := \
    174 	'-DCONTENT_IMPLEMENTATION' \
    175 	'-DANGLE_DX11' \
    176 	'-D_FILE_OFFSET_BITS=64' \
    177 	'-DNO_TCMALLOC' \
    178 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    179 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    180 	'-DDISABLE_NACL' \
    181 	'-DCHROMIUM_BUILD' \
    182 	'-DUSE_LIBJPEG_TURBO=1' \
    183 	'-DUSE_PROPRIETARY_CODECS' \
    184 	'-DENABLE_CONFIGURATION_POLICY' \
    185 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
    186 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
    187 	'-DENABLE_GPU=1' \
    188 	'-DUSE_OPENSSL=1' \
    189 	'-DENABLE_EGLIMAGE=1' \
    190 	'-DENABLE_PRINTING=1' \
    191 	'-DMEDIA_DISABLE_LIBVPX' \
    192 	'-DPOSIX_AVOID_MMAP' \
    193 	'-DU_USING_ICU_NAMESPACE=0' \
    194 	'-DMESA_EGL_NO_X11_HEADERS' \
    195 	'-D__STDC_CONSTANT_MACROS' \
    196 	'-D__STDC_FORMAT_MACROS' \
    197 	'-DANDROID' \
    198 	'-D__GNU_SOURCE=1' \
    199 	'-DUSE_STLPORT=1' \
    200 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    201 	'-DCHROME_BUILD_ID=""' \
    202 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    203 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    204 	'-D_DEBUG'
    205 
    206 
    207 # Include paths placed before CFLAGS/CPPFLAGS
    208 LOCAL_C_INCLUDES_Debug := \
    209 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    210 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    211 	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
    212 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    213 	$(LOCAL_PATH) \
    214 	$(LOCAL_PATH)/third_party/khronos \
    215 	$(LOCAL_PATH)/gpu \
    216 	$(LOCAL_PATH)/third_party/skia/src/core \
    217 	$(LOCAL_PATH)/skia/ext \
    218 	$(PWD)/external/icu4c/common \
    219 	$(PWD)/external/icu4c/i18n \
    220 	$(gyp_shared_intermediate_dir)/content \
    221 	$(LOCAL_PATH)/v8/include \
    222 	$(gyp_shared_intermediate_dir)/ui/gl \
    223 	$(LOCAL_PATH)/third_party/mesa/src/include \
    224 	$(PWD)/frameworks/wilhelm/include \
    225 	$(PWD)/bionic \
    226 	$(PWD)/external/stlport/stlport
    227 
    228 
    229 # Flags passed to only C++ (and not C) files.
    230 LOCAL_CPPFLAGS_Debug := \
    231 	-fno-rtti \
    232 	-fno-threadsafe-statics \
    233 	-fvisibility-inlines-hidden \
    234 	-Wsign-compare \
    235 	-Wno-abi \
    236 	-Wno-error=c++0x-compat \
    237 	-Wno-non-virtual-dtor \
    238 	-Wno-sign-promo
    239 
    240 
    241 # Flags passed to both C and C++ files.
    242 MY_CFLAGS_Release := \
    243 	-fstack-protector \
    244 	--param=ssp-buffer-size=4 \
    245 	-Werror \
    246 	-fno-exceptions \
    247 	-fno-strict-aliasing \
    248 	-Wall \
    249 	-Wno-unused-parameter \
    250 	-Wno-missing-field-initializers \
    251 	-fvisibility=hidden \
    252 	-pipe \
    253 	-fPIC \
    254 	-Wno-unknown-pragmas \
    255 	-fno-tree-sra \
    256 	-fuse-ld=gold \
    257 	-Wno-psabi \
    258 	-ffunction-sections \
    259 	-funwind-tables \
    260 	-g \
    261 	-fstack-protector \
    262 	-fno-short-enums \
    263 	-finline-limit=64 \
    264 	-Wa,--noexecstack \
    265 	-U_FORTIFY_SOURCE \
    266 	-Wno-extra \
    267 	-Wno-ignored-qualifiers \
    268 	-Wno-type-limits \
    269 	-Os \
    270 	-fno-ident \
    271 	-fdata-sections \
    272 	-ffunction-sections \
    273 	-fomit-frame-pointer
    274 
    275 MY_DEFS_Release := \
    276 	'-DCONTENT_IMPLEMENTATION' \
    277 	'-DANGLE_DX11' \
    278 	'-D_FILE_OFFSET_BITS=64' \
    279 	'-DNO_TCMALLOC' \
    280 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    281 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    282 	'-DDISABLE_NACL' \
    283 	'-DCHROMIUM_BUILD' \
    284 	'-DUSE_LIBJPEG_TURBO=1' \
    285 	'-DUSE_PROPRIETARY_CODECS' \
    286 	'-DENABLE_CONFIGURATION_POLICY' \
    287 	'-DLOGGING_IS_OFFICIAL_BUILD=1' \
    288 	'-DTRACING_IS_OFFICIAL_BUILD=1' \
    289 	'-DENABLE_GPU=1' \
    290 	'-DUSE_OPENSSL=1' \
    291 	'-DENABLE_EGLIMAGE=1' \
    292 	'-DENABLE_PRINTING=1' \
    293 	'-DMEDIA_DISABLE_LIBVPX' \
    294 	'-DPOSIX_AVOID_MMAP' \
    295 	'-DU_USING_ICU_NAMESPACE=0' \
    296 	'-DMESA_EGL_NO_X11_HEADERS' \
    297 	'-D__STDC_CONSTANT_MACROS' \
    298 	'-D__STDC_FORMAT_MACROS' \
    299 	'-DANDROID' \
    300 	'-D__GNU_SOURCE=1' \
    301 	'-DUSE_STLPORT=1' \
    302 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    303 	'-DCHROME_BUILD_ID=""' \
    304 	'-DNDEBUG' \
    305 	'-DNVALGRIND' \
    306 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    307 	'-D_FORTIFY_SOURCE=2'
    308 
    309 
    310 # Include paths placed before CFLAGS/CPPFLAGS
    311 LOCAL_C_INCLUDES_Release := \
    312 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    313 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    314 	$(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \
    315 	$(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \
    316 	$(LOCAL_PATH) \
    317 	$(LOCAL_PATH)/third_party/khronos \
    318 	$(LOCAL_PATH)/gpu \
    319 	$(LOCAL_PATH)/third_party/skia/src/core \
    320 	$(LOCAL_PATH)/skia/ext \
    321 	$(PWD)/external/icu4c/common \
    322 	$(PWD)/external/icu4c/i18n \
    323 	$(gyp_shared_intermediate_dir)/content \
    324 	$(LOCAL_PATH)/v8/include \
    325 	$(gyp_shared_intermediate_dir)/ui/gl \
    326 	$(LOCAL_PATH)/third_party/mesa/src/include \
    327 	$(PWD)/frameworks/wilhelm/include \
    328 	$(PWD)/bionic \
    329 	$(PWD)/external/stlport/stlport
    330 
    331 
    332 # Flags passed to only C++ (and not C) files.
    333 LOCAL_CPPFLAGS_Release := \
    334 	-fno-rtti \
    335 	-fno-threadsafe-statics \
    336 	-fvisibility-inlines-hidden \
    337 	-Wsign-compare \
    338 	-Wno-abi \
    339 	-Wno-error=c++0x-compat \
    340 	-Wno-non-virtual-dtor \
    341 	-Wno-sign-promo
    342 
    343 
    344 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    345 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    346 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    347 ### Rules for final target.
    348 
    349 LOCAL_LDFLAGS_Debug := \
    350 	-Wl,-z,now \
    351 	-Wl,-z,relro \
    352 	-Wl,-z,noexecstack \
    353 	-fPIC \
    354 	-Wl,-z,relro \
    355 	-Wl,-z,now \
    356 	-fuse-ld=gold \
    357 	-nostdlib \
    358 	-Wl,--no-undefined \
    359 	-Wl,--exclude-libs=ALL \
    360 	-Wl,--icf=safe \
    361 	-Wl,--fatal-warnings \
    362 	-Wl,--gc-sections \
    363 	-Wl,--warn-shared-textrel \
    364 	-Wl,-O1 \
    365 	-Wl,--as-needed
    366 
    367 
    368 LOCAL_LDFLAGS_Release := \
    369 	-Wl,-z,now \
    370 	-Wl,-z,relro \
    371 	-Wl,-z,noexecstack \
    372 	-fPIC \
    373 	-Wl,-z,relro \
    374 	-Wl,-z,now \
    375 	-fuse-ld=gold \
    376 	-nostdlib \
    377 	-Wl,--no-undefined \
    378 	-Wl,--exclude-libs=ALL \
    379 	-Wl,--icf=safe \
    380 	-Wl,-O1 \
    381 	-Wl,--as-needed \
    382 	-Wl,--gc-sections \
    383 	-Wl,--fatal-warnings \
    384 	-Wl,--warn-shared-textrel
    385 
    386 
    387 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION))
    388 
    389 LOCAL_STATIC_LIBRARIES := \
    390 	ui_ui_gyp \
    391 	ui_gl_gl_gyp \
    392 	webkit_support_glue_gyp
    393 
    394 # Enable grouping to fix circular references
    395 LOCAL_GROUP_STATIC_LIBRARIES := true
    396 
    397 LOCAL_SHARED_LIBRARIES := \
    398 	libskia \
    399 	libstlport \
    400 	libdl
    401 
    402 # Add target alias to "gyp_all_modules" target.
    403 .PHONY: gyp_all_modules
    404 gyp_all_modules: content_content_common_gyp
    405 
    406 # Alias gyp target name.
    407 .PHONY: content_common
    408 content_common: content_content_common_gyp
    409 
    410 include $(BUILD_STATIC_LIBRARY)
    411