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_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 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 \ 39 -fno-exceptions \ 40 -fno-strict-aliasing \ 41 -Wall \ 42 -Wno-unused-parameter \ 43 -Wno-missing-field-initializers \ 44 -fvisibility=hidden \ 45 -pipe \ 46 -fPIC \ 47 -EL \ 48 -mhard-float \ 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 -Os \ 61 -g \ 62 -fomit-frame-pointer \ 63 -fdata-sections \ 64 -ffunction-sections 65 66 MY_DEFS_Debug := \ 67 '-DV8_DEPRECATION_WARNINGS' \ 68 '-D_FILE_OFFSET_BITS=64' \ 69 '-DNO_TCMALLOC' \ 70 '-DDISABLE_NACL' \ 71 '-DCHROMIUM_BUILD' \ 72 '-DUSE_LIBJPEG_TURBO=1' \ 73 '-DUSE_PROPRIETARY_CODECS' \ 74 '-DENABLE_CONFIGURATION_POLICY' \ 75 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 76 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 77 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 78 '-DUSE_OPENSSL=1' \ 79 '-DENABLE_EGLIMAGE=1' \ 80 '-DCLD_VERSION=1' \ 81 '-DENABLE_PRINTING=1' \ 82 '-DENABLE_MANAGED_USERS=1' \ 83 '-DSQL_IMPLEMENTATION' \ 84 '-D__STDC_CONSTANT_MACROS' \ 85 '-D__STDC_FORMAT_MACROS' \ 86 '-DANDROID' \ 87 '-D__GNU_SOURCE=1' \ 88 '-DUSE_STLPORT=1' \ 89 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 90 '-DCHROME_BUILD_ID=""' \ 91 '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ 92 '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ 93 '-D_DEBUG' 94 95 96 # Include paths placed before CFLAGS/CPPFLAGS 97 LOCAL_C_INCLUDES_Debug := \ 98 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 99 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 100 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 101 $(LOCAL_PATH) \ 102 $(LOCAL_PATH)/third_party/sqlite \ 103 $(PWD)/frameworks/wilhelm/include \ 104 $(PWD)/bionic \ 105 $(PWD)/external/stlport/stlport 106 107 108 # Flags passed to only C++ (and not C) files. 109 LOCAL_CPPFLAGS_Debug := \ 110 -fno-rtti \ 111 -fno-threadsafe-statics \ 112 -fvisibility-inlines-hidden \ 113 -Wsign-compare \ 114 -Wno-uninitialized \ 115 -Wno-error=c++0x-compat \ 116 -Wno-non-virtual-dtor \ 117 -Wno-sign-promo 118 119 120 # Flags passed to both C and C++ files. 121 MY_CFLAGS_Release := \ 122 -fstack-protector \ 123 --param=ssp-buffer-size=4 \ 124 \ 125 -fno-exceptions \ 126 -fno-strict-aliasing \ 127 -Wall \ 128 -Wno-unused-parameter \ 129 -Wno-missing-field-initializers \ 130 -fvisibility=hidden \ 131 -pipe \ 132 -fPIC \ 133 -EL \ 134 -mhard-float \ 135 -ffunction-sections \ 136 -funwind-tables \ 137 -g \ 138 -fstack-protector \ 139 -fno-short-enums \ 140 -finline-limit=64 \ 141 -Wa,--noexecstack \ 142 -U_FORTIFY_SOURCE \ 143 -Wno-extra \ 144 -Wno-ignored-qualifiers \ 145 -Wno-type-limits \ 146 -Os \ 147 -fno-ident \ 148 -fdata-sections \ 149 -ffunction-sections \ 150 -fomit-frame-pointer 151 152 MY_DEFS_Release := \ 153 '-DV8_DEPRECATION_WARNINGS' \ 154 '-D_FILE_OFFSET_BITS=64' \ 155 '-DNO_TCMALLOC' \ 156 '-DDISABLE_NACL' \ 157 '-DCHROMIUM_BUILD' \ 158 '-DUSE_LIBJPEG_TURBO=1' \ 159 '-DUSE_PROPRIETARY_CODECS' \ 160 '-DENABLE_CONFIGURATION_POLICY' \ 161 '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ 162 '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ 163 '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' \ 164 '-DUSE_OPENSSL=1' \ 165 '-DENABLE_EGLIMAGE=1' \ 166 '-DCLD_VERSION=1' \ 167 '-DENABLE_PRINTING=1' \ 168 '-DENABLE_MANAGED_USERS=1' \ 169 '-DSQL_IMPLEMENTATION' \ 170 '-D__STDC_CONSTANT_MACROS' \ 171 '-D__STDC_FORMAT_MACROS' \ 172 '-DANDROID' \ 173 '-D__GNU_SOURCE=1' \ 174 '-DUSE_STLPORT=1' \ 175 '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ 176 '-DCHROME_BUILD_ID=""' \ 177 '-DNDEBUG' \ 178 '-DNVALGRIND' \ 179 '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ 180 '-D_FORTIFY_SOURCE=2' 181 182 183 # Include paths placed before CFLAGS/CPPFLAGS 184 LOCAL_C_INCLUDES_Release := \ 185 $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ 186 $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ 187 $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ 188 $(LOCAL_PATH) \ 189 $(LOCAL_PATH)/third_party/sqlite \ 190 $(PWD)/frameworks/wilhelm/include \ 191 $(PWD)/bionic \ 192 $(PWD)/external/stlport/stlport 193 194 195 # Flags passed to only C++ (and not C) files. 196 LOCAL_CPPFLAGS_Release := \ 197 -fno-rtti \ 198 -fno-threadsafe-statics \ 199 -fvisibility-inlines-hidden \ 200 -Wsign-compare \ 201 -Wno-uninitialized \ 202 -Wno-error=c++0x-compat \ 203 -Wno-non-virtual-dtor \ 204 -Wno-sign-promo 205 206 207 LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) 208 LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) 209 LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) 210 ### Rules for final target. 211 212 LOCAL_LDFLAGS_Debug := \ 213 -Wl,-z,now \ 214 -Wl,-z,relro \ 215 -Wl,-z,noexecstack \ 216 -fPIC \ 217 -EL \ 218 -Wl,--no-keep-memory \ 219 -nostdlib \ 220 -Wl,--no-undefined \ 221 -Wl,--exclude-libs=ALL \ 222 -Wl,--fatal-warnings \ 223 -Wl,--gc-sections \ 224 -Wl,--warn-shared-textrel \ 225 -Wl,-O1 \ 226 -Wl,--as-needed 227 228 229 LOCAL_LDFLAGS_Release := \ 230 -Wl,-z,now \ 231 -Wl,-z,relro \ 232 -Wl,-z,noexecstack \ 233 -fPIC \ 234 -EL \ 235 -Wl,--no-keep-memory \ 236 -nostdlib \ 237 -Wl,--no-undefined \ 238 -Wl,--exclude-libs=ALL \ 239 -Wl,-O1 \ 240 -Wl,--as-needed \ 241 -Wl,--gc-sections \ 242 -Wl,--fatal-warnings \ 243 -Wl,--warn-shared-textrel 244 245 246 LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) 247 248 LOCAL_STATIC_LIBRARIES := 249 250 # Enable grouping to fix circular references 251 LOCAL_GROUP_STATIC_LIBRARIES := true 252 253 LOCAL_SHARED_LIBRARIES := \ 254 libstlport \ 255 libdl 256 257 # Add target alias to "gyp_all_modules" target. 258 .PHONY: gyp_all_modules 259 gyp_all_modules: sql_sql_gyp 260 261 # Alias gyp target name. 262 .PHONY: sql 263 sql: sql_sql_gyp 264 265 include $(BUILD_STATIC_LIBRARY) 266