Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 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 \ |
Ben Murdoch | ca12bfa | 2013-07-23 11:17:05 +0100 | [diff] [blame] | 29 | sql/recovery.cc \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 30 | sql/statement.cc \ |
| 31 | sql/transaction.cc |
| 32 | |
| 33 | |
| 34 | # Flags passed to both C and C++ files. |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 35 | MY_CFLAGS_Debug := \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 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 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 67 | MY_DEFS_Debug := \ |
Torne (Richard Coles) | 7d4cd47 | 2013-06-19 11:58:07 +0100 | [diff] [blame] | 68 | '-DANGLE_DX11' \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 69 | '-D_FILE_OFFSET_BITS=64' \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 70 | '-DNO_TCMALLOC' \ |
| 71 | '-DDISABLE_NACL' \ |
| 72 | '-DCHROMIUM_BUILD' \ |
| 73 | '-DUSE_LIBJPEG_TURBO=1' \ |
| 74 | '-DUSE_PROPRIETARY_CODECS' \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 75 | '-DENABLE_CONFIGURATION_POLICY' \ |
Torne (Richard Coles) | 1e9bf3e | 2013-10-31 11:16:26 +0000 | [diff] [blame] | 76 | '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ |
| 77 | '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 78 | '-DUSE_OPENSSL=1' \ |
| 79 | '-DENABLE_EGLIMAGE=1' \ |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 80 | '-DCLD_VERSION=1' \ |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 81 | '-DENABLE_MANAGED_USERS=1' \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 82 | '-DSQL_IMPLEMENTATION' \ |
| 83 | '-D__STDC_CONSTANT_MACROS' \ |
| 84 | '-D__STDC_FORMAT_MACROS' \ |
| 85 | '-DANDROID' \ |
| 86 | '-D__GNU_SOURCE=1' \ |
| 87 | '-DUSE_STLPORT=1' \ |
| 88 | '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ |
| 89 | '-DCHROME_BUILD_ID=""' \ |
| 90 | '-DDYNAMIC_ANNOTATIONS_ENABLED=1' \ |
| 91 | '-DWTF_USE_DYNAMIC_ANNOTATIONS=1' \ |
| 92 | '-D_DEBUG' |
| 93 | |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 94 | |
| 95 | # Include paths placed before CFLAGS/CPPFLAGS |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 96 | LOCAL_C_INCLUDES_Debug := \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 97 | $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ |
Ben Murdoch | bbcdd45 | 2013-07-25 10:06:34 +0100 | [diff] [blame] | 98 | $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ |
| 99 | $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ |
| 100 | $(LOCAL_PATH) \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 101 | $(LOCAL_PATH)/third_party/sqlite \ |
Torne (Richard Coles) | 90dce4d | 2013-05-29 14:40:03 +0100 | [diff] [blame] | 102 | $(PWD)/frameworks/wilhelm/include \ |
| 103 | $(PWD)/bionic \ |
| 104 | $(PWD)/external/stlport/stlport |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 105 | |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 106 | |
| 107 | # Flags passed to only C++ (and not C) files. |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 108 | LOCAL_CPPFLAGS_Debug := \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 109 | -fno-rtti \ |
| 110 | -fno-threadsafe-statics \ |
| 111 | -fvisibility-inlines-hidden \ |
| 112 | -Wsign-compare \ |
| 113 | -Wno-abi \ |
| 114 | -Wno-error=c++0x-compat \ |
| 115 | -Wno-non-virtual-dtor \ |
| 116 | -Wno-sign-promo |
| 117 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 118 | |
| 119 | # Flags passed to both C and C++ files. |
| 120 | MY_CFLAGS_Release := \ |
| 121 | -fstack-protector \ |
| 122 | --param=ssp-buffer-size=4 \ |
| 123 | -Werror \ |
| 124 | -fno-exceptions \ |
| 125 | -fno-strict-aliasing \ |
| 126 | -Wall \ |
| 127 | -Wno-unused-parameter \ |
| 128 | -Wno-missing-field-initializers \ |
| 129 | -fvisibility=hidden \ |
| 130 | -pipe \ |
| 131 | -fPIC \ |
| 132 | -fno-tree-sra \ |
| 133 | -fuse-ld=gold \ |
| 134 | -Wno-psabi \ |
| 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 | '-DANGLE_DX11' \ |
| 154 | '-D_FILE_OFFSET_BITS=64' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 155 | '-DNO_TCMALLOC' \ |
| 156 | '-DDISABLE_NACL' \ |
| 157 | '-DCHROMIUM_BUILD' \ |
| 158 | '-DUSE_LIBJPEG_TURBO=1' \ |
| 159 | '-DUSE_PROPRIETARY_CODECS' \ |
Ben Murdoch | a3f7b4e | 2013-07-24 10:36:34 +0100 | [diff] [blame] | 160 | '-DENABLE_CONFIGURATION_POLICY' \ |
Torne (Richard Coles) | 1e9bf3e | 2013-10-31 11:16:26 +0000 | [diff] [blame] | 161 | '-DDISCARDABLE_MEMORY_ALWAYS_SUPPORTED_NATIVELY' \ |
| 162 | '-DSYSTEM_NATIVELY_SIGNALS_MEMORY_PRESSURE' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 163 | '-DUSE_OPENSSL=1' \ |
| 164 | '-DENABLE_EGLIMAGE=1' \ |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 165 | '-DCLD_VERSION=1' \ |
Torne (Richard Coles) | f2477e0 | 2013-11-28 11:55:43 +0000 | [diff] [blame] | 166 | '-DENABLE_MANAGED_USERS=1' \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 167 | '-DSQL_IMPLEMENTATION' \ |
| 168 | '-D__STDC_CONSTANT_MACROS' \ |
| 169 | '-D__STDC_FORMAT_MACROS' \ |
| 170 | '-DANDROID' \ |
| 171 | '-D__GNU_SOURCE=1' \ |
| 172 | '-DUSE_STLPORT=1' \ |
| 173 | '-D_STLP_USE_PTR_SPECIALIZATIONS=1' \ |
| 174 | '-DCHROME_BUILD_ID=""' \ |
| 175 | '-DNDEBUG' \ |
| 176 | '-DNVALGRIND' \ |
| 177 | '-DDYNAMIC_ANNOTATIONS_ENABLED=0' \ |
| 178 | '-D_FORTIFY_SOURCE=2' |
| 179 | |
| 180 | |
| 181 | # Include paths placed before CFLAGS/CPPFLAGS |
| 182 | LOCAL_C_INCLUDES_Release := \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 183 | $(gyp_shared_intermediate_dir)/shim_headers/icuuc/target \ |
Ben Murdoch | bbcdd45 | 2013-07-25 10:06:34 +0100 | [diff] [blame] | 184 | $(gyp_shared_intermediate_dir)/shim_headers/icui18n/target \ |
| 185 | $(gyp_shared_intermediate_dir)/shim_headers/ashmem/target \ |
| 186 | $(LOCAL_PATH) \ |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 187 | $(LOCAL_PATH)/third_party/sqlite \ |
| 188 | $(PWD)/frameworks/wilhelm/include \ |
| 189 | $(PWD)/bionic \ |
| 190 | $(PWD)/external/stlport/stlport |
| 191 | |
| 192 | |
| 193 | # Flags passed to only C++ (and not C) files. |
| 194 | LOCAL_CPPFLAGS_Release := \ |
| 195 | -fno-rtti \ |
| 196 | -fno-threadsafe-statics \ |
| 197 | -fvisibility-inlines-hidden \ |
| 198 | -Wsign-compare \ |
| 199 | -Wno-abi \ |
| 200 | -Wno-error=c++0x-compat \ |
| 201 | -Wno-non-virtual-dtor \ |
| 202 | -Wno-sign-promo |
| 203 | |
| 204 | |
| 205 | LOCAL_CFLAGS := $(MY_CFLAGS_$(GYP_CONFIGURATION)) $(MY_DEFS_$(GYP_CONFIGURATION)) |
| 206 | LOCAL_C_INCLUDES := $(GYP_COPIED_SOURCE_ORIGIN_DIRS) $(LOCAL_C_INCLUDES_$(GYP_CONFIGURATION)) |
| 207 | LOCAL_CPPFLAGS := $(LOCAL_CPPFLAGS_$(GYP_CONFIGURATION)) |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 208 | ### Rules for final target. |
| 209 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 210 | LOCAL_LDFLAGS_Debug := \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 211 | -Wl,-z,now \ |
| 212 | -Wl,-z,relro \ |
| 213 | -Wl,-z,noexecstack \ |
| 214 | -fPIC \ |
| 215 | -Wl,-z,relro \ |
| 216 | -Wl,-z,now \ |
| 217 | -fuse-ld=gold \ |
| 218 | -nostdlib \ |
| 219 | -Wl,--no-undefined \ |
| 220 | -Wl,--exclude-libs=ALL \ |
| 221 | -Wl,--icf=safe \ |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 222 | -Wl,--fatal-warnings \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 223 | -Wl,--gc-sections \ |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 224 | -Wl,--warn-shared-textrel \ |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 225 | -Wl,-O1 \ |
Torne (Richard Coles) | c2e0dbd | 2013-05-09 18:35:53 +0100 | [diff] [blame] | 226 | -Wl,--as-needed |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 227 | |
| 228 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 229 | LOCAL_LDFLAGS_Release := \ |
| 230 | -Wl,-z,now \ |
| 231 | -Wl,-z,relro \ |
| 232 | -Wl,-z,noexecstack \ |
| 233 | -fPIC \ |
| 234 | -Wl,-z,relro \ |
| 235 | -Wl,-z,now \ |
| 236 | -fuse-ld=gold \ |
| 237 | -nostdlib \ |
| 238 | -Wl,--no-undefined \ |
| 239 | -Wl,--exclude-libs=ALL \ |
| 240 | -Wl,--icf=safe \ |
| 241 | -Wl,-O1 \ |
| 242 | -Wl,--as-needed \ |
Torne (Richard Coles) | 58537e2 | 2013-09-12 12:10:22 +0100 | [diff] [blame] | 243 | -Wl,--gc-sections \ |
| 244 | -Wl,--fatal-warnings \ |
| 245 | -Wl,--warn-shared-textrel |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 246 | |
| 247 | |
| 248 | LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) |
| 249 | |
Torne (Richard Coles) | 2a99a7e | 2013-03-28 15:31:22 +0000 | [diff] [blame] | 250 | LOCAL_STATIC_LIBRARIES := |
| 251 | |
| 252 | # Enable grouping to fix circular references |
| 253 | LOCAL_GROUP_STATIC_LIBRARIES := true |
| 254 | |
| 255 | LOCAL_SHARED_LIBRARIES := \ |
| 256 | libstlport \ |
| 257 | libdl |
| 258 | |
| 259 | # Add target alias to "gyp_all_modules" target. |
| 260 | .PHONY: gyp_all_modules |
| 261 | gyp_all_modules: sql_sql_gyp |
| 262 | |
| 263 | # Alias gyp target name. |
| 264 | .PHONY: sql |
| 265 | sql: sql_sql_gyp |
| 266 | |
| 267 | include $(BUILD_STATIC_LIBRARY) |