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 -msse2 \ 50 -mfpmath=sse \ 51 -mmmx \ 52 -m32 \ 53 -ffunction-sections \ 54 -funwind-tables \ 55 -g \ 56 -fno-short-enums \ 57 -finline-limit=64 \ 58 -Wa,--noexecstack \ 59 -U_FORTIFY_SOURCE \ 60 -Wno-extra \ 61 -Wno-ignored-qualifiers \ 62 -Wno-type-limits \ 63 -Wno-unused-but-set-variable \ 64 -fno-stack-protector \ 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-non-virtual-dtor \ 150 -Wno-sign-promo \ 151 -Wno-non-virtual-dtor 152 153 154 LOCAL_FDO_SUPPORT_Debug := false 155 156 # Flags passed to both C and C++ files. 157 MY_CFLAGS_Release := \ 158 --param=ssp-buffer-size=4 \ 159 -fno-exceptions \ 160 -fno-strict-aliasing \ 161 -Wno-unused-parameter \ 162 -Wno-missing-field-initializers \ 163 -fvisibility=hidden \ 164 -pipe \ 165 -fPIC \ 166 -Wno-unused-local-typedefs \ 167 -Wno-format \ 168 -msse2 \ 169 -mfpmath=sse \ 170 -mmmx \ 171 -m32 \ 172 -ffunction-sections \ 173 -funwind-tables \ 174 -g \ 175 -fno-short-enums \ 176 -finline-limit=64 \ 177 -Wa,--noexecstack \ 178 -U_FORTIFY_SOURCE \ 179 -Wno-extra \ 180 -Wno-ignored-qualifiers \ 181 -Wno-type-limits \ 182 -Wno-unused-but-set-variable \ 183 -fno-stack-protector \ 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 195 MY_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 '-DBLINK_SCALE_FILTERS_AT_RECORD_TIME' \ 208 '-D_FILE_OFFSET_BITS=64' \ 209 '-DNO_TCMALLOC' \ 210 '-DDISABLE_NACL' \ 211 '-DCHROMIUM_BUILD' \ 212 '-DUSE_LIBJPEG_TURBO=1' \ 213 '-DENABLE_WEBRTC=1' \ 214 '-DUSE_PROPRIETARY_CODECS' \ 215 '-DENABLE_BROWSER_CDMS' \ 216 '-DENABLE_CONFIGURATION_POLICY' \ 217 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 218 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 219 '-DENABLE_EGLIMAGE=1' \ 220 '-DCLD_VERSION=1' \ 221 '-DENABLE_PRINTING=1' \ 222 '-DENABLE_MANAGED_USERS=1' \ 223 '-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \ 224 '-DDATA_REDUCTION_DEV_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 '-DHAVE_USLEEP=1' \ 230 '-DSQLITE_DEFAULT_JOURNAL_SIZE_LIMIT=1048576' \ 231 '-DSQLITE_DEFAULT_AUTOVACUUM=1' \ 232 '-DSQLITE_TEMP_STORE=3' \ 233 '-DSQLITE_ENABLE_FTS3_BACKWARDS' \ 234 '-DDSQLITE_DEFAULT_FILE_FORMAT=4' \ 235 '-DU_USING_ICU_NAMESPACE=0' \ 236 '-DUSE_OPENSSL=1' \ 237 '-DUSE_OPENSSL_CERTS=1' \ 238 '-DANDROID' \ 239 '-D__GNU_SOURCE=1' \ 240 '-DUSE_STLPORT=1' \ 241 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 242 '-DCHROME_BUILD_ID=""' \ 243 '-DNDEBUG' \ 244 '-DNVALGRIND' \ 245 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' 246 247 248 # Include paths placed before CFLAGS/CPPFLAGS 249 LOCAL_C_INCLUDES_Release := \ 250 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 251 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 252 $(gyp_shared_intermediate_dir) \ 253 $(LOCAL_PATH)/third_party/sqlite/amalgamation \ 254 $(LOCAL_PATH)/third_party/sqlite/src/src \ 255 $(PWD)/external/icu/icu4c/source/common \ 256 $(PWD)/external/icu/icu4c/source/i18n \ 257 $(PWD)/frameworks/wilhelm/include \ 258 $(PWD)/bionic \ 259 $(PWD)/external/stlport/stlport 260 261 262 # Flags passed to only C++ (and not C) files. 263 LOCAL_CPPFLAGS_Release := \ 264 -fno-rtti \ 265 -fno-threadsafe-statics \ 266 -fvisibility-inlines-hidden \ 267 -Wno-deprecated \ 268 -Wno-non-virtual-dtor \ 269 -Wno-sign-promo \ 270 -Wno-non-virtual-dtor 271 272 273 LOCAL_FDO_SUPPORT_Release := true 274 275 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 276 LOCAL_FDO_SUPPORT := $(LOCAL_FDO_SUPPORT_$(GYP_CONFIGURATION)) 277 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 278 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 279 LOCAL_ASFLAGS := $(LOCAL_CFLAGS) 280 ### Rules for final target. 281 282 LOCAL_LDFLAGS_Debug := \ 283 -Wl,-z,now \ 284 -Wl,-z,relro \ 285 -Wl,--fatal-warnings \ 286 -Wl,-z,noexecstack \ 287 -fPIC \ 288 -m32 \ 289 -fuse-ld=gold \ 290 -nostdlib \ 291 -Wl,--no-undefined \ 292 -Wl,--exclude-libs=ALL \ 293 -Wl,--warn-shared-textrel \ 294 -Wl,-O1 \ 295 -Wl,--as-needed 296 297 298 LOCAL_LDFLAGS_Release := \ 299 -Wl,-z,now \ 300 -Wl,-z,relro \ 301 -Wl,--fatal-warnings \ 302 -Wl,-z,noexecstack \ 303 -fPIC \ 304 -m32 \ 305 -fuse-ld=gold \ 306 -nostdlib \ 307 -Wl,--no-undefined \ 308 -Wl,--exclude-libs=ALL \ 309 -Wl,-O1 \ 310 -Wl,--as-needed \ 311 -Wl,--gc-sections \ 312 -Wl,--warn-shared-textrel 313 314 315 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 316 317 LOCAL_STATIC_LIBRARIES := 318 319 # Enable grouping to fix circular references 320 LOCAL_GROUP_STATIC_LIBRARIES := true 321 322 LOCAL_SHARED_LIBRARIES := \ 323 libstlport \ 324 libdl 325 326 # Add target alias to "gyp_all_modules" target. 327 .PHONY: gyp_all_modules 328 gyp_all_modules: third_party_sqlite_sqlite_gyp 329 330 # Alias gyp target name. 331 .PHONY: sqlite 332 sqlite: third_party_sqlite_sqlite_gyp 333 334 include $(BUILD_STATIC_LIBRARY) 335