1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := storage_storage_common_gyp 7LOCAL_MODULE_SUFFIX := .a 8LOCAL_MODULE_TARGET_ARCH := $(TARGET_$(GYP_VAR_PREFIX)ARCH) 9gyp_intermediate_dir := $(call local-intermediates-dir,,$(GYP_VAR_PREFIX)) 10gyp_shared_intermediate_dir := $(call intermediates-dir-for,GYP,shared,,,$(GYP_VAR_PREFIX)) 11 12# Make sure our deps are built first. 13GYP_TARGET_DEPENDENCIES := 14 15GYP_GENERATED_OUTPUTS := 16 17# Make sure our deps and generated files are built first. 18LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 19 20LOCAL_CPP_EXTENSION := .cc 21LOCAL_GENERATED_SOURCES := 22 23GYP_COPIED_SOURCE_ORIGIN_DIRS := 24 25LOCAL_SRC_FILES := \ 26 storage/common/data_element.cc \ 27 storage/common/blob/blob_data.cc \ 28 storage/common/blob/scoped_file.cc \ 29 storage/common/blob/shareable_file_reference.cc \ 30 storage/common/database/database_connections.cc \ 31 storage/common/database/database_identifier.cc \ 32 storage/common/fileapi/directory_entry.cc \ 33 storage/common/fileapi/file_system_info.cc \ 34 storage/common/fileapi/file_system_util.cc \ 35 storage/common/quota/quota_status_code.cc 36 37 38# Flags passed to both C and C++ files. 39MY_CFLAGS_Debug := \ 40 -fstack-protector \ 41 --param=ssp-buffer-size=4 \ 42 \ 43 -fno-strict-aliasing \ 44 -Wall \ 45 -Wno-unused-parameter \ 46 -Wno-missing-field-initializers \ 47 -fvisibility=hidden \ 48 -pipe \ 49 -fPIC \ 50 -Wno-unused-local-typedefs \ 51 -ffunction-sections \ 52 -funwind-tables \ 53 -g \ 54 -fstack-protector \ 55 -fno-short-enums \ 56 -finline-limit=64 \ 57 -Wa,--noexecstack \ 58 -U_FORTIFY_SOURCE \ 59 -Wno-extra \ 60 -Wno-ignored-qualifiers \ 61 -Wno-type-limits \ 62 -Wno-unused-but-set-variable \ 63 -Os \ 64 -g \ 65 -gdwarf-4 \ 66 -fdata-sections \ 67 -ffunction-sections \ 68 -fomit-frame-pointer \ 69 -funwind-tables 70 71MY_DEFS_Debug := \ 72 '-DV8_DEPRECATION_WARNINGS' \ 73 '-D_FILE_OFFSET_BITS=64' \ 74 '-DNO_TCMALLOC' \ 75 '-DDISABLE_NACL' \ 76 '-DCHROMIUM_BUILD' \ 77 '-DUSE_LIBJPEG_TURBO=1' \ 78 '-DENABLE_WEBRTC=1' \ 79 '-DUSE_PROPRIETARY_CODECS' \ 80 '-DENABLE_BROWSER_CDMS' \ 81 '-DENABLE_CONFIGURATION_POLICY' \ 82 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 83 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 84 '-DENABLE_EGLIMAGE=1' \ 85 '-DCLD_VERSION=1' \ 86 '-DENABLE_PRINTING=1' \ 87 '-DENABLE_MANAGED_USERS=1' \ 88 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 89 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 90 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 91 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 92 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 93 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 94 '-DVIDEO_HOLE=1' \ 95 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 96 '-DSTORAGE_COMMON_IMPLEMENTATION' \ 97 '-DPOSIX_AVOID_MMAP' \ 98 '-DUSE_OPENSSL=1' \ 99 '-DUSE_OPENSSL_CERTS=1' \ 100 '-D__STDC_CONSTANT_MACROS' \ 101 '-D__STDC_FORMAT_MACROS' \ 102 '-DANDROID' \ 103 '-D__GNU_SOURCE=1' \ 104 '-DUSE_STLPORT=1' \ 105 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 106 '-DCHROME_BUILD_ID=""' \ 107 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 108 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 109 '-D_DEBUG' 110 111 112# Include paths placed before CFLAGS/CPPFLAGS 113LOCAL_C_INCLUDES_Debug := \ 114 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 115 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 116 $(gyp_shared_intermediate_dir) \ 117 $(LOCAL_PATH) \ 118 $(PWD)/frameworks/wilhelm/include \ 119 $(PWD)/bionic \ 120 $(PWD)/external/stlport/stlport 121 122 123# Flags passed to only C++ (and not C) files. 124LOCAL_CPPFLAGS_Debug := \ 125 -fno-exceptions \ 126 -fno-rtti \ 127 -fno-threadsafe-statics \ 128 -fvisibility-inlines-hidden \ 129 -Wsign-compare \ 130 -Wno-uninitialized \ 131 -std=gnu++11 \ 132 -Wno-narrowing \ 133 -Wno-literal-suffix \ 134 -Wno-non-virtual-dtor \ 135 -Wno-sign-promo 136 137 138# Flags passed to both C and C++ files. 139MY_CFLAGS_Release := \ 140 -fstack-protector \ 141 --param=ssp-buffer-size=4 \ 142 \ 143 -fno-strict-aliasing \ 144 -Wall \ 145 -Wno-unused-parameter \ 146 -Wno-missing-field-initializers \ 147 -fvisibility=hidden \ 148 -pipe \ 149 -fPIC \ 150 -Wno-unused-local-typedefs \ 151 -ffunction-sections \ 152 -funwind-tables \ 153 -g \ 154 -fstack-protector \ 155 -fno-short-enums \ 156 -finline-limit=64 \ 157 -Wa,--noexecstack \ 158 -U_FORTIFY_SOURCE \ 159 -Wno-extra \ 160 -Wno-ignored-qualifiers \ 161 -Wno-type-limits \ 162 -Wno-unused-but-set-variable \ 163 -Os \ 164 -fno-ident \ 165 -fdata-sections \ 166 -ffunction-sections \ 167 -fomit-frame-pointer \ 168 -funwind-tables 169 170MY_DEFS_Release := \ 171 '-DV8_DEPRECATION_WARNINGS' \ 172 '-D_FILE_OFFSET_BITS=64' \ 173 '-DNO_TCMALLOC' \ 174 '-DDISABLE_NACL' \ 175 '-DCHROMIUM_BUILD' \ 176 '-DUSE_LIBJPEG_TURBO=1' \ 177 '-DENABLE_WEBRTC=1' \ 178 '-DUSE_PROPRIETARY_CODECS' \ 179 '-DENABLE_BROWSER_CDMS' \ 180 '-DENABLE_CONFIGURATION_POLICY' \ 181 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 182 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 183 '-DENABLE_EGLIMAGE=1' \ 184 '-DCLD_VERSION=1' \ 185 '-DENABLE_PRINTING=1' \ 186 '-DENABLE_MANAGED_USERS=1' \ 187 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 188 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 189 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 190 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 191 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 192 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 193 '-DVIDEO_HOLE=1' \ 194 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 195 '-DSTORAGE_COMMON_IMPLEMENTATION' \ 196 '-DPOSIX_AVOID_MMAP' \ 197 '-DUSE_OPENSSL=1' \ 198 '-DUSE_OPENSSL_CERTS=1' \ 199 '-D__STDC_CONSTANT_MACROS' \ 200 '-D__STDC_FORMAT_MACROS' \ 201 '-DANDROID' \ 202 '-D__GNU_SOURCE=1' \ 203 '-DUSE_STLPORT=1' \ 204 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 205 '-DCHROME_BUILD_ID=""' \ 206 '-DNDEBUG' \ 207 '-DNVALGRIND' \ 208 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 209 '-D_FORTIFY_SOURCE=2' 210 211 212# Include paths placed before CFLAGS/CPPFLAGS 213LOCAL_C_INCLUDES_Release := \ 214 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 215 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 216 $(gyp_shared_intermediate_dir) \ 217 $(LOCAL_PATH) \ 218 $(PWD)/frameworks/wilhelm/include \ 219 $(PWD)/bionic \ 220 $(PWD)/external/stlport/stlport 221 222 223# Flags passed to only C++ (and not C) files. 224LOCAL_CPPFLAGS_Release := \ 225 -fno-exceptions \ 226 -fno-rtti \ 227 -fno-threadsafe-statics \ 228 -fvisibility-inlines-hidden \ 229 -Wsign-compare \ 230 -Wno-uninitialized \ 231 -std=gnu++11 \ 232 -Wno-narrowing \ 233 -Wno-literal-suffix \ 234 -Wno-non-virtual-dtor \ 235 -Wno-sign-promo 236 237 238LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 239LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 240LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 241LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 242### Rules for final target. 243 244LOCAL_SHARED_LIBRARIES := \ 245 libstlport \ 246 libdl 247 248# Add target alias to "gyp_all_modules" target. 249.PHONY: gyp_all_modules 250gyp_all_modules: storage_storage_common_gyp 251 252# Alias gyp target name. 253.PHONY: storage_common 254storage_common: storage_storage_common_gyp 255 256include $(BUILD_STATIC_LIBRARY) 257