Home | History | Annotate | Download | only in sql
      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 := sql_sql_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 
     15 GYP_GENERATED_OUTPUTS :=
     16 
     17 # Make sure our deps and generated files are built first.
     18 LOCAL_ADDITIONAL_DEPENDENCIES := $(GYP_TARGET_DEPENDENCIES) $(GYP_GENERATED_OUTPUTS)
     19 
     20 LOCAL_CPP_EXTENSION := .cc
     21 LOCAL_GENERATED_SOURCES :=
     22 
     23 GYP_COPIED_SOURCE_ORIGIN_DIRS :=
     24 
     25 LOCAL_SRC_FILES := \
     26 	sql/connection.cc \
     27 	sql/error_delegate_util.cc \
     28 	sql/meta_table.cc \
     29 	sql/recovery.cc \
     30 	sql/statement.cc \
     31 	sql/transaction.cc
     32 
     33 
     34 # Flags passed to both C and C++ files.
     35 MY_CFLAGS_Debug := \
     36 	-fstack-protector \
     37 	--param=ssp-buffer-size=4 \
     38 	-Werror \
     39 	-fno-strict-aliasing \
     40 	-Wall \
     41 	-Wno-unused-parameter \
     42 	-Wno-missing-field-initializers \
     43 	-fvisibility=hidden \
     44 	-pipe \
     45 	-fPIC \
     46 	-Wno-unused-local-typedefs \
     47 	-m64 \
     48 	-march=x86-64 \
     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 	-Os \
     62 	-g \
     63 	-gdwarf-4 \
     64 	-fdata-sections \
     65 	-ffunction-sections \
     66 	-fomit-frame-pointer \
     67 	-funwind-tables
     68 
     69 MY_DEFS_Debug := \
     70 	'-DV8_DEPRECATION_WARNINGS' \
     71 	'-D_FILE_OFFSET_BITS=64' \
     72 	'-DNO_TCMALLOC' \
     73 	'-DDISABLE_NACL' \
     74 	'-DCHROMIUM_BUILD' \
     75 	'-DUSE_LIBJPEG_TURBO=1' \
     76 	'-DENABLE_WEBRTC=1' \
     77 	'-DUSE_PROPRIETARY_CODECS' \
     78 	'-DENABLE_BROWSER_CDMS' \
     79 	'-DENABLE_CONFIGURATION_POLICY' \
     80 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
     81 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
     82 	'-DENABLE_EGLIMAGE=1' \
     83 	'-DCLD_VERSION=1' \
     84 	'-DENABLE_PRINTING=1' \
     85 	'-DENABLE_MANAGED_USERS=1' \
     86 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
     87 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
     88 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
     89 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
     90 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
     91 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
     92 	'-DVIDEO_HOLE=1' \
     93 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
     94 	'-DSQL_IMPLEMENTATION' \
     95 	'-DUSE_OPENSSL=1' \
     96 	'-DUSE_OPENSSL_CERTS=1' \
     97 	'-D__STDC_CONSTANT_MACROS' \
     98 	'-D__STDC_FORMAT_MACROS' \
     99 	'-DANDROID' \
    100 	'-D__GNU_SOURCE=1' \
    101 	'-DUSE_STLPORT=1' \
    102 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    103 	'-DCHROME_BUILD_ID=""' \
    104 	'-DDYNAMIC_ANNOTATIONS_ENABLED=1' \
    105 	'-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \
    106 	'-D_DEBUG'
    107 
    108 
    109 # Include paths placed before CFLAGS/CPPFLAGS
    110 LOCAL_C_INCLUDES_Debug := \
    111 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    112 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    113 	$(gyp_shared_intermediate_dir) \
    114 	$(LOCAL_PATH) \
    115 	$(LOCAL_PATH)/third_party/sqlite \
    116 	$(PWD)/frameworks/wilhelm/include \
    117 	$(PWD)/bionic \
    118 	$(PWD)/external/stlport/stlport
    119 
    120 
    121 # Flags passed to only C++ (and not C) files.
    122 LOCAL_CPPFLAGS_Debug := \
    123 	-fno-exceptions \
    124 	-fno-rtti \
    125 	-fno-threadsafe-statics \
    126 	-fvisibility-inlines-hidden \
    127 	-Wsign-compare \
    128 	-std=gnu++11 \
    129 	-Wno-narrowing \
    130 	-Wno-literal-suffix \
    131 	-Wno-non-virtual-dtor \
    132 	-Wno-sign-promo
    133 
    134 
    135 # Flags passed to both C and C++ files.
    136 MY_CFLAGS_Release := \
    137 	-fstack-protector \
    138 	--param=ssp-buffer-size=4 \
    139 	-Werror \
    140 	-fno-strict-aliasing \
    141 	-Wall \
    142 	-Wno-unused-parameter \
    143 	-Wno-missing-field-initializers \
    144 	-fvisibility=hidden \
    145 	-pipe \
    146 	-fPIC \
    147 	-Wno-unused-local-typedefs \
    148 	-m64 \
    149 	-march=x86-64 \
    150 	-ffunction-sections \
    151 	-funwind-tables \
    152 	-g \
    153 	-fstack-protector \
    154 	-fno-short-enums \
    155 	-finline-limit=64 \
    156 	-Wa,--noexecstack \
    157 	-U_FORTIFY_SOURCE \
    158 	-Wno-extra \
    159 	-Wno-ignored-qualifiers \
    160 	-Wno-type-limits \
    161 	-Wno-unused-but-set-variable \
    162 	-Os \
    163 	-fno-ident \
    164 	-fdata-sections \
    165 	-ffunction-sections \
    166 	-fomit-frame-pointer \
    167 	-funwind-tables
    168 
    169 MY_DEFS_Release := \
    170 	'-DV8_DEPRECATION_WARNINGS' \
    171 	'-D_FILE_OFFSET_BITS=64' \
    172 	'-DNO_TCMALLOC' \
    173 	'-DDISABLE_NACL' \
    174 	'-DCHROMIUM_BUILD' \
    175 	'-DUSE_LIBJPEG_TURBO=1' \
    176 	'-DENABLE_WEBRTC=1' \
    177 	'-DUSE_PROPRIETARY_CODECS' \
    178 	'-DENABLE_BROWSER_CDMS' \
    179 	'-DENABLE_CONFIGURATION_POLICY' \
    180 	'-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \
    181 	'-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \
    182 	'-DENABLE_EGLIMAGE=1' \
    183 	'-DCLD_VERSION=1' \
    184 	'-DENABLE_PRINTING=1' \
    185 	'-DENABLE_MANAGED_USERS=1' \
    186 	'-DDATA_REDUCTION_FALLBACK_HOST="http://compress.googlezip.net:80/"' \
    187 	'-DDATA_REDUCTION_DEV_HOST="https://proxy-dev.googlezip.net:443/"' \
    188 	'-DDATA_REDUCTION_DEV_FALLBACK_HOST="http://proxy-dev.googlezip.net:80/"' \
    189 	'-DSPDY_PROXY_AUTH_ORIGIN="https://proxy.googlezip.net:443/"' \
    190 	'-DDATA_REDUCTION_PROXY_PROBE_URL="http://check.googlezip.net/connect"' \
    191 	'-DDATA_REDUCTION_PROXY_WARMUP_URL="http://www.gstatic.com/generate_204"' \
    192 	'-DVIDEO_HOLE=1' \
    193 	'-DENABLE_LOAD_COMPLETION_HACKS=1' \
    194 	'-DSQL_IMPLEMENTATION' \
    195 	'-DUSE_OPENSSL=1' \
    196 	'-DUSE_OPENSSL_CERTS=1' \
    197 	'-D__STDC_CONSTANT_MACROS' \
    198 	'-D__STDC_FORMAT_MACROS' \
    199 	'-DANDROID' \
    200 	'-D__GNU_SOURCE=1' \
    201 	'-DUSE_STLPORT=1' \
    202 	'-D_STLP_USE_PTR_SPECIALIZATIONS=1' \
    203 	'-DCHROME_BUILD_ID=""' \
    204 	'-DNDEBUG' \
    205 	'-DNVALGRIND' \
    206 	'-DDYNAMIC_ANNOTATIONS_ENABLED=0' \
    207 	'-D_FORTIFY_SOURCE=2'
    208 
    209 
    210 # Include paths placed before CFLAGS/CPPFLAGS
    211 LOCAL_C_INCLUDES_Release := \
    212 	$(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \
    213 	$(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \
    214 	$(gyp_shared_intermediate_dir) \
    215 	$(LOCAL_PATH) \
    216 	$(LOCAL_PATH)/third_party/sqlite \
    217 	$(PWD)/frameworks/wilhelm/include \
    218 	$(PWD)/bionic \
    219 	$(PWD)/external/stlport/stlport
    220 
    221 
    222 # Flags passed to only C++ (and not C) files.
    223 LOCAL_CPPFLAGS_Release := \
    224 	-fno-exceptions \
    225 	-fno-rtti \
    226 	-fno-threadsafe-statics \
    227 	-fvisibility-inlines-hidden \
    228 	-Wsign-compare \
    229 	-std=gnu++11 \
    230 	-Wno-narrowing \
    231 	-Wno-literal-suffix \
    232 	-Wno-non-virtual-dtor \
    233 	-Wno-sign-promo
    234 
    235 
    236 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION))
    237 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION))
    238 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION))
    239 LOCAL_ASFLAGS := $(LOCAL_CFLAGS)
    240 ### Rules for final target.
    241 
    242 LOCAL_SHARED_LIBRARIES := \
    243 	libstlport \
    244 	libdl
    245 
    246 # Add target alias to "gyp_all_modules" target.
    247 .PHONY: gyp_all_modules
    248 gyp_all_modules: sql_sql_gyp
    249 
    250 # Alias gyp target name.
    251 .PHONY: sql
    252 sql: sql_sql_gyp
    253 
    254 include $(BUILD_STATIC_LIBRARY)
    255