Home | History | Annotate | Download | only in sqlite
      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 	-fstack-protector \
     39 	--param=ssp-buffer-size=4 \
     40 	 \
     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 	-fstack-protector \
     53 	-fno-short-enums \
     54 	-finline-limit=64 \
     55 	-Wa,--noexecstack \
     56 	-U_FORTIFY_SOURCE \
     57 	-Wno-extra \
     58 	-Wno-ignored-qualifiers \
     59 	-Wno-type-limits \
     60 	-Wno-unused-but-set-variable \
     61 	-Wno-address \
     62 	-Wno-format-security \
     63 	-Wno-return-type \
     64 	-Wno-sequence-point \
     65 	-Os \
     66 	-g \
     67 	-gdwarf-4 \
     68 	-fdata-sections \
     69 	-ffunction-sections \
     70 	-fomit-frame-pointer \
     71 	-funwind-tables
     72 
     73 MY_DEFS_Debug := \
     74 	'-DSQLITE_CORE' \
     75 	'-DSQLITE_ENABLE_BROKEN_FTS2' \
     76 	'-DSQLITE_ENABLE_FTS2' \
     77 	'-DSQLITE_ENABLE_FTS3' \
     78 	'-DSQLITE_ENABLE_ICU' \
     79 	'-DSQLITE_ENABLE_MEMORY_MANAGEMENT' \
     80 	'-DSQLITE_SECURE_DELETE' \
     81 	'-DSQLITE_SEPARATE_CACHE_POOLS' \
     82 	'-DTHREADSAFE' \
     83 	'-D_HAS_EXCEPTIONS=0' \
     84 	'-DV8_DEPRECATION_WARNINGS' \
     85 	'-D_FILE_OFFSET_BITS=64' \
     86 	'-DNO_TCMALLOC' \
     87 	'-DDISABLE_NACL' \
     88 	'-DCHROMIUM_BUILD' \
     89 	'-DUSE_LIBJPEG_TURBO=1' \
     90 	'-DENABLE_WEBRTC=1' \
     91 	'-DUSE_PROPRIETARY_CODECS' \
     92 	'-DENABLE_BROWSER_CDMS' \
     93 	'-DENABLE_CONFIGURATION_POLICY' \
     94 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     95 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     96 	'-DENABLE_EGLIMAGE=1' \
     97 	'-DCLD_VERSION=1' \
     98 	'-DENABLE_PRINTING=1' \
     99 	'-DENABLE_MANAGED_USERS=1' \
    100 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    101 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    102 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    103 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    104 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    105 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    106 	'-DVIDEO_HOLE=1' \
    107 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    108 	'-DHAVE_USLEEP=1' \
    109 	'-DSQLITE_DEFAULT_JOURNAL_SIZE_LIMIT=1048576' \
    110 	'-DSQLITE_DEFAULT_AUTOVACUUM=1' \
    111 	'-DSQLITE_TEMP_STORE=3' \
    112 	'-DSQLITE_ENABLE_FTS3_BACKWARDS' \
    113 	'-DDSQLITE_DEFAULT_FILE_FORMAT=4' \
    114 	'-DU_USING_ICU_NAMESPACE=0' \
    115 	'-DU_ENABLE_DYLOAD=0' \
    116 	'-DUSE_OPENSSL=1' \
    117 	'-DUSE_OPENSSL_CERTS=1' \
    118 	'-DANDROID' \
    119 	'-D__GNU_SOURCE=1' \
    120 	'-DUSE_STLPORT=1' \
    121 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    122 	'-DCHROME_BUILD_ID=""' \
    123 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    124 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    125 	'-D_DEBUG'
    126 
    127 
    128 # Include paths placed before CFLAGS/CPPFLAGS
    129 LOCAL_C_INCLUDES_Debug := \
    130 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    131 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    132 	$(gyp_shared_intermediate_dir) \
    133 	$(LOCAL_PATH)/third_party/sqlite/amalgamation \
    134 	$(LOCAL_PATH)/third_party/sqlite/src/src \
    135 	$(PWD)/external/icu/icu4c/source/common \
    136 	$(PWD)/external/icu/icu4c/source/i18n \
    137 	$(PWD)/frameworks/wilhelm/include \
    138 	$(PWD)/bionic \
    139 	$(PWD)/external/stlport/stlport
    140 
    141 
    142 # Flags passed to only C++ (and not C) files.
    143 LOCAL_CPPFLAGS_Debug := \
    144 	-fno-exceptions \
    145 	-fno-rtti \
    146 	-fno-threadsafe-statics \
    147 	-fvisibility-inlines-hidden \
    148 	-Wno-deprecated \
    149 	-Wno-uninitialized \
    150 	-std=gnu++11 \
    151 	-Wno-narrowing \
    152 	-Wno-literal-suffix \
    153 	-Wno-non-virtual-dtor \
    154 	-Wno-sign-promo \
    155 	-Wno-non-virtual-dtor
    156 
    157 
    158 # Flags passed to both C and C++ files.
    159 MY_CFLAGS_Release := \
    160 	-fstack-protector \
    161 	--param=ssp-buffer-size=4 \
    162 	 \
    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 	-ffunction-sections \
    172 	-funwind-tables \
    173 	-g \
    174 	-fstack-protector \
    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 	-Wno-address \
    184 	-Wno-format-security \
    185 	-Wno-return-type \
    186 	-Wno-sequence-point \
    187 	-Os \
    188 	-fno-ident \
    189 	-fdata-sections \
    190 	-ffunction-sections \
    191 	-fomit-frame-pointer \
    192 	-funwind-tables
    193 
    194 MY_DEFS_Release := \
    195 	'-DSQLITE_CORE' \
    196 	'-DSQLITE_ENABLE_BROKEN_FTS2' \
    197 	'-DSQLITE_ENABLE_FTS2' \
    198 	'-DSQLITE_ENABLE_FTS3' \
    199 	'-DSQLITE_ENABLE_ICU' \
    200 	'-DSQLITE_ENABLE_MEMORY_MANAGEMENT' \
    201 	'-DSQLITE_SECURE_DELETE' \
    202 	'-DSQLITE_SEPARATE_CACHE_POOLS' \
    203 	'-DTHREADSAFE' \
    204 	'-D_HAS_EXCEPTIONS=0' \
    205 	'-DV8_DEPRECATION_WARNINGS' \
    206 	'-D_FILE_OFFSET_BITS=64' \
    207 	'-DNO_TCMALLOC' \
    208 	'-DDISABLE_NACL' \
    209 	'-DCHROMIUM_BUILD' \
    210 	'-DUSE_LIBJPEG_TURBO=1' \
    211 	'-DENABLE_WEBRTC=1' \
    212 	'-DUSE_PROPRIETARY_CODECS' \
    213 	'-DENABLE_BROWSER_CDMS' \
    214 	'-DENABLE_CONFIGURATION_POLICY' \
    215 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    216 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    217 	'-DENABLE_EGLIMAGE=1' \
    218 	'-DCLD_VERSION=1' \
    219 	'-DENABLE_PRINTING=1' \
    220 	'-DENABLE_MANAGED_USERS=1' \
    221 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    222 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    223 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    224 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    225 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    226 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    227 	'-DVIDEO_HOLE=1' \
    228 	'-DENABLE_LOAD_COMPLETION_HACKS=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 	'-DU_ENABLE_DYLOAD=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-exceptions \
    266 	-fno-rtti \
    267 	-fno-threadsafe-statics \
    268 	-fvisibility-inlines-hidden \
    269 	-Wno-deprecated \
    270 	-Wno-uninitialized \
    271 	-std=gnu++11 \
    272 	-Wno-narrowing \
    273 	-Wno-literal-suffix \
    274 	-Wno-non-virtual-dtor \
    275 	-Wno-sign-promo \
    276 	-Wno-non-virtual-dtor
    277 
    278 
    279 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    280 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    281 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    282 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    283 ### Rules for final target.
    284 
    285 LOCAL_SHARED_LIBRARIES := \
    286 	libstlport \
    287 	libdl
    288 
    289 ### Set directly by aosp_build_settings.
    290 LOCAL_FDO_SUPPORT := true
    291 
    292 # Add target alias to "gyp_all_modules" target.
    293 .PHONY: gyp_all_modules
    294 gyp_all_modules: third_party_sqlite_sqlite_gyp
    295 
    296 # Alias gyp target name.
    297 .PHONY: sqlite
    298 sqlite: third_party_sqlite_sqlite_gyp
    299 
    300 include $(BUILD_STATIC_LIBRARY)
    301