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