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 --param=ssp-buffer-size=4 \ 83 -Werror \ 84 -fno-exceptions \ 85 -fno-strict-aliasing \ 86 -Wall \ 87 -Wno-unused-parameter \ 88 -Wno-missing-field-initializers \ 89 -fvisibility=hidden \ 90 -pipe \ 91 -fPIC \ 92 -Wno-unknown-pragmas \ 93 -m32 \ 94 -mmmx \ 95 -march=pentium4 \ 96 -msse2 \ 97 -mfpmath=sse \ 98 -fuse-ld=gold \ 99 -ffunction-sections \ 100 -funwind-tables \ 101 -g \ 102 -fno-short-enums \ 103 -finline-limit=64 \ 104 -Wa,--noexecstack \ 105 -U_FORTIFY_SOURCE \ 106 -Wno-extra \ 107 -Wno-ignored-qualifiers \ 108 -Wno-type-limits \ 109 -fno-stack-protector \ 110 -Os \ 111 -g \ 112 -fomit-frame-pointer \ 113 -fdata-sections \ 114 -ffunction-sections 115 116 MY_DEFS_Debug := \ 117 '-DV8_DEPRECATION_WARNINGS' \ 118 '-D_FILE_OFFSET_BITS=64' \ 119 '-DNO_TCMALLOC' \ 120 '-DDISABLE_NACL' \ 121 '-DCHROMIUM_BUILD' \ 122 '-DUSE_LIBJPEG_TURBO=1' \ 123 '-DUSE_PROPRIETARY_CODECS' \ 124 '-DENABLE_CONFIGURATION_POLICY' \ 125 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 126 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 127 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 128 '-DUSE_OPENSSL=1' \ 129 '-DENABLE_EGLIMAGE=1' \ 130 '-DCLD_VERSION=1' \ 131 '-DENABLE_PRINTING=1' \ 132 '-DENABLE_MANAGED_USERS=1' \ 133 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 134 '-DU_USING_ICU_NAMESPACE=0' \ 135 '-DCHROME_PNG_WRITE_SUPPORT' \ 136 '-DPNG_USER_CONFIG' \ 137 '-DCHROME_PNG_READ_PACK_SUPPORT' \ 138 '-DUSE_SYSTEM_LIBJPEG' \ 139 '-DMESA_EGL_NO_X11_HEADERS' \ 140 '-D__STDC_CONSTANT_MACROS' \ 141 '-D__STDC_FORMAT_MACROS' \ 142 '-DANDROID' \ 143 '-D__GNU_SOURCE=1' \ 144 '-DUSE_STLPORT=1' \ 145 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 146 '-DCHROME_BUILD_ID=""' \ 147 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 148 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 149 '-D_DEBUG' 150 151 152 # Include paths placed before CFLAGS/CPPFLAGS 153 LOCAL_C_INCLUDES_Debug := \ 154 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 155 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 156 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 157 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 158 $(LOCAL_PATH) \ 159 $(LOCAL_PATH)/skia/config \ 160 $(gyp_shared_intermediate_dir)/ui/ui_resources \ 161 $(LOCAL_PATH)/third_party/khronos \ 162 $(LOCAL_PATH)/gpu \ 163 $(LOCAL_PATH)/third_party/WebKit/Source \ 164 $(PWD)/external/skia/include \ 165 $(PWD)/external/skia/include/core \ 166 $(LOCAL_PATH)/third_party/skia/src/core \ 167 $(LOCAL_PATH)/skia/ext \ 168 $(LOCAL_PATH)/third_party/WebKit \ 169 $(PWD)/external/icu4c/common \ 170 $(PWD)/external/icu4c/i18n \ 171 $(LOCAL_PATH)/third_party/npapi \ 172 $(LOCAL_PATH)/third_party/npapi/bindings \ 173 $(LOCAL_PATH)/v8/include \ 174 $(LOCAL_PATH)/third_party/libpng \ 175 $(LOCAL_PATH)/third_party/zlib \ 176 $(LOCAL_PATH)/third_party/libwebp \ 177 $(LOCAL_PATH)/third_party/ots/include \ 178 $(LOCAL_PATH)/third_party/qcms/src \ 179 $(LOCAL_PATH)/third_party/iccjpeg \ 180 $(PWD)/external/jpeg \ 181 $(gyp_shared_intermediate_dir)/ui/gl \ 182 $(LOCAL_PATH)/third_party/mesa/src/include \ 183 $(PWD)/frameworks/wilhelm/include \ 184 $(PWD)/bionic \ 185 $(PWD)/external/stlport/stlport 186 187 188 # Flags passed to only C++ (and not C) files. 189 LOCAL_CPPFLAGS_Debug := \ 190 -fno-rtti \ 191 -fno-threadsafe-statics \ 192 -fvisibility-inlines-hidden \ 193 -Wsign-compare \ 194 -Wno-error=c++0x-compat \ 195 -Wno-non-virtual-dtor \ 196 -Wno-sign-promo 197 198 199 # Flags passed to both C and C++ files. 200 MY_CFLAGS_Release := \ 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 -m32 \ 213 -mmmx \ 214 -march=pentium4 \ 215 -msse2 \ 216 -mfpmath=sse \ 217 -fuse-ld=gold \ 218 -ffunction-sections \ 219 -funwind-tables \ 220 -g \ 221 -fno-short-enums \ 222 -finline-limit=64 \ 223 -Wa,--noexecstack \ 224 -U_FORTIFY_SOURCE \ 225 -Wno-extra \ 226 -Wno-ignored-qualifiers \ 227 -Wno-type-limits \ 228 -fno-stack-protector \ 229 -Os \ 230 -fno-ident \ 231 -fdata-sections \ 232 -ffunction-sections \ 233 -fomit-frame-pointer \ 234 -fno-unwind-tables \ 235 -fno-asynchronous-unwind-tables 236 237 MY_DEFS_Release := \ 238 '-DV8_DEPRECATION_WARNINGS' \ 239 '-D_FILE_OFFSET_BITS=64' \ 240 '-DNO_TCMALLOC' \ 241 '-DDISABLE_NACL' \ 242 '-DCHROMIUM_BUILD' \ 243 '-DUSE_LIBJPEG_TURBO=1' \ 244 '-DUSE_PROPRIETARY_CODECS' \ 245 '-DENABLE_CONFIGURATION_POLICY' \ 246 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 247 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 248 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 249 '-DUSE_OPENSSL=1' \ 250 '-DENABLE_EGLIMAGE=1' \ 251 '-DCLD_VERSION=1' \ 252 '-DENABLE_PRINTING=1' \ 253 '-DENABLE_MANAGED_USERS=1' \ 254 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 255 '-DU_USING_ICU_NAMESPACE=0' \ 256 '-DCHROME_PNG_WRITE_SUPPORT' \ 257 '-DPNG_USER_CONFIG' \ 258 '-DCHROME_PNG_READ_PACK_SUPPORT' \ 259 '-DUSE_SYSTEM_LIBJPEG' \ 260 '-DMESA_EGL_NO_X11_HEADERS' \ 261 '-D__STDC_CONSTANT_MACROS' \ 262 '-D__STDC_FORMAT_MACROS' \ 263 '-DANDROID' \ 264 '-D__GNU_SOURCE=1' \ 265 '-DUSE_STLPORT=1' \ 266 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 267 '-DCHROME_BUILD_ID=""' \ 268 '-DNDEBUG' \ 269 '-DNVALGRIND' \ 270 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 271 '-D_FORTIFY_SOURCE=2' 272 273 274 # Include paths placed before CFLAGS/CPPFLAGS 275 LOCAL_C_INCLUDES_Release := \ 276 $(gyp_shared_intermediate_dir)/shim_headers/skia_library/target \ 277 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 278 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 279 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 280 $(LOCAL_PATH) \ 281 $(LOCAL_PATH)/skia/config \ 282 $(gyp_shared_intermediate_dir)/ui/ui_resources \ 283 $(LOCAL_PATH)/third_party/khronos \ 284 $(LOCAL_PATH)/gpu \ 285 $(LOCAL_PATH)/third_party/WebKit/Source \ 286 $(PWD)/external/skia/include \ 287 $(PWD)/external/skia/include/core \ 288 $(LOCAL_PATH)/third_party/skia/src/core \ 289 $(LOCAL_PATH)/skia/ext \ 290 $(LOCAL_PATH)/third_party/WebKit \ 291 $(PWD)/external/icu4c/common \ 292 $(PWD)/external/icu4c/i18n \ 293 $(LOCAL_PATH)/third_party/npapi \ 294 $(LOCAL_PATH)/third_party/npapi/bindings \ 295 $(LOCAL_PATH)/v8/include \ 296 $(LOCAL_PATH)/third_party/libpng \ 297 $(LOCAL_PATH)/third_party/zlib \ 298 $(LOCAL_PATH)/third_party/libwebp \ 299 $(LOCAL_PATH)/third_party/ots/include \ 300 $(LOCAL_PATH)/third_party/qcms/src \ 301 $(LOCAL_PATH)/third_party/iccjpeg \ 302 $(PWD)/external/jpeg \ 303 $(gyp_shared_intermediate_dir)/ui/gl \ 304 $(LOCAL_PATH)/third_party/mesa/src/include \ 305 $(PWD)/frameworks/wilhelm/include \ 306 $(PWD)/bionic \ 307 $(PWD)/external/stlport/stlport 308 309 310 # Flags passed to only C++ (and not C) files. 311 LOCAL_CPPFLAGS_Release := \ 312 -fno-rtti \ 313 -fno-threadsafe-statics \ 314 -fvisibility-inlines-hidden \ 315 -Wsign-compare \ 316 -Wno-error=c++0x-compat \ 317 -Wno-non-virtual-dtor \ 318 -Wno-sign-promo 319 320 321 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 322 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 323 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 324 ### Rules for final target. 325 326 LOCAL_LDFLAGS_Debug := \ 327 -Wl,-z,now \ 328 -Wl,-z,relro \ 329 -Wl,-z,noexecstack \ 330 -fPIC \ 331 -m32 \ 332 -fuse-ld=gold \ 333 -nostdlib \ 334 -Wl,--no-undefined \ 335 -Wl,--exclude-libs=ALL \ 336 -Wl,--fatal-warnings \ 337 -Wl,--gc-sections \ 338 -Wl,--warn-shared-textrel \ 339 -Wl,-O1 \ 340 -Wl,--as-needed 341 342 343 LOCAL_LDFLAGS_Release := \ 344 -Wl,-z,now \ 345 -Wl,-z,relro \ 346 -Wl,-z,noexecstack \ 347 -fPIC \ 348 -m32 \ 349 -fuse-ld=gold \ 350 -nostdlib \ 351 -Wl,--no-undefined \ 352 -Wl,--exclude-libs=ALL \ 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