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