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