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