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_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_WebKit_public_blink_gyp)/blink.stamp \ 16 $(call intermediates-dir-for,STATIC_LIBRARIES,ui_gl_gl_gyp)/ui_gl_gl_gyp.a \ 17 $(call intermediates-dir-for,GYP,android_webview_android_webview_pak_gyp)/android_webview_pak.stamp 18 19 GYP_GENERATED_OUTPUTS := 20 21 # Make sure our deps and generated files are built first. 22 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 23 24 LOCAL_CPP_EXTENSION := .cc 25 LOCAL_GENERATED_SOURCES := 26 27 GYP_COPIED_SOURCE_ORIGIN_DIRS := 28 29 LOCAL_SRC_FILES := \ 30 android_webview/browser/aw_browser_context.cc \ 31 android_webview/browser/aw_browser_main_parts.cc \ 32 android_webview/browser/aw_contents_client_bridge_base.cc \ 33 android_webview/browser/aw_content_browser_client.cc \ 34 android_webview/browser/aw_cookie_access_policy.cc \ 35 android_webview/browser/aw_download_manager_delegate.cc \ 36 android_webview/browser/aw_form_database_service.cc \ 37 android_webview/browser/aw_gl_surface.cc \ 38 android_webview/browser/aw_http_auth_handler_base.cc \ 39 android_webview/browser/aw_javascript_dialog_manager.cc \ 40 android_webview/browser/aw_login_delegate.cc \ 41 android_webview/browser/aw_pref_store.cc \ 42 android_webview/browser/aw_quota_manager_bridge.cc \ 43 android_webview/browser/aw_quota_permission_context.cc \ 44 android_webview/browser/aw_request_interceptor.cc \ 45 android_webview/browser/aw_resource_context.cc \ 46 android_webview/browser/aw_web_preferences_populater.cc \ 47 android_webview/browser/find_helper.cc \ 48 android_webview/browser/gpu_memory_buffer_factory_impl.cc \ 49 android_webview/browser/icon_helper.cc \ 50 android_webview/browser/in_process_view_renderer.cc \ 51 android_webview/browser/intercepted_request_data.cc \ 52 android_webview/browser/gl_view_renderer_manager.cc \ 53 android_webview/browser/net/android_stream_reader_url_request_job.cc \ 54 android_webview/browser/net/aw_network_delegate.cc \ 55 android_webview/browser/net/aw_url_request_context_getter.cc \ 56 android_webview/browser/net/aw_url_request_job_factory.cc \ 57 android_webview/browser/net_disk_cache_remover.cc \ 58 android_webview/browser/net/input_stream_reader.cc \ 59 android_webview/browser/renderer_host/aw_render_view_host_ext.cc \ 60 android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.cc \ 61 android_webview/browser/renderer_host/print_manager.cc \ 62 android_webview/browser/scoped_app_gl_state_restore.cc \ 63 android_webview/common/android_webview_message_generator.cc \ 64 android_webview/common/aw_content_client.cc \ 65 android_webview/common/aw_hit_test_data.cc \ 66 android_webview/common/aw_switches.cc \ 67 android_webview/common/print_messages.cc \ 68 android_webview/common/render_view_messages.cc \ 69 android_webview/common/url_constants.cc \ 70 android_webview/lib/aw_browser_dependency_factory_impl.cc \ 71 android_webview/lib/main/aw_main_delegate.cc \ 72 android_webview/renderer/aw_content_renderer_client.cc \ 73 android_webview/renderer/aw_key_systems.cc \ 74 android_webview/renderer/aw_render_process_observer.cc \ 75 android_webview/renderer/aw_render_view_ext.cc \ 76 android_webview/renderer/print_web_view_helper.cc \ 77 android_webview/renderer/print_web_view_helper_android.cc 78 79 80 # Flags passed to both C and C++ files. 81 MY_CFLAGS_Debug := \ 82 -fstack-protector \ 83 --param=ssp-buffer-size=4 \ 84 -Werror \ 85 -fno-exceptions \ 86 -fno-strict-aliasing \ 87 -Wall \ 88 -Wno-unused-parameter \ 89 -Wno-missing-field-initializers \ 90 -fvisibility=hidden \ 91 -pipe \ 92 -fPIC \ 93 -Wno-unknown-pragmas \ 94 -fno-tree-sra \ 95 -fuse-ld=gold \ 96 -Wno-psabi \ 97 -ffunction-sections \ 98 -funwind-tables \ 99 -g \ 100 -fstack-protector \ 101 -fno-short-enums \ 102 -finline-limit=64 \ 103 -Wa,--noexecstack \ 104 -U_FORTIFY_SOURCE \ 105 -Wno-extra \ 106 -Wno-ignored-qualifiers \ 107 -Wno-type-limits \ 108 -Os \ 109 -g \ 110 -fomit-frame-pointer \ 111 -fdata-sections \ 112 -ffunction-sections 113 114 MY_DEFS_Debug := \ 115 '-DV8_DEPRECATION_WARNINGS' \ 116 '-D_FILE_OFFSET_BITS=64' \ 117 '-DNO_TCMALLOC' \ 118 '-DDISABLE_NACL' \ 119 '-DCHROMIUM_BUILD' \ 120 '-DUSE_LIBJPEG_TURBO=1' \ 121 '-DUSE_PROPRIETARY_CODECS' \ 122 '-DENABLE_CONFIGURATION_POLICY' \ 123 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 124 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 125 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 126 '-DUSE_OPENSSL=1' \ 127 '-DENABLE_EGLIMAGE=1' \ 128 '-DCLD_VERSION=1' \ 129 '-DENABLE_PRINTING=1' \ 130 '-DENABLE_MANAGED_USERS=1' \ 131 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 132 '-DU_USING_ICU_NAMESPACE=0' \ 133 '-DCHROME_PNG_WRITE_SUPPORT' \ 134 '-DPNG_USER_CONFIG' \ 135 '-DCHROME_PNG_READ_PACK_SUPPORT' \ 136 '-DUSE_SYSTEM_LIBJPEG' \ 137 '-DMESA_EGL_NO_X11_HEADERS' \ 138 '-D__STDC_CONSTANT_MACROS' \ 139 '-D__STDC_FORMAT_MACROS' \ 140 '-DANDROID' \ 141 '-D__GNU_SOURCE=1' \ 142 '-DUSE_STLPORT=1' \ 143 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 144 '-DCHROME_BUILD_ID=""' \ 145 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 146 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 147 '-D_DEBUG' 148 149 150 # Include paths placed before CFLAGS/CPPFLAGS 151 LOCAL_C_INCLUDES_Debug := \ 152 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 153 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 154 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 155 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 156 $(LOCAL_PATH) \ 157 $(LOCAL_PATH)/skia/config \ 158 $(gyp_shared_intermediate_dir)/ui/ui_resources \ 159 $(LOCAL_PATH)/third_party/khronos \ 160 $(LOCAL_PATH)/gpu \ 161 $(LOCAL_PATH)/third_party/WebKit/Source \ 162 $(PWD)/external/skia/include \ 163 $(PWD)/external/skia/include/core \ 164 $(LOCAL_PATH)/third_party/skia/src/core \ 165 $(LOCAL_PATH)/skia/ext \ 166 $(LOCAL_PATH)/third_party/WebKit \ 167 $(PWD)/external/icu4c/common \ 168 $(PWD)/external/icu4c/i18n \ 169 $(LOCAL_PATH)/third_party/npapi \ 170 $(LOCAL_PATH)/third_party/npapi/bindings \ 171 $(LOCAL_PATH)/v8/include \ 172 $(LOCAL_PATH)/third_party/libpng \ 173 $(LOCAL_PATH)/third_party/zlib \ 174 $(LOCAL_PATH)/third_party/libwebp \ 175 $(LOCAL_PATH)/third_party/ots/include \ 176 $(LOCAL_PATH)/third_party/qcms/src \ 177 $(LOCAL_PATH)/third_party/iccjpeg \ 178 $(PWD)/external/jpeg \ 179 $(gyp_shared_intermediate_dir)/ui/gl \ 180 $(LOCAL_PATH)/third_party/mesa/src/include \ 181 $(PWD)/frameworks/wilhelm/include \ 182 $(PWD)/bionic \ 183 $(PWD)/external/stlport/stlport 184 185 186 # Flags passed to only C++ (and not C) files. 187 LOCAL_CPPFLAGS_Debug := \ 188 -fno-rtti \ 189 -fno-threadsafe-statics \ 190 -fvisibility-inlines-hidden \ 191 -Wsign-compare \ 192 -Wno-abi \ 193 -Wno-error=c++0x-compat \ 194 -Wno-non-virtual-dtor \ 195 -Wno-sign-promo 196 197 198 # Flags passed to both C and C++ files. 199 MY_CFLAGS_Release := \ 200 -fstack-protector \ 201 --param=ssp-buffer-size=4 \ 202 -Werror \ 203 -fno-exceptions \ 204 -fno-strict-aliasing \ 205 -Wall \ 206 -Wno-unused-parameter \ 207 -Wno-missing-field-initializers \ 208 -fvisibility=hidden \ 209 -pipe \ 210 -fPIC \ 211 -Wno-unknown-pragmas \ 212 -fno-tree-sra \ 213 -fuse-ld=gold \ 214 -Wno-psabi \ 215 -ffunction-sections \ 216 -funwind-tables \ 217 -g \ 218 -fstack-protector \ 219 -fno-short-enums \ 220 -finline-limit=64 \ 221 -Wa,--noexecstack \ 222 -U_FORTIFY_SOURCE \ 223 -Wno-extra \ 224 -Wno-ignored-qualifiers \ 225 -Wno-type-limits \ 226 -Os \ 227 -fno-ident \ 228 -fdata-sections \ 229 -ffunction-sections \ 230 -fomit-frame-pointer 231 232 MY_DEFS_Release := \ 233 '-DV8_DEPRECATION_WARNINGS' \ 234 '-D_FILE_OFFSET_BITS=64' \ 235 '-DNO_TCMALLOC' \ 236 '-DDISABLE_NACL' \ 237 '-DCHROMIUM_BUILD' \ 238 '-DUSE_LIBJPEG_TURBO=1' \ 239 '-DUSE_PROPRIETARY_CODECS' \ 240 '-DENABLE_CONFIGURATION_POLICY' \ 241 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 242 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 243 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 244 '-DUSE_OPENSSL=1' \ 245 '-DENABLE_EGLIMAGE=1' \ 246 '-DCLD_VERSION=1' \ 247 '-DENABLE_PRINTING=1' \ 248 '-DENABLE_MANAGED_USERS=1' \ 249 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 250 '-DU_USING_ICU_NAMESPACE=0' \ 251 '-DCHROME_PNG_WRITE_SUPPORT' \ 252 '-DPNG_USER_CONFIG' \ 253 '-DCHROME_PNG_READ_PACK_SUPPORT' \ 254 '-DUSE_SYSTEM_LIBJPEG' \ 255 '-DMESA_EGL_NO_X11_HEADERS' \ 256 '-D__STDC_CONSTANT_MACROS' \ 257 '-D__STDC_FORMAT_MACROS' \ 258 '-DANDROID' \ 259 '-D__GNU_SOURCE=1' \ 260 '-DUSE_STLPORT=1' \ 261 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 262 '-DCHROME_BUILD_ID=""' \ 263 '-DNDEBUG' \ 264 '-DNVALGRIND' \ 265 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 266 '-D_FORTIFY_SOURCE=2' 267 268 269 # Include paths placed before CFLAGS/CPPFLAGS 270 LOCAL_C_INCLUDES_Release := \ 271 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 272 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 273 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 274 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 275 $(LOCAL_PATH) \ 276 $(LOCAL_PATH)/skia/config \ 277 $(gyp_shared_intermediate_dir)/ui/ui_resources \ 278 $(LOCAL_PATH)/third_party/khronos \ 279 $(LOCAL_PATH)/gpu \ 280 $(LOCAL_PATH)/third_party/WebKit/Source \ 281 $(PWD)/external/skia/include \ 282 $(PWD)/external/skia/include/core \ 283 $(LOCAL_PATH)/third_party/skia/src/core \ 284 $(LOCAL_PATH)/skia/ext \ 285 $(LOCAL_PATH)/third_party/WebKit \ 286 $(PWD)/external/icu4c/common \ 287 $(PWD)/external/icu4c/i18n \ 288 $(LOCAL_PATH)/third_party/npapi \ 289 $(LOCAL_PATH)/third_party/npapi/bindings \ 290 $(LOCAL_PATH)/v8/include \ 291 $(LOCAL_PATH)/third_party/libpng \ 292 $(LOCAL_PATH)/third_party/zlib \ 293 $(LOCAL_PATH)/third_party/libwebp \ 294 $(LOCAL_PATH)/third_party/ots/include \ 295 $(LOCAL_PATH)/third_party/qcms/src \ 296 $(LOCAL_PATH)/third_party/iccjpeg \ 297 $(PWD)/external/jpeg \ 298 $(gyp_shared_intermediate_dir)/ui/gl \ 299 $(LOCAL_PATH)/third_party/mesa/src/include \ 300 $(PWD)/frameworks/wilhelm/include \ 301 $(PWD)/bionic \ 302 $(PWD)/external/stlport/stlport 303 304 305 # Flags passed to only C++ (and not C) files. 306 LOCAL_CPPFLAGS_Release := \ 307 -fno-rtti \ 308 -fno-threadsafe-statics \ 309 -fvisibility-inlines-hidden \ 310 -Wsign-compare \ 311 -Wno-abi \ 312 -Wno-error=c++0x-compat \ 313 -Wno-non-virtual-dtor \ 314 -Wno-sign-promo 315 316 317 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 318 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 319 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 320 ### Rules for final target. 321 322 LOCAL_LDFLAGS_Debug := \ 323 -Wl,-z,now \ 324 -Wl,-z,relro \ 325 -Wl,-z,noexecstack \ 326 -fPIC \ 327 -Wl,-z,relro \ 328 -Wl,-z,now \ 329 -fuse-ld=gold \ 330 -nostdlib \ 331 -Wl,--no-undefined \ 332 -Wl,--exclude-libs=ALL \ 333 -Wl,--icf=safe \ 334 -Wl,--fatal-warnings \ 335 -Wl,--gc-sections \ 336 -Wl,--warn-shared-textrel \ 337 -Wl,-O1 \ 338 -Wl,--as-needed 339 340 341 LOCAL_LDFLAGS_Release := \ 342 -Wl,-z,now \ 343 -Wl,-z,relro \ 344 -Wl,-z,noexecstack \ 345 -fPIC \ 346 -Wl,-z,relro \ 347 -Wl,-z,now \ 348 -fuse-ld=gold \ 349 -nostdlib \ 350 -Wl,--no-undefined \ 351 -Wl,--exclude-libs=ALL \ 352 -Wl,--icf=safe \ 353 -Wl,-O1 \ 354 -Wl,--as-needed \ 355 -Wl,--gc-sections \ 356 -Wl,--fatal-warnings \ 357 -Wl,--warn-shared-textrel 358 359 360 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 361 362 LOCAL_STATIC_LIBRARIES := \ 363 ui_gl_gl_gyp 364 365 # Enable grouping to fix circular references 366 LOCAL_GROUP_STATIC_LIBRARIES := true 367 368 LOCAL_SHARED_LIBRARIES := \ 369 libskia \ 370 libstlport \ 371 libdl 372 373 # Add target alias to "gyp_all_modules" target. 374 .PHONY: gyp_all_modules 375 gyp_all_modules: android_webview_android_webview_common_gyp 376 377 # Alias gyp target name. 378 .PHONY: android_webview_common 379 android_webview_common: android_webview_android_webview_common_gyp 380 381 include $(BUILD_STATIC_LIBRARY) 382