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 -Werror \ 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 -m64 \ 107 -march=x86-64 \ 108 -ffunction-sections \ 109 -funwind-tables \ 110 -g \ 111 -fstack-protector \ 112 -fno-short-enums \ 113 -finline-limit=64 \ 114 -Wa,--noexecstack \ 115 -U_FORTIFY_SOURCE \ 116 -Wno-extra \ 117 -Wno-ignored-qualifiers \ 118 -Wno-type-limits \ 119 -Wno-unused-but-set-variable \ 120 -Os \ 121 -g \ 122 -gdwarf-4 \ 123 -fdata-sections \ 124 -ffunction-sections \ 125 -fomit-frame-pointer \ 126 -funwind-tables 127 128 MY_DEFS_Debug := \ 129 '-DV8_DEPRECATION_WARNINGS' \ 130 '-D_FILE_OFFSET_BITS=64' \ 131 '-DNO_TCMALLOC' \ 132 '-DDISABLE_NACL' \ 133 '-DCHROMIUM_BUILD' \ 134 '-DUSE_LIBJPEG_TURBO=1' \ 135 '-DENABLE_WEBRTC=1' \ 136 '-DUSE_PROPRIETARY_CODECS' \ 137 '-DENABLE_BROWSER_CDMS' \ 138 '-DENABLE_CONFIGURATION_POLICY' \ 139 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 140 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 141 '-DENABLE_EGLIMAGE=1' \ 142 '-DCLD_VERSION=1' \ 143 '-DENABLE_PRINTING=1' \ 144 '-DENABLE_MANAGED_USERS=1' \ 145 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 146 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 147 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 148 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 149 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 150 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 151 '-DVIDEO_HOLE=1' \ 152 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 153 '-DMOJO_USE_SYSTEM_IMPL' \ 154 '-DLIBPEERCONNECTION_LIB=1' \ 155 '-DAPPCACHE_USE_SIMPLE_CACHE' \ 156 '-DMEDIA_DISABLE_LIBVPX' \ 157 '-DSK_ENABLE_INST_COUNT=0' \ 158 '-DSK_SUPPORT_GPU=1' \ 159 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 160 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 161 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 162 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 163 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 164 '-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \ 165 '-DSK_BUILD_FOR_ANDROID' \ 166 '-DSK_USE_POSIX_THREADS' \ 167 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 168 '-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \ 169 '-DU_USING_ICU_NAMESPACE=0' \ 170 '-DU_ENABLE_DYLOAD=0' \ 171 '-DCHROME_PNG_WRITE_SUPPORT' \ 172 '-DPNG_USER_CONFIG' \ 173 '-DCHROME_PNG_READ_PACK_SUPPORT' \ 174 '-DMESA_EGL_NO_X11_HEADERS' \ 175 '-DUSE_OPENSSL=1' \ 176 '-DUSE_OPENSSL_CERTS=1' \ 177 '-D__STDC_CONSTANT_MACROS' \ 178 '-D__STDC_FORMAT_MACROS' \ 179 '-DANDROID' \ 180 '-D__GNU_SOURCE=1' \ 181 '-DUSE_STLPORT=1' \ 182 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 183 '-DCHROME_BUILD_ID=""' \ 184 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 185 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 186 '-D_DEBUG' 187 188 189 # Include paths placed before CFLAGS/CPPFLAGS 190 LOCAL_C_INCLUDES_Debug := \ 191 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 192 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 193 $(gyp_shared_intermediate_dir) \ 194 $(LOCAL_PATH) \ 195 $(LOCAL_PATH)/skia/config \ 196 $(gyp_shared_intermediate_dir)/ui/resources \ 197 $(LOCAL_PATH)/third_party/khronos \ 198 $(LOCAL_PATH)/gpu \ 199 $(LOCAL_PATH)/third_party/WebKit/Source \ 200 $(gyp_shared_intermediate_dir)/angle \ 201 $(LOCAL_PATH)/third_party/WebKit \ 202 $(LOCAL_PATH)/third_party/skia/src/core \ 203 $(LOCAL_PATH)/third_party/skia/include/core \ 204 $(LOCAL_PATH)/third_party/skia/include/effects \ 205 $(LOCAL_PATH)/third_party/skia/include/pdf \ 206 $(LOCAL_PATH)/third_party/skia/include/gpu \ 207 $(LOCAL_PATH)/third_party/skia/include/lazy \ 208 $(LOCAL_PATH)/third_party/skia/include/pathops \ 209 $(LOCAL_PATH)/third_party/skia/include/pipe \ 210 $(LOCAL_PATH)/third_party/skia/include/ports \ 211 $(LOCAL_PATH)/third_party/skia/include/utils \ 212 $(LOCAL_PATH)/skia/ext \ 213 $(LOCAL_PATH)/third_party/WebKit \ 214 $(PWD)/external/icu/icu4c/source/common \ 215 $(PWD)/external/icu/icu4c/source/i18n \ 216 $(LOCAL_PATH)/third_party/npapi \ 217 $(LOCAL_PATH)/third_party/npapi/bindings \ 218 $(LOCAL_PATH)/v8/include \ 219 $(LOCAL_PATH)/third_party/libpng \ 220 $(LOCAL_PATH)/third_party/zlib \ 221 $(LOCAL_PATH)/third_party/libwebp \ 222 $(LOCAL_PATH)/third_party/ots/include \ 223 $(LOCAL_PATH)/third_party/qcms/src \ 224 $(LOCAL_PATH)/third_party/iccjpeg \ 225 $(LOCAL_PATH)/third_party/libjpeg_turbo \ 226 $(gyp_shared_intermediate_dir)/ui/gl \ 227 $(LOCAL_PATH)/third_party/mesa/src/include \ 228 $(PWD)/frameworks/wilhelm/include \ 229 $(PWD)/bionic \ 230 $(PWD)/external/stlport/stlport 231 232 233 # Flags passed to only C++ (and not C) files. 234 LOCAL_CPPFLAGS_Debug := \ 235 -fno-exceptions \ 236 -fno-rtti \ 237 -fno-threadsafe-statics \ 238 -fvisibility-inlines-hidden \ 239 -Wsign-compare \ 240 -std=gnu++11 \ 241 -Wno-narrowing \ 242 -Wno-literal-suffix \ 243 -Wno-non-virtual-dtor \ 244 -Wno-sign-promo 245 246 247 # Flags passed to both C and C++ files. 248 MY_CFLAGS_Release := \ 249 -fstack-protector \ 250 --param=ssp-buffer-size=4 \ 251 -Werror \ 252 -fno-strict-aliasing \ 253 -Wall \ 254 -Wno-unused-parameter \ 255 -Wno-missing-field-initializers \ 256 -fvisibility=hidden \ 257 -pipe \ 258 -fPIC \ 259 -Wno-unused-local-typedefs \ 260 -m64 \ 261 -march=x86-64 \ 262 -ffunction-sections \ 263 -funwind-tables \ 264 -g \ 265 -fstack-protector \ 266 -fno-short-enums \ 267 -finline-limit=64 \ 268 -Wa,--noexecstack \ 269 -U_FORTIFY_SOURCE \ 270 -Wno-extra \ 271 -Wno-ignored-qualifiers \ 272 -Wno-type-limits \ 273 -Wno-unused-but-set-variable \ 274 -Os \ 275 -fno-ident \ 276 -fdata-sections \ 277 -ffunction-sections \ 278 -fomit-frame-pointer \ 279 -funwind-tables 280 281 MY_DEFS_Release := \ 282 '-DV8_DEPRECATION_WARNINGS' \ 283 '-D_FILE_OFFSET_BITS=64' \ 284 '-DNO_TCMALLOC' \ 285 '-DDISABLE_NACL' \ 286 '-DCHROMIUM_BUILD' \ 287 '-DUSE_LIBJPEG_TURBO=1' \ 288 '-DENABLE_WEBRTC=1' \ 289 '-DUSE_PROPRIETARY_CODECS' \ 290 '-DENABLE_BROWSER_CDMS' \ 291 '-DENABLE_CONFIGURATION_POLICY' \ 292 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 293 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 294 '-DENABLE_EGLIMAGE=1' \ 295 '-DCLD_VERSION=1' \ 296 '-DENABLE_PRINTING=1' \ 297 '-DENABLE_MANAGED_USERS=1' \ 298 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 299 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 300 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 301 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 302 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 303 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 304 '-DVIDEO_HOLE=1' \ 305 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 306 '-DMOJO_USE_SYSTEM_IMPL' \ 307 '-DLIBPEERCONNECTION_LIB=1' \ 308 '-DAPPCACHE_USE_SIMPLE_CACHE' \ 309 '-DMEDIA_DISABLE_LIBVPX' \ 310 '-DSK_ENABLE_INST_COUNT=0' \ 311 '-DSK_SUPPORT_GPU=1' \ 312 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 313 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 314 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 315 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 316 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 317 '-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \ 318 '-DSK_BUILD_FOR_ANDROID' \ 319 '-DSK_USE_POSIX_THREADS' \ 320 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 321 '-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \ 322 '-DU_USING_ICU_NAMESPACE=0' \ 323 '-DU_ENABLE_DYLOAD=0' \ 324 '-DCHROME_PNG_WRITE_SUPPORT' \ 325 '-DPNG_USER_CONFIG' \ 326 '-DCHROME_PNG_READ_PACK_SUPPORT' \ 327 '-DMESA_EGL_NO_X11_HEADERS' \ 328 '-DUSE_OPENSSL=1' \ 329 '-DUSE_OPENSSL_CERTS=1' \ 330 '-D__STDC_CONSTANT_MACROS' \ 331 '-D__STDC_FORMAT_MACROS' \ 332 '-DANDROID' \ 333 '-D__GNU_SOURCE=1' \ 334 '-DUSE_STLPORT=1' \ 335 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 336 '-DCHROME_BUILD_ID=""' \ 337 '-DNDEBUG' \ 338 '-DNVALGRIND' \ 339 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 340 '-D_FORTIFY_SOURCE=2' 341 342 343 # Include paths placed before CFLAGS/CPPFLAGS 344 LOCAL_C_INCLUDES_Release := \ 345 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 346 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 347 $(gyp_shared_intermediate_dir) \ 348 $(LOCAL_PATH) \ 349 $(LOCAL_PATH)/skia/config \ 350 $(gyp_shared_intermediate_dir)/ui/resources \ 351 $(LOCAL_PATH)/third_party/khronos \ 352 $(LOCAL_PATH)/gpu \ 353 $(LOCAL_PATH)/third_party/WebKit/Source \ 354 $(gyp_shared_intermediate_dir)/angle \ 355 $(LOCAL_PATH)/third_party/WebKit \ 356 $(LOCAL_PATH)/third_party/skia/src/core \ 357 $(LOCAL_PATH)/third_party/skia/include/core \ 358 $(LOCAL_PATH)/third_party/skia/include/effects \ 359 $(LOCAL_PATH)/third_party/skia/include/pdf \ 360 $(LOCAL_PATH)/third_party/skia/include/gpu \ 361 $(LOCAL_PATH)/third_party/skia/include/lazy \ 362 $(LOCAL_PATH)/third_party/skia/include/pathops \ 363 $(LOCAL_PATH)/third_party/skia/include/pipe \ 364 $(LOCAL_PATH)/third_party/skia/include/ports \ 365 $(LOCAL_PATH)/third_party/skia/include/utils \ 366 $(LOCAL_PATH)/skia/ext \ 367 $(LOCAL_PATH)/third_party/WebKit \ 368 $(PWD)/external/icu/icu4c/source/common \ 369 $(PWD)/external/icu/icu4c/source/i18n \ 370 $(LOCAL_PATH)/third_party/npapi \ 371 $(LOCAL_PATH)/third_party/npapi/bindings \ 372 $(LOCAL_PATH)/v8/include \ 373 $(LOCAL_PATH)/third_party/libpng \ 374 $(LOCAL_PATH)/third_party/zlib \ 375 $(LOCAL_PATH)/third_party/libwebp \ 376 $(LOCAL_PATH)/third_party/ots/include \ 377 $(LOCAL_PATH)/third_party/qcms/src \ 378 $(LOCAL_PATH)/third_party/iccjpeg \ 379 $(LOCAL_PATH)/third_party/libjpeg_turbo \ 380 $(gyp_shared_intermediate_dir)/ui/gl \ 381 $(LOCAL_PATH)/third_party/mesa/src/include \ 382 $(PWD)/frameworks/wilhelm/include \ 383 $(PWD)/bionic \ 384 $(PWD)/external/stlport/stlport 385 386 387 # Flags passed to only C++ (and not C) files. 388 LOCAL_CPPFLAGS_Release := \ 389 -fno-exceptions \ 390 -fno-rtti \ 391 -fno-threadsafe-statics \ 392 -fvisibility-inlines-hidden \ 393 -Wsign-compare \ 394 -std=gnu++11 \ 395 -Wno-narrowing \ 396 -Wno-literal-suffix \ 397 -Wno-non-virtual-dtor \ 398 -Wno-sign-promo 399 400 401 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 402 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 403 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 404 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 405 ### Rules for final target. 406 407 LOCAL_SHARED_LIBRARIES := \ 408 libstlport \ 409 libdl 410 411 # Add target alias to "gyp_all_modules" target. 412 .PHONY: gyp_all_modules 413 gyp_all_modules: android_webview_android_webview_common_gyp 414 415 # Alias gyp target name. 416 .PHONY: android_webview_common 417 android_webview_common: android_webview_android_webview_common_gyp 418 419 include $(BUILD_STATIC_LIBRARY) 420