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