1# This file is generated by gyp; do not edit. 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE_CLASS := STATIC_LIBRARIES 6LOCAL_MODULE := third_party_sqlite_sqlite_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 $(call intermediates-dir-for,GYP,third_party_icu_icui18n_gyp,,,$(GYP_VAR_PREFIX))/icui18n.stamp \ 15 $(call intermediates-dir-for,GYP,third_party_icu_icuuc_gyp,,,$(GYP_VAR_PREFIX))/icuuc.stamp 16 17GYP_GENERATED_OUTPUTS := 18 19# Make sure our deps and generated files are built first. 20LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS) 21 22LOCAL_GENERATED_SOURCES := 23 24GYP_COPIED_SOURCE_ORIGIN_DIRS := 25 26LOCAL_SRC_FILES := \ 27 third_party/sqlite/amalgamation/sqlite3.c \ 28 third_party/sqlite/src/ext/fts2/fts2.c \ 29 third_party/sqlite/src/ext/fts2/fts2_hash.c \ 30 third_party/sqlite/src/ext/fts2/fts2_icu.c \ 31 third_party/sqlite/src/ext/fts2/fts2_porter.c \ 32 third_party/sqlite/src/ext/fts2/fts2_tokenizer.c \ 33 third_party/sqlite/src/ext/fts2/fts2_tokenizer1.c 34 35 36# Flags passed to both C and C++ files. 37MY_CFLAGS_Debug := \ 38 -fstack-protector \ 39 --param=ssp-buffer-size=4 \ 40 -fno-strict-aliasing \ 41 -Wno-unused-parameter \ 42 -Wno-missing-field-initializers \ 43 -fvisibility=hidden \ 44 -pipe \ 45 -fPIC \ 46 -Wno-unused-local-typedefs \ 47 -Wno-format \ 48 -m64 \ 49 -march=x86-64 \ 50 -ffunction-sections \ 51 -funwind-tables \ 52 -g \ 53 -fstack-protector \ 54 -fno-short-enums \ 55 -finline-limit=64 \ 56 -Wa,--noexecstack \ 57 -U_FORTIFY_SOURCE \ 58 -Wno-extra \ 59 -Wno-ignored-qualifiers \ 60 -Wno-type-limits \ 61 -Wno-unused-but-set-variable \ 62 -Wno-address \ 63 -Wno-format-security \ 64 -Wno-return-type \ 65 -Wno-sequence-point \ 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 '-DSQLITE_CORE' \ 76 '-DSQLITE_ENABLE_BROKEN_FTS2' \ 77 '-DSQLITE_ENABLE_FTS2' \ 78 '-DSQLITE_ENABLE_FTS3' \ 79 '-DSQLITE_ENABLE_ICU' \ 80 '-DSQLITE_ENABLE_MEMORY_MANAGEMENT' \ 81 '-DSQLITE_SECURE_DELETE' \ 82 '-DSQLITE_SEPARATE_CACHE_POOLS' \ 83 '-DTHREADSAFE' \ 84 '-D_HAS_EXCEPTIONS=0' \ 85 '-DV8_DEPRECATION_WARNINGS' \ 86 '-D_FILE_OFFSET_BITS=64' \ 87 '-DNO_TCMALLOC' \ 88 '-DDISABLE_NACL' \ 89 '-DCHROMIUM_BUILD' \ 90 '-DUSE_LIBJPEG_TURBO=1' \ 91 '-DENABLE_WEBRTC=1' \ 92 '-DUSE_PROPRIETARY_CODECS' \ 93 '-DENABLE_BROWSER_CDMS' \ 94 '-DENABLE_CONFIGURATION_POLICY' \ 95 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 96 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 97 '-DENABLE_EGLIMAGE=1' \ 98 '-DCLD_VERSION=1' \ 99 '-DENABLE_PRINTING=1' \ 100 '-DENABLE_MANAGED_USERS=1' \ 101 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 102 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 103 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 104 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 105 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 106 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 107 '-DVIDEO_HOLE=1' \ 108 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 109 '-DHAVE_USLEEP=1' \ 110 '-DSQLITE_DEFAULT_JOURNAL_SIZE_LIMIT=1048576' \ 111 '-DSQLITE_DEFAULT_AUTOVACUUM=1' \ 112 '-DSQLITE_TEMP_STORE=3' \ 113 '-DSQLITE_ENABLE_FTS3_BACKWARDS' \ 114 '-DDSQLITE_DEFAULT_FILE_FORMAT=4' \ 115 '-DU_USING_ICU_NAMESPACE=0' \ 116 '-DU_ENABLE_DYLOAD=0' \ 117 '-DUSE_OPENSSL=1' \ 118 '-DUSE_OPENSSL_CERTS=1' \ 119 '-DANDROID' \ 120 '-D__GNU_SOURCE=1' \ 121 '-DUSE_STLPORT=1' \ 122 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 123 '-DCHROME_BUILD_ID=""' \ 124 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 125 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 126 '-D_DEBUG' 127 128 129# Include paths placed before CFLAGS/CPPFLAGS 130LOCAL_C_INCLUDES_Debug := \ 131 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 132 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 133 $(gyp_shared_intermediate_dir) \ 134 $(LOCAL_PATH)/third_party/sqlite/amalgamation \ 135 $(LOCAL_PATH)/third_party/sqlite/src/src \ 136 $(PWD)/external/icu/icu4c/source/common \ 137 $(PWD)/external/icu/icu4c/source/i18n \ 138 $(PWD)/frameworks/wilhelm/include \ 139 $(PWD)/bionic \ 140 $(PWD)/external/stlport/stlport 141 142 143# Flags passed to only C++ (and not C) files. 144LOCAL_CPPFLAGS_Debug := \ 145 -fno-exceptions \ 146 -fno-rtti \ 147 -fno-threadsafe-statics \ 148 -fvisibility-inlines-hidden \ 149 -Wno-deprecated \ 150 -std=gnu++11 \ 151 -Wno-narrowing \ 152 -Wno-literal-suffix \ 153 -Wno-non-virtual-dtor \ 154 -Wno-sign-promo \ 155 -Wno-non-virtual-dtor 156 157 158# Flags passed to both C and C++ files. 159MY_CFLAGS_Release := \ 160 -fstack-protector \ 161 --param=ssp-buffer-size=4 \ 162 -fno-strict-aliasing \ 163 -Wno-unused-parameter \ 164 -Wno-missing-field-initializers \ 165 -fvisibility=hidden \ 166 -pipe \ 167 -fPIC \ 168 -Wno-unused-local-typedefs \ 169 -Wno-format \ 170 -m64 \ 171 -march=x86-64 \ 172 -ffunction-sections \ 173 -funwind-tables \ 174 -g \ 175 -fstack-protector \ 176 -fno-short-enums \ 177 -finline-limit=64 \ 178 -Wa,--noexecstack \ 179 -U_FORTIFY_SOURCE \ 180 -Wno-extra \ 181 -Wno-ignored-qualifiers \ 182 -Wno-type-limits \ 183 -Wno-unused-but-set-variable \ 184 -Wno-address \ 185 -Wno-format-security \ 186 -Wno-return-type \ 187 -Wno-sequence-point \ 188 -Os \ 189 -fno-ident \ 190 -fdata-sections \ 191 -ffunction-sections \ 192 -fomit-frame-pointer \ 193 -funwind-tables 194 195MY_DEFS_Release := \ 196 '-DSQLITE_CORE' \ 197 '-DSQLITE_ENABLE_BROKEN_FTS2' \ 198 '-DSQLITE_ENABLE_FTS2' \ 199 '-DSQLITE_ENABLE_FTS3' \ 200 '-DSQLITE_ENABLE_ICU' \ 201 '-DSQLITE_ENABLE_MEMORY_MANAGEMENT' \ 202 '-DSQLITE_SECURE_DELETE' \ 203 '-DSQLITE_SEPARATE_CACHE_POOLS' \ 204 '-DTHREADSAFE' \ 205 '-D_HAS_EXCEPTIONS=0' \ 206 '-DV8_DEPRECATION_WARNINGS' \ 207 '-D_FILE_OFFSET_BITS=64' \ 208 '-DNO_TCMALLOC' \ 209 '-DDISABLE_NACL' \ 210 '-DCHROMIUM_BUILD' \ 211 '-DUSE_LIBJPEG_TURBO=1' \ 212 '-DENABLE_WEBRTC=1' \ 213 '-DUSE_PROPRIETARY_CODECS' \ 214 '-DENABLE_BROWSER_CDMS' \ 215 '-DENABLE_CONFIGURATION_POLICY' \ 216 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 217 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 218 '-DENABLE_EGLIMAGE=1' \ 219 '-DCLD_VERSION=1' \ 220 '-DENABLE_PRINTING=1' \ 221 '-DENABLE_MANAGED_USERS=1' \ 222 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 223 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 224 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 225 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 226 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 227 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 228 '-DVIDEO_HOLE=1' \ 229 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 230 '-DHAVE_USLEEP=1' \ 231 '-DSQLITE_DEFAULT_JOURNAL_SIZE_LIMIT=1048576' \ 232 '-DSQLITE_DEFAULT_AUTOVACUUM=1' \ 233 '-DSQLITE_TEMP_STORE=3' \ 234 '-DSQLITE_ENABLE_FTS3_BACKWARDS' \ 235 '-DDSQLITE_DEFAULT_FILE_FORMAT=4' \ 236 '-DU_USING_ICU_NAMESPACE=0' \ 237 '-DU_ENABLE_DYLOAD=0' \ 238 '-DUSE_OPENSSL=1' \ 239 '-DUSE_OPENSSL_CERTS=1' \ 240 '-DANDROID' \ 241 '-D__GNU_SOURCE=1' \ 242 '-DUSE_STLPORT=1' \ 243 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 244 '-DCHROME_BUILD_ID=""' \ 245 '-DNDEBUG' \ 246 '-DNVALGRIND' \ 247 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 248 249 250# Include paths placed before CFLAGS/CPPFLAGS 251LOCAL_C_INCLUDES_Release := \ 252 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 253 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 254 $(gyp_shared_intermediate_dir) \ 255 $(LOCAL_PATH)/third_party/sqlite/amalgamation \ 256 $(LOCAL_PATH)/third_party/sqlite/src/src \ 257 $(PWD)/external/icu/icu4c/source/common \ 258 $(PWD)/external/icu/icu4c/source/i18n \ 259 $(PWD)/frameworks/wilhelm/include \ 260 $(PWD)/bionic \ 261 $(PWD)/external/stlport/stlport 262 263 264# Flags passed to only C++ (and not C) files. 265LOCAL_CPPFLAGS_Release := \ 266 -fno-exceptions \ 267 -fno-rtti \ 268 -fno-threadsafe-statics \ 269 -fvisibility-inlines-hidden \ 270 -Wno-deprecated \ 271 -std=gnu++11 \ 272 -Wno-narrowing \ 273 -Wno-literal-suffix \ 274 -Wno-non-virtual-dtor \ 275 -Wno-sign-promo \ 276 -Wno-non-virtual-dtor 277 278 279LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 280LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 281LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 282LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 283### Rules for final target. 284 285LOCAL_SHARED_LIBRARIES := \ 286 libstlport \ 287 libdl 288 289### Set directly by aosp_build_settings. 290LOCAL_FDO_SUPPORT := true 291 292# Add target alias to "gyp_all_modules" target. 293.PHONY: gyp_all_modules 294gyp_all_modules: third_party_sqlite_sqlite_gyp 295 296# Alias gyp target name. 297.PHONY: sqlite 298sqlite: third_party_sqlite_sqlite_gyp 299 300include $(BUILD_STATIC_LIBRARY) 301