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 := storage_storage_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,GYP,third_party_WebKit_public_blink_gyp,,,$(GYP_VAR_PREFIX))/blink.stamp \ 15 $(call intermediates-dir-for,STATIC_LIBRARIES,skia_skia_library_gyp,,,$(GYP_VAR_PREFIX))/skia_skia_library_gyp.a 16 17 GYP_GENERATED_OUTPUTS := 18 19 # Make sure our deps and generated files are built first. 20 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 21 22 LOCAL_CPP_EXTENSION := .cc 23 LOCAL_GENERATED_SOURCES := 24 25 GYP_COPIED_SOURCE_ORIGIN_DIRS := 26 27 LOCAL_SRC_FILES := \ 28 storage/browser/blob/blob_data_handle.cc \ 29 storage/browser/blob/blob_storage_context.cc \ 30 storage/browser/blob/blob_url_request_job.cc \ 31 storage/browser/blob/blob_url_request_job_factory.cc \ 32 storage/browser/blob/file_stream_reader.cc \ 33 storage/browser/blob/local_file_stream_reader.cc \ 34 storage/browser/blob/view_blob_internals_job.cc \ 35 storage/browser/database/database_quota_client.cc \ 36 storage/browser/database/database_tracker.cc \ 37 storage/browser/database/database_util.cc \ 38 storage/browser/database/databases_table.cc \ 39 storage/browser/database/vfs_backend.cc \ 40 storage/browser/fileapi/async_file_util_adapter.cc \ 41 storage/browser/fileapi/copy_or_move_operation_delegate.cc \ 42 storage/browser/fileapi/dragged_file_util.cc \ 43 storage/browser/fileapi/external_mount_points.cc \ 44 storage/browser/fileapi/file_system_context.cc \ 45 storage/browser/fileapi/file_system_dir_url_request_job.cc \ 46 storage/browser/fileapi/file_system_file_stream_reader.cc \ 47 storage/browser/fileapi/file_system_file_util.cc \ 48 storage/browser/fileapi/file_system_operation_context.cc \ 49 storage/browser/fileapi/file_system_operation_impl.cc \ 50 storage/browser/fileapi/file_system_operation_runner.cc \ 51 storage/browser/fileapi/file_system_options.cc \ 52 storage/browser/fileapi/file_system_quota_client.cc \ 53 storage/browser/fileapi/file_system_url.cc \ 54 storage/browser/fileapi/file_system_url_request_job.cc \ 55 storage/browser/fileapi/file_system_url_request_job_factory.cc \ 56 storage/browser/fileapi/file_system_usage_cache.cc \ 57 storage/browser/fileapi/file_writer_delegate.cc \ 58 storage/browser/fileapi/isolated_context.cc \ 59 storage/browser/fileapi/isolated_file_system_backend.cc \ 60 storage/browser/fileapi/local_file_stream_writer.cc \ 61 storage/browser/fileapi/local_file_util.cc \ 62 storage/browser/fileapi/mount_points.cc \ 63 storage/browser/fileapi/native_file_util.cc \ 64 storage/browser/fileapi/obfuscated_file_util.cc \ 65 storage/browser/fileapi/plugin_private_file_system_backend.cc \ 66 storage/browser/fileapi/quota/open_file_handle.cc \ 67 storage/browser/fileapi/quota/open_file_handle_context.cc \ 68 storage/browser/fileapi/quota/quota_backend_impl.cc \ 69 storage/browser/fileapi/quota/quota_reservation.cc \ 70 storage/browser/fileapi/quota/quota_reservation_buffer.cc \ 71 storage/browser/fileapi/quota/quota_reservation_manager.cc \ 72 storage/browser/fileapi/recursive_operation_delegate.cc \ 73 storage/browser/fileapi/remove_operation_delegate.cc \ 74 storage/browser/fileapi/sandbox_directory_database.cc \ 75 storage/browser/fileapi/sandbox_file_stream_writer.cc \ 76 storage/browser/fileapi/sandbox_file_system_backend.cc \ 77 storage/browser/fileapi/sandbox_file_system_backend_delegate.cc \ 78 storage/browser/fileapi/sandbox_isolated_origin_database.cc \ 79 storage/browser/fileapi/sandbox_origin_database.cc \ 80 storage/browser/fileapi/sandbox_origin_database_interface.cc \ 81 storage/browser/fileapi/sandbox_prioritized_origin_database.cc \ 82 storage/browser/fileapi/sandbox_quota_observer.cc \ 83 storage/browser/fileapi/timed_task_helper.cc \ 84 storage/browser/fileapi/transient_file_util.cc \ 85 storage/browser/quota/quota_database.cc \ 86 storage/browser/quota/quota_manager.cc \ 87 storage/browser/quota/quota_manager_proxy.cc \ 88 storage/browser/quota/quota_task.cc \ 89 storage/browser/quota/quota_temporary_storage_evictor.cc \ 90 storage/browser/quota/special_storage_policy.cc \ 91 storage/browser/quota/storage_monitor.cc \ 92 storage/browser/quota/storage_observer.cc \ 93 storage/browser/quota/usage_tracker.cc 94 95 96 # Flags passed to both C and C++ files. 97 MY_CFLAGS_Debug := \ 98 -fstack-protector \ 99 --param=ssp-buffer-size=4 \ 100 \ 101 -fno-strict-aliasing \ 102 -Wall \ 103 -Wno-unused-parameter \ 104 -Wno-missing-field-initializers \ 105 -fvisibility=hidden \ 106 -pipe \ 107 -fPIC \ 108 -Wno-unused-local-typedefs \ 109 -ffunction-sections \ 110 -funwind-tables \ 111 -g \ 112 -fstack-protector \ 113 -fno-short-enums \ 114 -finline-limit=64 \ 115 -Wa,--noexecstack \ 116 -U_FORTIFY_SOURCE \ 117 -Wno-extra \ 118 -Wno-ignored-qualifiers \ 119 -Wno-type-limits \ 120 -Wno-unused-but-set-variable \ 121 -Os \ 122 -g \ 123 -gdwarf-4 \ 124 -fdata-sections \ 125 -ffunction-sections \ 126 -fomit-frame-pointer \ 127 -funwind-tables 128 129 MY_DEFS_Debug := \ 130 '-DV8_DEPRECATION_WARNINGS' \ 131 '-D_FILE_OFFSET_BITS=64' \ 132 '-DNO_TCMALLOC' \ 133 '-DDISABLE_NACL' \ 134 '-DCHROMIUM_BUILD' \ 135 '-DUSE_LIBJPEG_TURBO=1' \ 136 '-DENABLE_WEBRTC=1' \ 137 '-DUSE_PROPRIETARY_CODECS' \ 138 '-DENABLE_BROWSER_CDMS' \ 139 '-DENABLE_CONFIGURATION_POLICY' \ 140 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 141 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 142 '-DENABLE_EGLIMAGE=1' \ 143 '-DCLD_VERSION=1' \ 144 '-DENABLE_PRINTING=1' \ 145 '-DENABLE_MANAGED_USERS=1' \ 146 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 147 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 148 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 149 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 150 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 151 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 152 '-DVIDEO_HOLE=1' \ 153 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 154 '-DSTORAGE_BROWSER_IMPLEMENTATION' \ 155 '-DPOSIX_AVOID_MMAP' \ 156 '-DSK_ENABLE_INST_COUNT=0' \ 157 '-DSK_SUPPORT_GPU=1' \ 158 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 159 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 160 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 161 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 162 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 163 '-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \ 164 '-DSK_BUILD_FOR_ANDROID' \ 165 '-DSK_USE_POSIX_THREADS' \ 166 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 167 '-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \ 168 '-DU_USING_ICU_NAMESPACE=0' \ 169 '-DU_ENABLE_DYLOAD=0' \ 170 '-DCHROME_PNG_WRITE_SUPPORT' \ 171 '-DPNG_USER_CONFIG' \ 172 '-DCHROME_PNG_READ_PACK_SUPPORT' \ 173 '-DUSE_OPENSSL=1' \ 174 '-DUSE_OPENSSL_CERTS=1' \ 175 '-D__STDC_CONSTANT_MACROS' \ 176 '-D__STDC_FORMAT_MACROS' \ 177 '-DANDROID' \ 178 '-D__GNU_SOURCE=1' \ 179 '-DUSE_STLPORT=1' \ 180 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 181 '-DCHROME_BUILD_ID=""' \ 182 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 183 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 184 '-D_DEBUG' 185 186 187 # Include paths placed before CFLAGS/CPPFLAGS 188 LOCAL_C_INCLUDES_Debug := \ 189 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 190 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 191 $(gyp_shared_intermediate_dir) \ 192 $(LOCAL_PATH)/third_party/WebKit/Source \ 193 $(LOCAL_PATH) \ 194 $(LOCAL_PATH)/skia/config \ 195 $(LOCAL_PATH)/third_party/khronos \ 196 $(LOCAL_PATH)/gpu \ 197 $(LOCAL_PATH)/third_party/leveldatabase/src/include \ 198 $(LOCAL_PATH)/third_party/leveldatabase/src \ 199 $(LOCAL_PATH)/third_party/leveldatabase \ 200 $(LOCAL_PATH)/third_party/sqlite \ 201 $(LOCAL_PATH)/third_party/WebKit \ 202 $(LOCAL_PATH)/third_party/skia/src/core \ 203 $(LOCAL_PATH)/third_party/skia/include/core \ 204 $(LOCAL_PATH)/third_party/skia/include/effects \ 205 $(LOCAL_PATH)/third_party/skia/include/pdf \ 206 $(LOCAL_PATH)/third_party/skia/include/gpu \ 207 $(LOCAL_PATH)/third_party/skia/include/lazy \ 208 $(LOCAL_PATH)/third_party/skia/include/pathops \ 209 $(LOCAL_PATH)/third_party/skia/include/pipe \ 210 $(LOCAL_PATH)/third_party/skia/include/ports \ 211 $(LOCAL_PATH)/third_party/skia/include/utils \ 212 $(LOCAL_PATH)/skia/ext \ 213 $(PWD)/external/icu/icu4c/source/common \ 214 $(PWD)/external/icu/icu4c/source/i18n \ 215 $(LOCAL_PATH)/third_party/npapi \ 216 $(LOCAL_PATH)/third_party/npapi/bindings \ 217 $(LOCAL_PATH)/v8/include \ 218 $(LOCAL_PATH)/third_party/libpng \ 219 $(LOCAL_PATH)/third_party/zlib \ 220 $(LOCAL_PATH)/third_party/libwebp \ 221 $(LOCAL_PATH)/third_party/ots/include \ 222 $(LOCAL_PATH)/third_party/qcms/src \ 223 $(LOCAL_PATH)/third_party/iccjpeg \ 224 $(LOCAL_PATH)/third_party/libjpeg_turbo \ 225 $(PWD)/frameworks/wilhelm/include \ 226 $(PWD)/bionic \ 227 $(PWD)/external/stlport/stlport 228 229 230 # Flags passed to only C++ (and not C) files. 231 LOCAL_CPPFLAGS_Debug := \ 232 -fno-exceptions \ 233 -fno-rtti \ 234 -fno-threadsafe-statics \ 235 -fvisibility-inlines-hidden \ 236 -Wsign-compare \ 237 -Wno-uninitialized \ 238 -std=gnu++11 \ 239 -Wno-narrowing \ 240 -Wno-literal-suffix \ 241 -Wno-non-virtual-dtor \ 242 -Wno-sign-promo 243 244 245 # Flags passed to both C and C++ files. 246 MY_CFLAGS_Release := \ 247 -fstack-protector \ 248 --param=ssp-buffer-size=4 \ 249 \ 250 -fno-strict-aliasing \ 251 -Wall \ 252 -Wno-unused-parameter \ 253 -Wno-missing-field-initializers \ 254 -fvisibility=hidden \ 255 -pipe \ 256 -fPIC \ 257 -Wno-unused-local-typedefs \ 258 -ffunction-sections \ 259 -funwind-tables \ 260 -g \ 261 -fstack-protector \ 262 -fno-short-enums \ 263 -finline-limit=64 \ 264 -Wa,--noexecstack \ 265 -U_FORTIFY_SOURCE \ 266 -Wno-extra \ 267 -Wno-ignored-qualifiers \ 268 -Wno-type-limits \ 269 -Wno-unused-but-set-variable \ 270 -Os \ 271 -fno-ident \ 272 -fdata-sections \ 273 -ffunction-sections \ 274 -fomit-frame-pointer \ 275 -funwind-tables 276 277 MY_DEFS_Release := \ 278 '-DV8_DEPRECATION_WARNINGS' \ 279 '-D_FILE_OFFSET_BITS=64' \ 280 '-DNO_TCMALLOC' \ 281 '-DDISABLE_NACL' \ 282 '-DCHROMIUM_BUILD' \ 283 '-DUSE_LIBJPEG_TURBO=1' \ 284 '-DENABLE_WEBRTC=1' \ 285 '-DUSE_PROPRIETARY_CODECS' \ 286 '-DENABLE_BROWSER_CDMS' \ 287 '-DENABLE_CONFIGURATION_POLICY' \ 288 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 289 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 290 '-DENABLE_EGLIMAGE=1' \ 291 '-DCLD_VERSION=1' \ 292 '-DENABLE_PRINTING=1' \ 293 '-DENABLE_MANAGED_USERS=1' \ 294 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 295 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 296 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 297 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 298 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 299 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 300 '-DVIDEO_HOLE=1' \ 301 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 302 '-DSTORAGE_BROWSER_IMPLEMENTATION' \ 303 '-DPOSIX_AVOID_MMAP' \ 304 '-DSK_ENABLE_INST_COUNT=0' \ 305 '-DSK_SUPPORT_GPU=1' \ 306 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' \ 307 '-DSK_ENABLE_LEGACY_API_ALIASING=1' \ 308 '-DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1' \ 309 '-DGR_GL_IGNORE_ES3_MSAA=0' \ 310 '-DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT' \ 311 '-DSK_SUPPORT_LEGACY_TEXTRENDERMODE' \ 312 '-DSK_BUILD_FOR_ANDROID' \ 313 '-DSK_USE_POSIX_THREADS' \ 314 '-DSK_DEFERRED_CANVAS_USES_FACTORIES=1' \ 315 '-DSK_FM_NEW_MATCH_FAMILY_STYLE_CHARACTER=1' \ 316 '-DU_USING_ICU_NAMESPACE=0' \ 317 '-DU_ENABLE_DYLOAD=0' \ 318 '-DCHROME_PNG_WRITE_SUPPORT' \ 319 '-DPNG_USER_CONFIG' \ 320 '-DCHROME_PNG_READ_PACK_SUPPORT' \ 321 '-DUSE_OPENSSL=1' \ 322 '-DUSE_OPENSSL_CERTS=1' \ 323 '-D__STDC_CONSTANT_MACROS' \ 324 '-D__STDC_FORMAT_MACROS' \ 325 '-DANDROID' \ 326 '-D__GNU_SOURCE=1' \ 327 '-DUSE_STLPORT=1' \ 328 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 329 '-DCHROME_BUILD_ID=""' \ 330 '-DNDEBUG' \ 331 '-DNVALGRIND' \ 332 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 333 '-D_FORTIFY_SOURCE=2' 334 335 336 # Include paths placed before CFLAGS/CPPFLAGS 337 LOCAL_C_INCLUDES_Release := \ 338 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 339 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 340 $(gyp_shared_intermediate_dir) \ 341 $(LOCAL_PATH)/third_party/WebKit/Source \ 342 $(LOCAL_PATH) \ 343 $(LOCAL_PATH)/skia/config \ 344 $(LOCAL_PATH)/third_party/khronos \ 345 $(LOCAL_PATH)/gpu \ 346 $(LOCAL_PATH)/third_party/leveldatabase/src/include \ 347 $(LOCAL_PATH)/third_party/leveldatabase/src \ 348 $(LOCAL_PATH)/third_party/leveldatabase \ 349 $(LOCAL_PATH)/third_party/sqlite \ 350 $(LOCAL_PATH)/third_party/WebKit \ 351 $(LOCAL_PATH)/third_party/skia/src/core \ 352 $(LOCAL_PATH)/third_party/skia/include/core \ 353 $(LOCAL_PATH)/third_party/skia/include/effects \ 354 $(LOCAL_PATH)/third_party/skia/include/pdf \ 355 $(LOCAL_PATH)/third_party/skia/include/gpu \ 356 $(LOCAL_PATH)/third_party/skia/include/lazy \ 357 $(LOCAL_PATH)/third_party/skia/include/pathops \ 358 $(LOCAL_PATH)/third_party/skia/include/pipe \ 359 $(LOCAL_PATH)/third_party/skia/include/ports \ 360 $(LOCAL_PATH)/third_party/skia/include/utils \ 361 $(LOCAL_PATH)/skia/ext \ 362 $(PWD)/external/icu/icu4c/source/common \ 363 $(PWD)/external/icu/icu4c/source/i18n \ 364 $(LOCAL_PATH)/third_party/npapi \ 365 $(LOCAL_PATH)/third_party/npapi/bindings \ 366 $(LOCAL_PATH)/v8/include \ 367 $(LOCAL_PATH)/third_party/libpng \ 368 $(LOCAL_PATH)/third_party/zlib \ 369 $(LOCAL_PATH)/third_party/libwebp \ 370 $(LOCAL_PATH)/third_party/ots/include \ 371 $(LOCAL_PATH)/third_party/qcms/src \ 372 $(LOCAL_PATH)/third_party/iccjpeg \ 373 $(LOCAL_PATH)/third_party/libjpeg_turbo \ 374 $(PWD)/frameworks/wilhelm/include \ 375 $(PWD)/bionic \ 376 $(PWD)/external/stlport/stlport 377 378 379 # Flags passed to only C++ (and not C) files. 380 LOCAL_CPPFLAGS_Release := \ 381 -fno-exceptions \ 382 -fno-rtti \ 383 -fno-threadsafe-statics \ 384 -fvisibility-inlines-hidden \ 385 -Wsign-compare \ 386 -Wno-uninitialized \ 387 -std=gnu++11 \ 388 -Wno-narrowing \ 389 -Wno-literal-suffix \ 390 -Wno-non-virtual-dtor \ 391 -Wno-sign-promo 392 393 394 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 395 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 396 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 397 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 398 ### Rules for final target. 399 400 LOCAL_SHARED_LIBRARIES := \ 401 libstlport \ 402 libdl 403 404 # Add target alias to "gyp_all_modules" target. 405 .PHONY: gyp_all_modules 406 gyp_all_modules: storage_storage_gyp 407 408 # Alias gyp target name. 409 .PHONY: storage 410 storage: storage_storage_gyp 411 412 include $(BUILD_STATIC_LIBRARY) 413