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 := android_webview_android_webview_common_gyp 7 LOCAL_MODULE_SUFFIX := .a 8 LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9 gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10 gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 11 12 # Make sure our deps are built first. 13 GYP_TARGET_DEPENDENCIES := \ 14 $(call intermediates-dir-for,STATIC_LIBRARIES,ui_accessibility_ax_gen_gyp,,,$(GYP_VAR_PREFIX))/ui_accessibility_ax_gen_gyp.a \ 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_gyp,,,$(GYP_VAR_PREFIX))/blink.stamp \ 18 $(call intermediates-dir-for,STATIC_LIBRARIES,ui_gl_gl_gyp,,,$(GYP_VAR_PREFIX))/ui_gl_gl_gyp.a \ 19 $(call intermediates-dir-for,GYP,android_webview_android_webview_pak_gyp,,,$(GYP_VAR_PREFIX))/android_webview_pak.stamp 20 21 GYP_GENERATED_OUTPUTS := 22 23 # Make sure our deps and generated files are built first. 24 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 25 26 LOCAL_CPP_EXTENSION := .cc 27 LOCAL_GENERATED_SOURCES := 28 29 GYP_COPIED_SOURCE_ORIGIN_DIRS := 30 31 LOCAL_SRC_FILES := \ 32 android_webview/browser/aw_browser_context.cc \ 33 android_webview/browser/aw_browser_main_parts.cc \ 34 android_webview/browser/aw_contents_client_bridge_base.cc \ 35 android_webview/browser/aw_content_browser_client.cc \ 36 android_webview/browser/aw_cookie_access_policy.cc \ 37 android_webview/browser/aw_dev_tools_manager_delegate.cc \ 38 android_webview/browser/aw_download_manager_delegate.cc \ 39 android_webview/browser/aw_form_database_service.cc \ 40 android_webview/browser/aw_gl_surface.cc \ 41 android_webview/browser/aw_http_auth_handler_base.cc \ 42 android_webview/browser/aw_javascript_dialog_manager.cc \ 43 android_webview/browser/aw_login_delegate.cc \ 44 android_webview/browser/aw_pref_store.cc \ 45 android_webview/browser/aw_quota_manager_bridge.cc \ 46 android_webview/browser/aw_quota_permission_context.cc \ 47 android_webview/browser/aw_request_interceptor.cc \ 48 android_webview/browser/aw_resource_context.cc \ 49 android_webview/browser/aw_ssl_host_state_delegate.cc \ 50 android_webview/browser/aw_web_preferences_populater.cc \ 51 android_webview/browser/aw_web_resource_response.cc \ 52 android_webview/browser/browser_view_renderer.cc \ 53 android_webview/browser/deferred_gpu_command_service.cc \ 54 android_webview/browser/find_helper.cc \ 55 android_webview/browser/global_tile_manager.cc \ 56 android_webview/browser/gpu_memory_buffer_factory_impl.cc \ 57 android_webview/browser/hardware_renderer.cc \ 58 android_webview/browser/icon_helper.cc \ 59 android_webview/browser/gl_view_renderer_manager.cc \ 60 android_webview/browser/net/android_stream_reader_url_request_job.cc \ 61 android_webview/browser/net/aw_network_delegate.cc \ 62 android_webview/browser/net/aw_url_request_context_getter.cc \ 63 android_webview/browser/net/aw_url_request_job_factory.cc \ 64 android_webview/browser/net_disk_cache_remover.cc \ 65 android_webview/browser/net/input_stream_reader.cc \ 66 android_webview/browser/parent_compositor_draw_constraints.cc \ 67 android_webview/browser/parent_output_surface.cc \ 68 android_webview/browser/renderer_host/aw_render_view_host_ext.cc \ 69 android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc \ 70 android_webview/browser/renderer_host/print_manager.cc \ 71 android_webview/browser/scoped_app_gl_state_restore.cc \ 72 android_webview/browser/shared_renderer_state.cc \ 73 android_webview/common/android_webview_message_generator.cc \ 74 android_webview/common/aw_content_client.cc \ 75 android_webview/common/aw_hit_test_data.cc \ 76 android_webview/common/aw_switches.cc \ 77 android_webview/common/print_messages.cc \ 78 android_webview/common/render_view_messages.cc \ 79 android_webview/common/url_constants.cc \ 80 android_webview/lib/aw_browser_dependency_factory_impl.cc \ 81 android_webview/lib/main/aw_main_delegate.cc \ 82 android_webview/renderer/aw_content_renderer_client.cc \ 83 android_webview/renderer/aw_key_systems.cc \ 84 android_webview/renderer/aw_permission_client.cc \ 85 android_webview/renderer/aw_render_process_observer.cc \ 86 android_webview/renderer/aw_render_frame_ext.cc \ 87 android_webview/renderer/aw_render_view_ext.cc \ 88 android_webview/renderer/print_web_view_helper.cc \ 89 android_webview/renderer/print_web_view_helper_android.cc \ 90 android_webview/renderer/print_render_frame_observer.cc 91 92 93 # Flags passed to both C and C++ files. 94 MY_CFLAGS_Debug := \ 95 -fstack-protector \ 96 --param=ssp-buffer-size=4 \ 97 \ 98 -fno-strict-aliasing \ 99 -Wall \ 100 -Wno-unused-parameter \ 101 -Wno-missing-field-initializers \ 102 -fvisibility=hidden \ 103 -pipe \ 104 -fPIC \ 105 -Wno-unused-local-typedefs \ 106 -ffunction-sections \ 107 -funwind-tables \ 108 -g \ 109 -fstack-protector \ 110 -fno-short-enums \ 111 -finline-limit=64 \ 112 -Wa,--noexecstack \ 113 -U_FORTIFY_SOURCE \ 114 -Wno-extra \ 115 -Wno-ignored-qualifiers \ 116 -Wno-type-limits \ 117 -Wno-unused-but-set-variable \ 118 -Os \ 119 -g \ 120 -gdwarf-4 \ 121 -fdata-sections \ 122 -ffunction-sections \ 123 -fomit-frame-pointer \ 124 -funwind-tables 125 126 MY_DEFS_Debug := \ 127 '-DV8_DEPRECATION_WARNINGS' \ 128 '-D_FILE_OFFSET_BITS=64' \ 129 '-DNO_TCMALLOC' \ 130 '-DDISABLE_NACL' \ 131 '-DCHROMIUM_BUILD' \ 132 '-DUSE_LIBJPEG_TURBO=1' \ 133 '-DENABLE_WEBRTC=1' \ 134 '-DUSE_PROPRIETARY_CODECS' \ 135 '-DENABLE_BROWSER_CDMS' \ 136 '-DENABLE_CONFIGURATION_POLICY' \ 137 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 138 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 139 '-DENABLE_EGLIMAGE=1' \ 140 '-DCLD_VERSION=1' \ 141 '-DENABLE_PRINTING=1' \ 142 '-DENABLE_MANAGED_USERS=1' \ 143 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 144 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 145 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 146 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 147 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 148 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 149 '-DVIDEO_HOLE=1' \ 150 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 151 '-DMOJO_USE_SYSTEM_IMPL' \ 152 '-DLIBPEERCONNECTION_LIB=1' \ 153 '-DAPPCACHE_USE_SIMPLE_CACHE' \ 154 '-DMEDIA_DISABLE_LIBVPX' \ 155 '-DSK_ENABLE_INST_COUNT=0' \ 156 '-DSK_SUPPORT_GPU=1' \ 157 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 158 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 159 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 160 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 161 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 162 '-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \ 163 '-DSK_BUILD_FOR_ANDROID' \ 164 '-DSK_USE_POSIX_THREADS' \ 165 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 166 '-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \ 167 '-DU_USING_ICU_NAMESPACE=0' \ 168 '-DU_ENABLE_DYLOAD=0' \ 169 '-DCHROME_PNG_WRITE_SUPPORT' \ 170 '-DPNG_USER_CONFIG' \ 171 '-DCHROME_PNG_READ_PACK_SUPPORT' \ 172 '-DMESA_EGL_NO_X11_HEADERS' \ 173 '-DUSE_OPENSSL=1' \ 174 '-DUSE_OPENSSL_CERTS=1' \ 175 '-D__STDC_CONSTANT_MACROS' \ 176 '-D__STDC_FORMAT_MACROS' \ 177 '-DANDROID' \ 178 '-D__GNU_SOURCE=1' \ 179 '-DUSE_STLPORT=1' \ 180 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 181 '-DCHROME_BUILD_ID=""' \ 182 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 183 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 184 '-D_DEBUG' 185 186 187 # Include paths placed before CFLAGS/CPPFLAGS 188 LOCAL_C_INCLUDES_Debug := \ 189 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 190 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 191 $(gyp_shared_intermediate_dir) \ 192 $(LOCAL_PATH) \ 193 $(LOCAL_PATH)/skia/config \ 194 $(gyp_shared_intermediate_dir)/ui/resources \ 195 $(LOCAL_PATH)/third_party/khronos \ 196 $(LOCAL_PATH)/gpu \ 197 $(LOCAL_PATH)/third_party/WebKit/Source \ 198 $(gyp_shared_intermediate_dir)/angle \ 199 $(LOCAL_PATH)/third_party/WebKit \ 200 $(LOCAL_PATH)/third_party/skia/src/core \ 201 $(LOCAL_PATH)/third_party/skia/include/core \ 202 $(LOCAL_PATH)/third_party/skia/include/effects \ 203 $(LOCAL_PATH)/third_party/skia/include/pdf \ 204 $(LOCAL_PATH)/third_party/skia/include/gpu \ 205 $(LOCAL_PATH)/third_party/skia/include/lazy \ 206 $(LOCAL_PATH)/third_party/skia/include/pathops \ 207 $(LOCAL_PATH)/third_party/skia/include/pipe \ 208 $(LOCAL_PATH)/third_party/skia/include/ports \ 209 $(LOCAL_PATH)/third_party/skia/include/utils \ 210 $(LOCAL_PATH)/skia/ext \ 211 $(LOCAL_PATH)/third_party/WebKit \ 212 $(PWD)/external/icu/icu4c/source/common \ 213 $(PWD)/external/icu/icu4c/source/i18n \ 214 $(LOCAL_PATH)/third_party/npapi \ 215 $(LOCAL_PATH)/third_party/npapi/bindings \ 216 $(LOCAL_PATH)/v8/include \ 217 $(LOCAL_PATH)/third_party/libpng \ 218 $(LOCAL_PATH)/third_party/zlib \ 219 $(LOCAL_PATH)/third_party/libwebp \ 220 $(LOCAL_PATH)/third_party/ots/include \ 221 $(LOCAL_PATH)/third_party/qcms/src \ 222 $(LOCAL_PATH)/third_party/iccjpeg \ 223 $(LOCAL_PATH)/third_party/libjpeg_turbo \ 224 $(gyp_shared_intermediate_dir)/ui/gl \ 225 $(LOCAL_PATH)/third_party/mesa/src/include \ 226 $(PWD)/frameworks/wilhelm/include \ 227 $(PWD)/bionic \ 228 $(PWD)/external/stlport/stlport 229 230 231 # Flags passed to only C++ (and not C) files. 232 LOCAL_CPPFLAGS_Debug := \ 233 -fno-exceptions \ 234 -fno-rtti \ 235 -fno-threadsafe-statics \ 236 -fvisibility-inlines-hidden \ 237 -Wsign-compare \ 238 -Wno-uninitialized \ 239 -std=gnu++11 \ 240 -Wno-narrowing \ 241 -Wno-literal-suffix \ 242 -Wno-non-virtual-dtor \ 243 -Wno-sign-promo 244 245 246 # Flags passed to both C and C++ files. 247 MY_CFLAGS_Release := \ 248 -fstack-protector \ 249 --param=ssp-buffer-size=4 \ 250 \ 251 -fno-strict-aliasing \ 252 -Wall \ 253 -Wno-unused-parameter \ 254 -Wno-missing-field-initializers \ 255 -fvisibility=hidden \ 256 -pipe \ 257 -fPIC \ 258 -Wno-unused-local-typedefs \ 259 -ffunction-sections \ 260 -funwind-tables \ 261 -g \ 262 -fstack-protector \ 263 -fno-short-enums \ 264 -finline-limit=64 \ 265 -Wa,--noexecstack \ 266 -U_FORTIFY_SOURCE \ 267 -Wno-extra \ 268 -Wno-ignored-qualifiers \ 269 -Wno-type-limits \ 270 -Wno-unused-but-set-variable \ 271 -Os \ 272 -fno-ident \ 273 -fdata-sections \ 274 -ffunction-sections \ 275 -fomit-frame-pointer \ 276 -funwind-tables 277 278 MY_DEFS_Release := \ 279 '-DV8_DEPRECATION_WARNINGS' \ 280 '-D_FILE_OFFSET_BITS=64' \ 281 '-DNO_TCMALLOC' \ 282 '-DDISABLE_NACL' \ 283 '-DCHROMIUM_BUILD' \ 284 '-DUSE_LIBJPEG_TURBO=1' \ 285 '-DENABLE_WEBRTC=1' \ 286 '-DUSE_PROPRIETARY_CODECS' \ 287 '-DENABLE_BROWSER_CDMS' \ 288 '-DENABLE_CONFIGURATION_POLICY' \ 289 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 290 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 291 '-DENABLE_EGLIMAGE=1' \ 292 '-DCLD_VERSION=1' \ 293 '-DENABLE_PRINTING=1' \ 294 '-DENABLE_MANAGED_USERS=1' \ 295 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 296 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 297 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 298 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 299 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 300 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 301 '-DVIDEO_HOLE=1' \ 302 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 303 '-DMOJO_USE_SYSTEM_IMPL' \ 304 '-DLIBPEERCONNECTION_LIB=1' \ 305 '-DAPPCACHE_USE_SIMPLE_CACHE' \ 306 '-DMEDIA_DISABLE_LIBVPX' \ 307 '-DSK_ENABLE_INST_COUNT=0' \ 308 '-DSK_SUPPORT_GPU=1' \ 309 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 310 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 311 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 312 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 313 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 314 '-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \ 315 '-DSK_BUILD_FOR_ANDROID' \ 316 '-DSK_USE_POSIX_THREADS' \ 317 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 318 '-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \ 319 '-DU_USING_ICU_NAMESPACE=0' \ 320 '-DU_ENABLE_DYLOAD=0' \ 321 '-DCHROME_PNG_WRITE_SUPPORT' \ 322 '-DPNG_USER_CONFIG' \ 323 '-DCHROME_PNG_READ_PACK_SUPPORT' \ 324 '-DMESA_EGL_NO_X11_HEADERS' \ 325 '-DUSE_OPENSSL=1' \ 326 '-DUSE_OPENSSL_CERTS=1' \ 327 '-D__STDC_CONSTANT_MACROS' \ 328 '-D__STDC_FORMAT_MACROS' \ 329 '-DANDROID' \ 330 '-D__GNU_SOURCE=1' \ 331 '-DUSE_STLPORT=1' \ 332 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 333 '-DCHROME_BUILD_ID=""' \ 334 '-DNDEBUG' \ 335 '-DNVALGRIND' \ 336 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 337 '-D_FORTIFY_SOURCE=2' 338 339 340 # Include paths placed before CFLAGS/CPPFLAGS 341 LOCAL_C_INCLUDES_Release := \ 342 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 343 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 344 $(gyp_shared_intermediate_dir) \ 345 $(LOCAL_PATH) \ 346 $(LOCAL_PATH)/skia/config \ 347 $(gyp_shared_intermediate_dir)/ui/resources \ 348 $(LOCAL_PATH)/third_party/khronos \ 349 $(LOCAL_PATH)/gpu \ 350 $(LOCAL_PATH)/third_party/WebKit/Source \ 351 $(gyp_shared_intermediate_dir)/angle \ 352 $(LOCAL_PATH)/third_party/WebKit \ 353 $(LOCAL_PATH)/third_party/skia/src/core \ 354 $(LOCAL_PATH)/third_party/skia/include/core \ 355 $(LOCAL_PATH)/third_party/skia/include/effects \ 356 $(LOCAL_PATH)/third_party/skia/include/pdf \ 357 $(LOCAL_PATH)/third_party/skia/include/gpu \ 358 $(LOCAL_PATH)/third_party/skia/include/lazy \ 359 $(LOCAL_PATH)/third_party/skia/include/pathops \ 360 $(LOCAL_PATH)/third_party/skia/include/pipe \ 361 $(LOCAL_PATH)/third_party/skia/include/ports \ 362 $(LOCAL_PATH)/third_party/skia/include/utils \ 363 $(LOCAL_PATH)/skia/ext \ 364 $(LOCAL_PATH)/third_party/WebKit \ 365 $(PWD)/external/icu/icu4c/source/common \ 366 $(PWD)/external/icu/icu4c/source/i18n \ 367 $(LOCAL_PATH)/third_party/npapi \ 368 $(LOCAL_PATH)/third_party/npapi/bindings \ 369 $(LOCAL_PATH)/v8/include \ 370 $(LOCAL_PATH)/third_party/libpng \ 371 $(LOCAL_PATH)/third_party/zlib \ 372 $(LOCAL_PATH)/third_party/libwebp \ 373 $(LOCAL_PATH)/third_party/ots/include \ 374 $(LOCAL_PATH)/third_party/qcms/src \ 375 $(LOCAL_PATH)/third_party/iccjpeg \ 376 $(LOCAL_PATH)/third_party/libjpeg_turbo \ 377 $(gyp_shared_intermediate_dir)/ui/gl \ 378 $(LOCAL_PATH)/third_party/mesa/src/include \ 379 $(PWD)/frameworks/wilhelm/include \ 380 $(PWD)/bionic \ 381 $(PWD)/external/stlport/stlport 382 383 384 # Flags passed to only C++ (and not C) files. 385 LOCAL_CPPFLAGS_Release := \ 386 -fno-exceptions \ 387 -fno-rtti \ 388 -fno-threadsafe-statics \ 389 -fvisibility-inlines-hidden \ 390 -Wsign-compare \ 391 -Wno-uninitialized \ 392 -std=gnu++11 \ 393 -Wno-narrowing \ 394 -Wno-literal-suffix \ 395 -Wno-non-virtual-dtor \ 396 -Wno-sign-promo 397 398 399 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 400 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 401 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 402 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 403 ### Rules for final target. 404 405 LOCAL_SHARED_LIBRARIES := \ 406 libstlport \ 407 libdl 408 409 # Add target alias to "gyp_all_modules" target. 410 .PHONY: gyp_all_modules 411 gyp_all_modules: android_webview_android_webview_common_gyp 412 413 # Alias gyp target name. 414 .PHONY: android_webview_common 415 android_webview_common: android_webview_android_webview_common_gyp 416 417 include $(BUILD_STATIC_LIBRARY) 418