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 := third_party_sqlite_sqlite_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_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 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_GENERATED_SOURCES := 23 24 GYP_COPIED_SOURCE_ORIGIN_DIRS := 25 26 LOCAL_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. 37 MY_CFLAGS_Debug := \ 38 --param=ssp-buffer-size=4 \ 39 -fno-strict-aliasing \ 40 -Wno-unused-parameter \ 41 -Wno-missing-field-initializers \ 42 -fvisibility=hidden \ 43 -pipe \ 44 -fPIC \ 45 -Wno-unused-local-typedefs \ 46 -Wno-format \ 47 -ffunction-sections \ 48 -funwind-tables \ 49 -g \ 50 -fno-short-enums \ 51 -finline-limit=64 \ 52 -Wa,--noexecstack \ 53 -U_FORTIFY_SOURCE \ 54 -Wno-extra \ 55 -Wno-ignored-qualifiers \ 56 -Wno-type-limits \ 57 -Wno-unused-but-set-variable \ 58 -Wno-address \ 59 -Wno-format-security \ 60 -Wno-return-type \ 61 -Wno-sequence-point \ 62 -Os \ 63 -g \ 64 -gdwarf-4 \ 65 -fdata-sections \ 66 -ffunction-sections \ 67 -funwind-tables 68 69 MY_DEFS_Debug := \ 70 '-DSQLITE_CORE' \ 71 '-DSQLITE_ENABLE_BROKEN_FTS2' \ 72 '-DSQLITE_ENABLE_FTS2' \ 73 '-DSQLITE_ENABLE_FTS3' \ 74 '-DSQLITE_ENABLE_ICU' \ 75 '-DSQLITE_ENABLE_MEMORY_MANAGEMENT' \ 76 '-DSQLITE_SECURE_DELETE' \ 77 '-DSQLITE_SEPARATE_CACHE_POOLS' \ 78 '-DTHREADSAFE' \ 79 '-D_HAS_EXCEPTIONS=0' \ 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 '-DHAVE_USLEEP=1' \ 105 '-DSQLITE_DEFAULT_JOURNAL_SIZE_LIMIT=1048576' \ 106 '-DSQLITE_DEFAULT_AUTOVACUUM=1' \ 107 '-DSQLITE_TEMP_STORE=3' \ 108 '-DSQLITE_ENABLE_FTS3_BACKWARDS' \ 109 '-DDSQLITE_DEFAULT_FILE_FORMAT=4' \ 110 '-DU_USING_ICU_NAMESPACE=0' \ 111 '-DU_ENABLE_DYLOAD=0' \ 112 '-DUSE_OPENSSL=1' \ 113 '-DUSE_OPENSSL_CERTS=1' \ 114 '-DANDROID' \ 115 '-D__GNU_SOURCE=1' \ 116 '-DUSE_STLPORT=1' \ 117 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 118 '-DCHROME_BUILD_ID=""' \ 119 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 120 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 121 '-D_DEBUG' 122 123 124 # Include paths placed before CFLAGS/CPPFLAGS 125 LOCAL_C_INCLUDES_Debug := \ 126 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 127 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 128 $(gyp_shared_intermediate_dir) \ 129 $(LOCAL_PATH)/third_party/sqlite/amalgamation \ 130 $(LOCAL_PATH)/third_party/sqlite/src/src \ 131 $(PWD)/external/icu/icu4c/source/common \ 132 $(PWD)/external/icu/icu4c/source/i18n \ 133 $(PWD)/frameworks/wilhelm/include \ 134 $(PWD)/bionic \ 135 $(PWD)/external/stlport/stlport 136 137 138 # Flags passed to only C++ (and not C) files. 139 LOCAL_CPPFLAGS_Debug := \ 140 -fno-exceptions \ 141 -fno-rtti \ 142 -fno-threadsafe-statics \ 143 -fvisibility-inlines-hidden \ 144 -Wno-deprecated \ 145 -std=gnu++11 \ 146 -Wno-narrowing \ 147 -Wno-literal-suffix \ 148 -Wno-non-virtual-dtor \ 149 -Wno-sign-promo \ 150 -Wno-non-virtual-dtor 151 152 153 # Flags passed to both C and C++ files. 154 MY_CFLAGS_Release := \ 155 --param=ssp-buffer-size=4 \ 156 -fno-strict-aliasing \ 157 -Wno-unused-parameter \ 158 -Wno-missing-field-initializers \ 159 -fvisibility=hidden \ 160 -pipe \ 161 -fPIC \ 162 -Wno-unused-local-typedefs \ 163 -Wno-format \ 164 -ffunction-sections \ 165 -funwind-tables \ 166 -g \ 167 -fno-short-enums \ 168 -finline-limit=64 \ 169 -Wa,--noexecstack \ 170 -U_FORTIFY_SOURCE \ 171 -Wno-extra \ 172 -Wno-ignored-qualifiers \ 173 -Wno-type-limits \ 174 -Wno-unused-but-set-variable \ 175 -Wno-address \ 176 -Wno-format-security \ 177 -Wno-return-type \ 178 -Wno-sequence-point \ 179 -Os \ 180 -fno-ident \ 181 -fdata-sections \ 182 -ffunction-sections \ 183 -funwind-tables 184 185 MY_DEFS_Release := \ 186 '-DSQLITE_CORE' \ 187 '-DSQLITE_ENABLE_BROKEN_FTS2' \ 188 '-DSQLITE_ENABLE_FTS2' \ 189 '-DSQLITE_ENABLE_FTS3' \ 190 '-DSQLITE_ENABLE_ICU' \ 191 '-DSQLITE_ENABLE_MEMORY_MANAGEMENT' \ 192 '-DSQLITE_SECURE_DELETE' \ 193 '-DSQLITE_SEPARATE_CACHE_POOLS' \ 194 '-DTHREADSAFE' \ 195 '-D_HAS_EXCEPTIONS=0' \ 196 '-DV8_DEPRECATION_WARNINGS' \ 197 '-D_FILE_OFFSET_BITS=64' \ 198 '-DNO_TCMALLOC' \ 199 '-DDISABLE_NACL' \ 200 '-DCHROMIUM_BUILD' \ 201 '-DUSE_LIBJPEG_TURBO=1' \ 202 '-DENABLE_WEBRTC=1' \ 203 '-DUSE_PROPRIETARY_CODECS' \ 204 '-DENABLE_BROWSER_CDMS' \ 205 '-DENABLE_CONFIGURATION_POLICY' \ 206 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 207 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 208 '-DENABLE_EGLIMAGE=1' \ 209 '-DCLD_VERSION=1' \ 210 '-DENABLE_PRINTING=1' \ 211 '-DENABLE_MANAGED_USERS=1' \ 212 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 213 '-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \ 214 '-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \ 215 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 216 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 217 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 218 '-DVIDEO_HOLE=1' \ 219 '-DENABLE_LOAD_COMPLETION_HACKS=1' \ 220 '-DHAVE_USLEEP=1' \ 221 '-DSQLITE_DEFAULT_JOURNAL_SIZE_LIMIT=1048576' \ 222 '-DSQLITE_DEFAULT_AUTOVACUUM=1' \ 223 '-DSQLITE_TEMP_STORE=3' \ 224 '-DSQLITE_ENABLE_FTS3_BACKWARDS' \ 225 '-DDSQLITE_DEFAULT_FILE_FORMAT=4' \ 226 '-DU_USING_ICU_NAMESPACE=0' \ 227 '-DU_ENABLE_DYLOAD=0' \ 228 '-DUSE_OPENSSL=1' \ 229 '-DUSE_OPENSSL_CERTS=1' \ 230 '-DANDROID' \ 231 '-D__GNU_SOURCE=1' \ 232 '-DUSE_STLPORT=1' \ 233 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 234 '-DCHROME_BUILD_ID=""' \ 235 '-DNDEBUG' \ 236 '-DNVALGRIND' \ 237 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 238 239 240 # Include paths placed before CFLAGS/CPPFLAGS 241 LOCAL_C_INCLUDES_Release := \ 242 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 243 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 244 $(gyp_shared_intermediate_dir) \ 245 $(LOCAL_PATH)/third_party/sqlite/amalgamation \ 246 $(LOCAL_PATH)/third_party/sqlite/src/src \ 247 $(PWD)/external/icu/icu4c/source/common \ 248 $(PWD)/external/icu/icu4c/source/i18n \ 249 $(PWD)/frameworks/wilhelm/include \ 250 $(PWD)/bionic \ 251 $(PWD)/external/stlport/stlport 252 253 254 # Flags passed to only C++ (and not C) files. 255 LOCAL_CPPFLAGS_Release := \ 256 -fno-exceptions \ 257 -fno-rtti \ 258 -fno-threadsafe-statics \ 259 -fvisibility-inlines-hidden \ 260 -Wno-deprecated \ 261 -std=gnu++11 \ 262 -Wno-narrowing \ 263 -Wno-literal-suffix \ 264 -Wno-non-virtual-dtor \ 265 -Wno-sign-promo \ 266 -Wno-non-virtual-dtor 267 268 269 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 270 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 271 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 272 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 273 ### Rules for final target. 274 275 LOCAL_SHARED_LIBRARIES := \ 276 libstlport \ 277 libdl 278 279 ### Set directly by aosp_build_settings. 280 LOCAL_FDO_SUPPORT := true 281 282 # Add target alias to "gyp_all_modules" target. 283 .PHONY: gyp_all_modules 284 gyp_all_modules: third_party_sqlite_sqlite_gyp 285 286 # Alias gyp target name. 287 .PHONY: sqlite 288 sqlite: third_party_sqlite_sqlite_gyp 289 290 include $(BUILD_STATIC_LIBRARY) 291