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