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