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_gyp)/blink.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_glue_glue_gyp)/webkit_glue_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/color_suggestion.cc \ 37 content/public/common/content_constants.cc \ 38 content/public/common/content_switches.cc \ 39 content/public/common/context_menu_params.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/pepper_plugin_info.cc \ 51 content/public/common/renderer_preferences.cc \ 52 content/public/common/show_desktop_notification_params.cc \ 53 content/public/common/signed_certificate_timestamp_id_and_status.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/common_jni_registrar.cc \ 63 content/common/android/device_telephony_info.cc \ 64 content/common/android/hash_set.cc \ 65 content/common/android/surface_texture_peer.cc \ 66 content/common/android/trace_event_binding.cc \ 67 content/common/browser_plugin/browser_plugin_constants.cc \ 68 content/common/browser_rendering_stats.cc \ 69 content/common/cc_messages.cc \ 70 content/common/child_process_host_impl.cc \ 71 content/common/clipboard_messages.cc \ 72 content/common/content_constants_internal.cc \ 73 content/common/content_ipc_logging.cc \ 74 content/common/content_message_generator.cc \ 75 content/common/content_param_traits.cc \ 76 content/common/content_paths.cc \ 77 content/common/cookie_data.cc \ 78 content/common/dom_storage/dom_storage_map.cc \ 79 content/common/font_list.cc \ 80 content/common/font_list_android.cc \ 81 content/common/gamepad_user_gesture.cc \ 82 content/common/gpu/client/command_buffer_proxy_impl.cc \ 83 content/common/gpu/client/context_provider_command_buffer.cc \ 84 content/common/gpu/client/gl_helper.cc \ 85 content/common/gpu/client/gl_helper_scaling.cc \ 86 content/common/gpu/client/gpu_channel_host.cc \ 87 content/common/gpu/client/gpu_memory_buffer_impl.cc \ 88 content/common/gpu/client/gpu_memory_buffer_impl_android.cc \ 89 content/common/gpu/client/gpu_memory_buffer_impl_shm.cc \ 90 content/common/gpu/client/gpu_video_decode_accelerator_host.cc \ 91 content/common/gpu/client/gpu_video_encode_accelerator_host.cc \ 92 content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc \ 93 content/common/gpu/devtools_gpu_agent.cc \ 94 content/common/gpu/devtools_gpu_instrumentation.cc \ 95 content/common/gpu/gpu_channel.cc \ 96 content/common/gpu/gpu_channel_manager.cc \ 97 content/common/gpu/gpu_command_buffer_stub.cc \ 98 content/common/gpu/gpu_memory_manager.cc \ 99 content/common/gpu/gpu_memory_manager_client.cc \ 100 content/common/gpu/gpu_memory_tracking.cc \ 101 content/common/gpu/gpu_rendering_stats.cc \ 102 content/common/gpu/gpu_surface_lookup.cc \ 103 content/common/gpu/image_transport_surface.cc \ 104 content/common/gpu/image_transport_surface_android.cc \ 105 content/common/gpu/media/gpu_video_decode_accelerator.cc \ 106 content/common/gpu/media/gpu_video_encode_accelerator.cc \ 107 content/common/gpu/media/h264_bit_reader.cc \ 108 content/common/gpu/media/h264_parser.cc \ 109 content/common/gpu/media/video_decode_accelerator_impl.cc \ 110 content/common/gpu/stream_texture_manager_android.cc \ 111 content/common/gpu/sync_point_manager.cc \ 112 content/common/gpu/texture_image_transport_surface.cc \ 113 content/common/indexed_db/indexed_db_key.cc \ 114 content/common/indexed_db/indexed_db_key_path.cc \ 115 content/common/indexed_db/indexed_db_key_range.cc \ 116 content/common/indexed_db/indexed_db_param_traits.cc \ 117 content/common/input/input_event.cc \ 118 content/common/input/input_param_traits.cc \ 119 content/common/input/scoped_web_input_event.cc \ 120 content/common/input/synthetic_gesture_packet.cc \ 121 content/common/input/synthetic_gesture_params.cc \ 122 content/common/input/synthetic_pinch_gesture_params.cc \ 123 content/common/input/synthetic_smooth_scroll_gesture_params.cc \ 124 content/common/input/synthetic_tap_gesture_params.cc \ 125 content/common/input/synthetic_web_input_event_builders.cc \ 126 content/common/input/web_input_event_traits.cc \ 127 content/common/inter_process_time_ticks_converter.cc \ 128 content/common/media/media_param_traits.cc \ 129 content/common/media/media_stream_options.cc \ 130 content/common/message_router.cc \ 131 content/common/net/url_fetcher.cc \ 132 content/common/net/url_request_user_data.cc \ 133 content/common/one_writer_seqlock.cc \ 134 content/common/page_state_serialization.cc \ 135 content/common/page_zoom.cc \ 136 content/common/pepper_renderer_instance_data.cc \ 137 content/common/plugin_list.cc \ 138 content/common/plugin_list_posix.cc \ 139 content/common/process_type.cc \ 140 content/common/resource_messages.cc \ 141 content/common/savable_url_schemes.cc \ 142 content/common/set_process_title.cc \ 143 content/common/socket_stream_handle_data.cc \ 144 content/common/ssl_status_serialization.cc \ 145 content/common/swapped_out_messages.cc \ 146 content/common/url_schemes.cc \ 147 content/common/webplugin_geometry.cc \ 148 content/common/websocket.cc \ 149 content/public/common/common_param_traits.cc \ 150 content/public/common/content_client.cc \ 151 content/public/common/window_container_type.cc \ 152 content/common/gpu/media/android_video_decode_accelerator.cc 153 154 155 # Flags passed to both C and C++ files. 156 MY_CFLAGS_Debug := \ 157 -fstack-protector \ 158 --param=ssp-buffer-size=4 \ 159 -Werror \ 160 -fno-exceptions \ 161 -fno-strict-aliasing \ 162 -Wall \ 163 -Wno-unused-parameter \ 164 -Wno-missing-field-initializers \ 165 -fvisibility=hidden \ 166 -pipe \ 167 -fPIC \ 168 -Wno-unknown-pragmas \ 169 -fno-tree-sra \ 170 -fuse-ld=gold \ 171 -Wno-psabi \ 172 -ffunction-sections \ 173 -funwind-tables \ 174 -g \ 175 -fstack-protector \ 176 -fno-short-enums \ 177 -finline-limit=64 \ 178 -Wa,--noexecstack \ 179 -U_FORTIFY_SOURCE \ 180 -Wno-extra \ 181 -Wno-ignored-qualifiers \ 182 -Wno-type-limits \ 183 -Os \ 184 -g \ 185 -fomit-frame-pointer \ 186 -fdata-sections \ 187 -ffunction-sections 188 189 MY_DEFS_Debug := \ 190 '-DCONTENT_IMPLEMENTATION' \ 191 '-DV8_DEPRECATION_WARNINGS' \ 192 '-D_FILE_OFFSET_BITS=64' \ 193 '-DNO_TCMALLOC' \ 194 '-DDISABLE_NACL' \ 195 '-DCHROMIUM_BUILD' \ 196 '-DUSE_LIBJPEG_TURBO=1' \ 197 '-DUSE_PROPRIETARY_CODECS' \ 198 '-DENABLE_CONFIGURATION_POLICY' \ 199 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 200 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 201 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 202 '-DUSE_OPENSSL=1' \ 203 '-DENABLE_EGLIMAGE=1' \ 204 '-DCLD_VERSION=1' \ 205 '-DENABLE_PRINTING=1' \ 206 '-DENABLE_MANAGED_USERS=1' \ 207 '-DPOSIX_AVOID_MMAP' \ 208 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 209 '-DU_USING_ICU_NAMESPACE=0' \ 210 '-DMEDIA_DISABLE_LIBVPX' \ 211 '-DCHROME_PNG_WRITE_SUPPORT' \ 212 '-DPNG_USER_CONFIG' \ 213 '-DCHROME_PNG_READ_PACK_SUPPORT' \ 214 '-DUSE_SYSTEM_LIBJPEG' \ 215 '-DMESA_EGL_NO_X11_HEADERS' \ 216 '-DAPPCACHE_USE_SIMPLE_CACHE' \ 217 '-D__STDC_CONSTANT_MACROS' \ 218 '-D__STDC_FORMAT_MACROS' \ 219 '-DANDROID' \ 220 '-D__GNU_SOURCE=1' \ 221 '-DUSE_STLPORT=1' \ 222 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 223 '-DCHROME_BUILD_ID=""' \ 224 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 225 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 226 '-D_DEBUG' 227 228 229 # Include paths placed before CFLAGS/CPPFLAGS 230 LOCAL_C_INCLUDES_Debug := \ 231 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 232 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 233 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 234 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 235 $(LOCAL_PATH) \ 236 $(LOCAL_PATH)/skia/config \ 237 $(LOCAL_PATH)/third_party/khronos \ 238 $(LOCAL_PATH)/gpu \ 239 $(LOCAL_PATH)/third_party/WebKit/Source \ 240 $(PWD)/external/skia/include \ 241 $(PWD)/external/skia/include/core \ 242 $(LOCAL_PATH)/third_party/skia/src/core \ 243 $(LOCAL_PATH)/skia/ext \ 244 $(PWD)/external/icu4c/common \ 245 $(PWD)/external/icu4c/i18n \ 246 $(gyp_shared_intermediate_dir)/content \ 247 $(LOCAL_PATH)/third_party/WebKit \ 248 $(LOCAL_PATH)/third_party/npapi \ 249 $(LOCAL_PATH)/third_party/npapi/bindings \ 250 $(LOCAL_PATH)/v8/include \ 251 $(LOCAL_PATH)/third_party/libpng \ 252 $(LOCAL_PATH)/third_party/zlib \ 253 $(LOCAL_PATH)/third_party/libwebp \ 254 $(LOCAL_PATH)/third_party/ots/include \ 255 $(LOCAL_PATH)/third_party/qcms/src \ 256 $(LOCAL_PATH)/third_party/iccjpeg \ 257 $(PWD)/external/jpeg \ 258 $(gyp_shared_intermediate_dir)/ui/gl \ 259 $(LOCAL_PATH)/third_party/mesa/src/include \ 260 $(PWD)/frameworks/wilhelm/include \ 261 $(PWD)/bionic \ 262 $(PWD)/external/stlport/stlport 263 264 265 # Flags passed to only C++ (and not C) files. 266 LOCAL_CPPFLAGS_Debug := \ 267 -fno-rtti \ 268 -fno-threadsafe-statics \ 269 -fvisibility-inlines-hidden \ 270 -Wsign-compare \ 271 -Wno-abi \ 272 -Wno-error=c++0x-compat \ 273 -Wno-non-virtual-dtor \ 274 -Wno-sign-promo 275 276 277 # Flags passed to both C and C++ files. 278 MY_CFLAGS_Release := \ 279 -fstack-protector \ 280 --param=ssp-buffer-size=4 \ 281 -Werror \ 282 -fno-exceptions \ 283 -fno-strict-aliasing \ 284 -Wall \ 285 -Wno-unused-parameter \ 286 -Wno-missing-field-initializers \ 287 -fvisibility=hidden \ 288 -pipe \ 289 -fPIC \ 290 -Wno-unknown-pragmas \ 291 -fno-tree-sra \ 292 -fuse-ld=gold \ 293 -Wno-psabi \ 294 -ffunction-sections \ 295 -funwind-tables \ 296 -g \ 297 -fstack-protector \ 298 -fno-short-enums \ 299 -finline-limit=64 \ 300 -Wa,--noexecstack \ 301 -U_FORTIFY_SOURCE \ 302 -Wno-extra \ 303 -Wno-ignored-qualifiers \ 304 -Wno-type-limits \ 305 -Os \ 306 -fno-ident \ 307 -fdata-sections \ 308 -ffunction-sections \ 309 -fomit-frame-pointer 310 311 MY_DEFS_Release := \ 312 '-DCONTENT_IMPLEMENTATION' \ 313 '-DV8_DEPRECATION_WARNINGS' \ 314 '-D_FILE_OFFSET_BITS=64' \ 315 '-DNO_TCMALLOC' \ 316 '-DDISABLE_NACL' \ 317 '-DCHROMIUM_BUILD' \ 318 '-DUSE_LIBJPEG_TURBO=1' \ 319 '-DUSE_PROPRIETARY_CODECS' \ 320 '-DENABLE_CONFIGURATION_POLICY' \ 321 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 322 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 323 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 324 '-DUSE_OPENSSL=1' \ 325 '-DENABLE_EGLIMAGE=1' \ 326 '-DCLD_VERSION=1' \ 327 '-DENABLE_PRINTING=1' \ 328 '-DENABLE_MANAGED_USERS=1' \ 329 '-DPOSIX_AVOID_MMAP' \ 330 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 331 '-DU_USING_ICU_NAMESPACE=0' \ 332 '-DMEDIA_DISABLE_LIBVPX' \ 333 '-DCHROME_PNG_WRITE_SUPPORT' \ 334 '-DPNG_USER_CONFIG' \ 335 '-DCHROME_PNG_READ_PACK_SUPPORT' \ 336 '-DUSE_SYSTEM_LIBJPEG' \ 337 '-DMESA_EGL_NO_X11_HEADERS' \ 338 '-DAPPCACHE_USE_SIMPLE_CACHE' \ 339 '-D__STDC_CONSTANT_MACROS' \ 340 '-D__STDC_FORMAT_MACROS' \ 341 '-DANDROID' \ 342 '-D__GNU_SOURCE=1' \ 343 '-DUSE_STLPORT=1' \ 344 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 345 '-DCHROME_BUILD_ID=""' \ 346 '-DNDEBUG' \ 347 '-DNVALGRIND' \ 348 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 349 '-D_FORTIFY_SOURCE=2' 350 351 352 # Include paths placed before CFLAGS/CPPFLAGS 353 LOCAL_C_INCLUDES_Release := \ 354 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 355 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 356 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 357 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 358 $(LOCAL_PATH) \ 359 $(LOCAL_PATH)/skia/config \ 360 $(LOCAL_PATH)/third_party/khronos \ 361 $(LOCAL_PATH)/gpu \ 362 $(LOCAL_PATH)/third_party/WebKit/Source \ 363 $(PWD)/external/skia/include \ 364 $(PWD)/external/skia/include/core \ 365 $(LOCAL_PATH)/third_party/skia/src/core \ 366 $(LOCAL_PATH)/skia/ext \ 367 $(PWD)/external/icu4c/common \ 368 $(PWD)/external/icu4c/i18n \ 369 $(gyp_shared_intermediate_dir)/content \ 370 $(LOCAL_PATH)/third_party/WebKit \ 371 $(LOCAL_PATH)/third_party/npapi \ 372 $(LOCAL_PATH)/third_party/npapi/bindings \ 373 $(LOCAL_PATH)/v8/include \ 374 $(LOCAL_PATH)/third_party/libpng \ 375 $(LOCAL_PATH)/third_party/zlib \ 376 $(LOCAL_PATH)/third_party/libwebp \ 377 $(LOCAL_PATH)/third_party/ots/include \ 378 $(LOCAL_PATH)/third_party/qcms/src \ 379 $(LOCAL_PATH)/third_party/iccjpeg \ 380 $(PWD)/external/jpeg \ 381 $(gyp_shared_intermediate_dir)/ui/gl \ 382 $(LOCAL_PATH)/third_party/mesa/src/include \ 383 $(PWD)/frameworks/wilhelm/include \ 384 $(PWD)/bionic \ 385 $(PWD)/external/stlport/stlport 386 387 388 # Flags passed to only C++ (and not C) files. 389 LOCAL_CPPFLAGS_Release := \ 390 -fno-rtti \ 391 -fno-threadsafe-statics \ 392 -fvisibility-inlines-hidden \ 393 -Wsign-compare \ 394 -Wno-abi \ 395 -Wno-error=c++0x-compat \ 396 -Wno-non-virtual-dtor \ 397 -Wno-sign-promo 398 399 400 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 401 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 402 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 403 ### Rules for final target. 404 405 LOCAL_LDFLAGS_Debug := \ 406 -Wl,-z,now \ 407 -Wl,-z,relro \ 408 -Wl,-z,noexecstack \ 409 -fPIC \ 410 -Wl,-z,relro \ 411 -Wl,-z,now \ 412 -fuse-ld=gold \ 413 -nostdlib \ 414 -Wl,--no-undefined \ 415 -Wl,--exclude-libs=ALL \ 416 -Wl,--icf=safe \ 417 -Wl,--fatal-warnings \ 418 -Wl,--gc-sections \ 419 -Wl,--warn-shared-textrel \ 420 -Wl,-O1 \ 421 -Wl,--as-needed 422 423 424 LOCAL_LDFLAGS_Release := \ 425 -Wl,-z,now \ 426 -Wl,-z,relro \ 427 -Wl,-z,noexecstack \ 428 -fPIC \ 429 -Wl,-z,relro \ 430 -Wl,-z,now \ 431 -fuse-ld=gold \ 432 -nostdlib \ 433 -Wl,--no-undefined \ 434 -Wl,--exclude-libs=ALL \ 435 -Wl,--icf=safe \ 436 -Wl,-O1 \ 437 -Wl,--as-needed \ 438 -Wl,--gc-sections \ 439 -Wl,--fatal-warnings \ 440 -Wl,--warn-shared-textrel 441 442 443 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 444 445 LOCAL_STATIC_LIBRARIES := \ 446 ui_ui_gyp \ 447 ui_gl_gl_gyp \ 448 webkit_glue_glue_gyp 449 450 # Enable grouping to fix circular references 451 LOCAL_GROUP_STATIC_LIBRARIES := true 452 453 LOCAL_SHARED_LIBRARIES := \ 454 libskia \ 455 libstlport \ 456 libdl 457 458 # Add target alias to "gyp_all_modules" target. 459 .PHONY: gyp_all_modules 460 gyp_all_modules: content_content_common_gyp 461 462 # Alias gyp target name. 463 .PHONY: content_common 464 content_common: content_content_common_gyp 465 466 include $(BUILD_STATIC_LIBRARY) 467