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 -fstack-protector \ 40 --param=ssp-buffer-size=4 \ 41 \ 42 -fno-exceptions \ 43 -fno-strict-aliasing \ 44 -Wno-unused-parameter \ 45 -Wno-missing-field-initializers \ 46 -fvisibility=hidden \ 47 -pipe \ 48 -fPIC \ 49 -Wno-unused-local-typedefs \ 50 -Wno-format \ 51 -EL \ 52 -mhard-float \ 53 -ffunction-sections \ 54 -funwind-tables \ 55 -g \ 56 -fstack-protector \ 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 -Wno-address \ 66 -Wno-format-security \ 67 -Wno-return-type \ 68 -Wno-sequence-point \ 69 -Os \ 70 -g \ 71 -fdata-sections \ 72 -ffunction-sections \ 73 -fomit-frame-pointer \ 74 -funwind-tables 75 76 MY_DEFS_Debug := \ 77 '-DSQLITE_CORE' \ 78 '-DSQLITE_ENABLE_BROKEN_FTS2' \ 79 '-DSQLITE_ENABLE_FTS2' \ 80 '-DSQLITE_ENABLE_FTS3' \ 81 '-DSQLITE_ENABLE_ICU' \ 82 '-DSQLITE_ENABLE_MEMORY_MANAGEMENT' \ 83 '-DSQLITE_SECURE_DELETE' \ 84 '-DSQLITE_SEPARATE_CACHE_POOLS' \ 85 '-DTHREADSAFE' \ 86 '-D_HAS_EXCEPTIONS=0' \ 87 '-DV8_DEPRECATION_WARNINGS' \ 88 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 89 '-D_FILE_OFFSET_BITS=64' \ 90 '-DNO_TCMALLOC' \ 91 '-DDISABLE_NACL' \ 92 '-DCHROMIUM_BUILD' \ 93 '-DUSE_LIBJPEG_TURBO=1' \ 94 '-DENABLE_WEBRTC=1' \ 95 '-DUSE_PROPRIETARY_CODECS' \ 96 '-DENABLE_BROWSER_CDMS' \ 97 '-DENABLE_CONFIGURATION_POLICY' \ 98 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 99 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 100 '-DENABLE_EGLIMAGE=1' \ 101 '-DCLD_VERSION=1' \ 102 '-DENABLE_PRINTING=1' \ 103 '-DENABLE_MANAGED_USERS=1' \ 104 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 105 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 106 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 107 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 108 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 109 '-DVIDEO_HOLE=1' \ 110 '-DHAVE_USLEEP=1' \ 111 '-DSQLITE_DEFAULT_JOURNAL_SIZE_LIMIT=1048576' \ 112 '-DSQLITE_DEFAULT_AUTOVACUUM=1' \ 113 '-DSQLITE_TEMP_STORE=3' \ 114 '-DSQLITE_ENABLE_FTS3_BACKWARDS' \ 115 '-DDSQLITE_DEFAULT_FILE_FORMAT=4' \ 116 '-DU_USING_ICU_NAMESPACE=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 130 LOCAL_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. 144 LOCAL_CPPFLAGS_Debug := \ 145 -fno-rtti \ 146 -fno-threadsafe-statics \ 147 -fvisibility-inlines-hidden \ 148 -Wno-deprecated \ 149 -Wno-uninitialized \ 150 -Wno-non-virtual-dtor \ 151 -Wno-sign-promo \ 152 -Wno-non-virtual-dtor 153 154 155 LOCAL_FDO_SUPPORT_Debug := false 156 157 # Flags passed to both C and C++ files. 158 MY_CFLAGS_Release := \ 159 -fstack-protector \ 160 --param=ssp-buffer-size=4 \ 161 \ 162 -fno-exceptions \ 163 -fno-strict-aliasing \ 164 -Wno-unused-parameter \ 165 -Wno-missing-field-initializers \ 166 -fvisibility=hidden \ 167 -pipe \ 168 -fPIC \ 169 -Wno-unused-local-typedefs \ 170 -Wno-format \ 171 -EL \ 172 -mhard-float \ 173 -ffunction-sections \ 174 -funwind-tables \ 175 -g \ 176 -fstack-protector \ 177 -fno-short-enums \ 178 -finline-limit=64 \ 179 -Wa,--noexecstack \ 180 -U_FORTIFY_SOURCE \ 181 -Wno-extra \ 182 -Wno-ignored-qualifiers \ 183 -Wno-type-limits \ 184 -Wno-unused-but-set-variable \ 185 -Wno-address \ 186 -Wno-format-security \ 187 -Wno-return-type \ 188 -Wno-sequence-point \ 189 -Os \ 190 -fno-ident \ 191 -fdata-sections \ 192 -ffunction-sections \ 193 -fomit-frame-pointer \ 194 -funwind-tables 195 196 MY_DEFS_Release := \ 197 '-DSQLITE_CORE' \ 198 '-DSQLITE_ENABLE_BROKEN_FTS2' \ 199 '-DSQLITE_ENABLE_FTS2' \ 200 '-DSQLITE_ENABLE_FTS3' \ 201 '-DSQLITE_ENABLE_ICU' \ 202 '-DSQLITE_ENABLE_MEMORY_MANAGEMENT' \ 203 '-DSQLITE_SECURE_DELETE' \ 204 '-DSQLITE_SEPARATE_CACHE_POOLS' \ 205 '-DTHREADSAFE' \ 206 '-D_HAS_EXCEPTIONS=0' \ 207 '-DV8_DEPRECATION_WARNINGS' \ 208 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 209 '-D_FILE_OFFSET_BITS=64' \ 210 '-DNO_TCMALLOC' \ 211 '-DDISABLE_NACL' \ 212 '-DCHROMIUM_BUILD' \ 213 '-DUSE_LIBJPEG_TURBO=1' \ 214 '-DENABLE_WEBRTC=1' \ 215 '-DUSE_PROPRIETARY_CODECS' \ 216 '-DENABLE_BROWSER_CDMS' \ 217 '-DENABLE_CONFIGURATION_POLICY' \ 218 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 219 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 220 '-DENABLE_EGLIMAGE=1' \ 221 '-DCLD_VERSION=1' \ 222 '-DENABLE_PRINTING=1' \ 223 '-DENABLE_MANAGED_USERS=1' \ 224 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 225 '-DDATA_REDUCTION_DEV_HOST="http://proxy-dev.googlezip.net:80/"' \ 226 '-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \ 227 '-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \ 228 '-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \ 229 '-DVIDEO_HOLE=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 '-DUSE_OPENSSL=1' \ 238 '-DUSE_OPENSSL_CERTS=1' \ 239 '-DANDROID' \ 240 '-D__GNU_SOURCE=1' \ 241 '-DUSE_STLPORT=1' \ 242 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 243 '-DCHROME_BUILD_ID=""' \ 244 '-DNDEBUG' \ 245 '-DNVALGRIND' \ 246 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 247 248 249 # Include paths placed before CFLAGS/CPPFLAGS 250 LOCAL_C_INCLUDES_Release := \ 251 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 252 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 253 $(gyp_shared_intermediate_dir) \ 254 $(LOCAL_PATH)/third_party/sqlite/amalgamation \ 255 $(LOCAL_PATH)/third_party/sqlite/src/src \ 256 $(PWD)/external/icu/icu4c/source/common \ 257 $(PWD)/external/icu/icu4c/source/i18n \ 258 $(PWD)/frameworks/wilhelm/include \ 259 $(PWD)/bionic \ 260 $(PWD)/external/stlport/stlport 261 262 263 # Flags passed to only C++ (and not C) files. 264 LOCAL_CPPFLAGS_Release := \ 265 -fno-rtti \ 266 -fno-threadsafe-statics \ 267 -fvisibility-inlines-hidden \ 268 -Wno-deprecated \ 269 -Wno-uninitialized \ 270 -Wno-non-virtual-dtor \ 271 -Wno-sign-promo \ 272 -Wno-non-virtual-dtor 273 274 275 LOCAL_FDO_SUPPORT_Release := true 276 277 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 278 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 279 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 280 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 281 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 282 ### Rules for final target. 283 284 LOCAL_LDFLAGS_Debug := \ 285 -Wl,-z,now \ 286 -Wl,-z,relro \ 287 -Wl,--fatal-warnings \ 288 -Wl,-z,noexecstack \ 289 -fPIC \ 290 -EL \ 291 -Wl,--no-keep-memory \ 292 -nostdlib \ 293 -Wl,--no-undefined \ 294 -Wl,--exclude-libs=ALL \ 295 -Wl,--warn-shared-textrel \ 296 -Wl,-O1 \ 297 -Wl,--as-needed 298 299 300 LOCAL_LDFLAGS_Release := \ 301 -Wl,-z,now \ 302 -Wl,-z,relro \ 303 -Wl,--fatal-warnings \ 304 -Wl,-z,noexecstack \ 305 -fPIC \ 306 -EL \ 307 -Wl,--no-keep-memory \ 308 -nostdlib \ 309 -Wl,--no-undefined \ 310 -Wl,--exclude-libs=ALL \ 311 -Wl,-O1 \ 312 -Wl,--as-needed \ 313 -Wl,--gc-sections \ 314 -Wl,--warn-shared-textrel 315 316 317 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 318 319 LOCAL_STATIC_LIBRARIES := 320 321 # Enable grouping to fix circular references 322 LOCAL_GROUP_STATIC_LIBRARIES := true 323 324 LOCAL_SHARED_LIBRARIES := \ 325 libstlport \ 326 libdl 327 328 # Add target alias to "gyp_all_modules" target. 329 .PHONY: gyp_all_modules 330 gyp_all_modules: third_party_sqlite_sqlite_gyp 331 332 # Alias gyp target name. 333 .PHONY: sqlite 334 sqlite: third_party_sqlite_sqlite_gyp 335 336 include $(BUILD_STATIC_LIBRARY) 337