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 --param=ssp-buffer-size=4 \ 41 -Werror \ 42 -fno-strict-aliasing \ 43 -Wall \ 44 -Wno-unused-parameter \ 45 -Wno-missing-field-initializers \ 46 -fvisibility=hidden \ 47 -pipe \ 48 -fPIC \ 49 -Wno-unused-local-typedefs \ 50 -msse2 \ 51 -mfpmath=sse \ 52 -mmmx \ 53 -m32 \ 54 -ffunction-sections \ 55 -funwind-tables \ 56 -g \ 57 -fno-short-enums \ 58 -finline-limit=64 \ 59 -Wa,--noexecstack \ 60 -U_FORTIFY_SOURCE \ 61 -Wno-extra \ 62 -Wno-ignored-qualifiers \ 63 -Wno-type-limits \ 64 -Wno-unused-but-set-variable \ 65 -fno-stack-protector \ 66 -Os \ 67 -g \ 68 -gdwarf-4 \ 69 -fdata-sections \ 70 -ffunction-sections \ 71 -fomit-frame-pointer \ 72 -funwind-tables 73 74MY_DEFS_Debug := \ 75 '-DV8_DEPRECATION_WARNINGS' \ 76 '-D_FILE_OFFSET_BITS=64' \ 77 '-DNO_TCMALLOC' \ 78 '-DDISABLE_NACL' \ 79 '-DCHROMIUM_BUILD' \ 80 '-DUSE_LIBJPEG_TURBO=1' \ 81 '-DENABLE_WEBRTC=1' \ 82 '-DUSE_PROPRIETARY_CODECS' \ 83 '-DENABLE_BROWSER_CDMS' \ 84 '-DENABLE_CONFIGURATION_POLICY' \ 85 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 86 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 87 '-DENABLE_EGLIMAGE=1' \ 88 '-DCLD_VERSION=1' \ 89 '-DENABLE_PRINTING=1' \ 90 '-DENABLE_MANAGED_USERS=1' \ 91 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 92 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 93 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 94 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 95 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 96 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 97 '-DVIDEO_HOLE=1' \ 98 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 99 '-DSTORAGE_COMMON_IMPLEMENTATION' \ 100 '-DUSE_OPENSSL=1' \ 101 '-DUSE_OPENSSL_CERTS=1' \ 102 '-D__STDC_CONSTANT_MACROS' \ 103 '-D__STDC_FORMAT_MACROS' \ 104 '-DANDROID' \ 105 '-D__GNU_SOURCE=1' \ 106 '-DUSE_STLPORT=1' \ 107 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 108 '-DCHROME_BUILD_ID=""' \ 109 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 110 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 111 '-D_DEBUG' 112 113 114# Include paths placed before CFLAGS/CPPFLAGS 115LOCAL_C_INCLUDES_Debug := \ 116 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 117 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 118 $(gyp_shared_intermediate_dir) \ 119 $(LOCAL_PATH) \ 120 $(PWD)/frameworks/wilhelm/include \ 121 $(PWD)/bionic \ 122 $(PWD)/external/stlport/stlport 123 124 125# Flags passed to only C++ (and not C) files. 126LOCAL_CPPFLAGS_Debug := \ 127 -fno-exceptions \ 128 -fno-rtti \ 129 -fno-threadsafe-statics \ 130 -fvisibility-inlines-hidden \ 131 -Wsign-compare \ 132 -std=gnu++11 \ 133 -Wno-narrowing \ 134 -Wno-literal-suffix \ 135 -Wno-non-virtual-dtor \ 136 -Wno-sign-promo 137 138 139# Flags passed to both C and C++ files. 140MY_CFLAGS_Release := \ 141 --param=ssp-buffer-size=4 \ 142 -Werror \ 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 -msse2 \ 152 -mfpmath=sse \ 153 -mmmx \ 154 -m32 \ 155 -ffunction-sections \ 156 -funwind-tables \ 157 -g \ 158 -fno-short-enums \ 159 -finline-limit=64 \ 160 -Wa,--noexecstack \ 161 -U_FORTIFY_SOURCE \ 162 -Wno-extra \ 163 -Wno-ignored-qualifiers \ 164 -Wno-type-limits \ 165 -Wno-unused-but-set-variable \ 166 -fno-stack-protector \ 167 -Os \ 168 -fno-ident \ 169 -fdata-sections \ 170 -ffunction-sections \ 171 -fomit-frame-pointer \ 172 -funwind-tables 173 174MY_DEFS_Release := \ 175 '-DV8_DEPRECATION_WARNINGS' \ 176 '-D_FILE_OFFSET_BITS=64' \ 177 '-DNO_TCMALLOC' \ 178 '-DDISABLE_NACL' \ 179 '-DCHROMIUM_BUILD' \ 180 '-DUSE_LIBJPEG_TURBO=1' \ 181 '-DENABLE_WEBRTC=1' \ 182 '-DUSE_PROPRIETARY_CODECS' \ 183 '-DENABLE_BROWSER_CDMS' \ 184 '-DENABLE_CONFIGURATION_POLICY' \ 185 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 186 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 187 '-DENABLE_EGLIMAGE=1' \ 188 '-DCLD_VERSION=1' \ 189 '-DENABLE_PRINTING=1' \ 190 '-DENABLE_MANAGED_USERS=1' \ 191 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 192 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 193 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 194 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 195 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 196 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 197 '-DVIDEO_HOLE=1' \ 198 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 199 '-DSTORAGE_COMMON_IMPLEMENTATION' \ 200 '-DUSE_OPENSSL=1' \ 201 '-DUSE_OPENSSL_CERTS=1' \ 202 '-D__STDC_CONSTANT_MACROS' \ 203 '-D__STDC_FORMAT_MACROS' \ 204 '-DANDROID' \ 205 '-D__GNU_SOURCE=1' \ 206 '-DUSE_STLPORT=1' \ 207 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 208 '-DCHROME_BUILD_ID=""' \ 209 '-DNDEBUG' \ 210 '-DNVALGRIND' \ 211 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 212 '-D_FORTIFY_SOURCE=2' 213 214 215# Include paths placed before CFLAGS/CPPFLAGS 216LOCAL_C_INCLUDES_Release := \ 217 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 218 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 219 $(gyp_shared_intermediate_dir) \ 220 $(LOCAL_PATH) \ 221 $(PWD)/frameworks/wilhelm/include \ 222 $(PWD)/bionic \ 223 $(PWD)/external/stlport/stlport 224 225 226# Flags passed to only C++ (and not C) files. 227LOCAL_CPPFLAGS_Release := \ 228 -fno-exceptions \ 229 -fno-rtti \ 230 -fno-threadsafe-statics \ 231 -fvisibility-inlines-hidden \ 232 -Wsign-compare \ 233 -std=gnu++11 \ 234 -Wno-narrowing \ 235 -Wno-literal-suffix \ 236 -Wno-non-virtual-dtor \ 237 -Wno-sign-promo 238 239 240LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 241LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 242LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 243LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 244### Rules for final target. 245 246LOCAL_SHARED_LIBRARIES := \ 247 libstlport \ 248 libdl 249 250# Add target alias to "gyp_all_modules" target. 251.PHONY: gyp_all_modules 252gyp_all_modules: storage_storage_common_gyp 253 254# Alias gyp target name. 255.PHONY: storage_common 256storage_common: storage_storage_common_gyp 257 258include $(BUILD_STATIC_LIBRARY) 259