Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 1 | // Copyright 2017 Google Inc. All rights reserved. |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 15 | subdirs = [ |
| 16 | "Lib", |
| 17 | ] |
| 18 | |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 19 | cc_defaults { |
| 20 | name: "py2-interp-defaults", |
| 21 | cflags: [ |
| 22 | "-fwrapv", |
| 23 | "-O3", |
| 24 | "-Wall", |
| 25 | "-Wstrict-prototypes", |
| 26 | "-DPy_BUILD_CORE", |
Nan Zhang | 33bb4bb | 2017-12-01 20:00:54 +0000 | [diff] [blame] | 27 | "-Werror", |
Dan Willemsen | 04e3910 | 2019-02-14 21:00:06 -0800 | [diff] [blame] | 28 | "-Wno-invalid-source-encoding", |
Tri Vo | 0b5cc4f | 2017-12-11 13:29:15 -0800 | [diff] [blame] | 29 | "-Wno-int-conversion", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 30 | "-Wno-missing-field-initializers", |
Yi Kong | 892b1a8 | 2018-12-12 11:58:51 -0800 | [diff] [blame] | 31 | "-Wno-null-pointer-arithmetic", |
Elliott Hughes | e42a596 | 2018-10-26 13:18:00 -0700 | [diff] [blame] | 32 | "-Wno-register", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 33 | "-Wno-shift-count-overflow", |
| 34 | "-Wno-sign-compare", |
| 35 | "-Wno-tautological-compare", |
| 36 | "-Wno-tautological-constant-out-of-range-compare", |
| 37 | "-Wno-unused-parameter", |
| 38 | "-Wno-unused-result", |
| 39 | ], |
| 40 | local_include_dirs: ["Include"], |
| 41 | target: { |
Nan Zhang | 33bb4bb | 2017-12-01 20:00:54 +0000 | [diff] [blame] | 42 | android_arm: { |
| 43 | local_include_dirs: ["android_arm/pyconfig"], |
| 44 | }, |
| 45 | android_arm64: { |
| 46 | local_include_dirs: ["android_arm64/pyconfig"], |
| 47 | }, |
| 48 | android_x86: { |
| 49 | local_include_dirs: ["android_x86/pyconfig"], |
| 50 | }, |
| 51 | android_x86_64: { |
| 52 | local_include_dirs: ["android_x86_64/pyconfig"], |
| 53 | }, |
Dan Willemsen | c88c080 | 2017-09-25 14:33:27 -0700 | [diff] [blame] | 54 | // Regenerate include dirs with android_regen.sh |
| 55 | darwin_x86_64: { |
| 56 | local_include_dirs: ["darwin_x86_64/pyconfig"], |
Stephen Hines | b788eb5 | 2017-11-20 17:31:30 -0800 | [diff] [blame] | 57 | cflags: [ |
| 58 | "-Wno-deprecated-declarations", |
| 59 | "-Wno-pointer-arith", |
| 60 | ], |
Dan Willemsen | c88c080 | 2017-09-25 14:33:27 -0700 | [diff] [blame] | 61 | }, |
Nan Zhang | 33bb4bb | 2017-12-01 20:00:54 +0000 | [diff] [blame] | 62 | linux_glibc_x86: { |
| 63 | enabled: false, |
| 64 | }, |
Dan Willemsen | e41d4ce | 2017-10-02 10:41:09 -0700 | [diff] [blame] | 65 | linux_glibc_x86_64: { |
Dan Willemsen | c88c080 | 2017-09-25 14:33:27 -0700 | [diff] [blame] | 66 | local_include_dirs: ["linux_x86_64/pyconfig"], |
Chih-Hung Hsieh | 6eebfa0 | 2017-10-13 14:40:05 -0700 | [diff] [blame] | 67 | cflags: ["-Werror"], |
Dan Willemsen | c88c080 | 2017-09-25 14:33:27 -0700 | [diff] [blame] | 68 | }, |
| 69 | windows: { |
| 70 | enabled: false, |
| 71 | }, |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 72 | }, |
| 73 | host_supported: true, |
Nan Zhang | 33bb4bb | 2017-12-01 20:00:54 +0000 | [diff] [blame] | 74 | compile_multilib: "both", |
| 75 | multilib: { |
| 76 | lib32: { |
| 77 | suffix: "32", |
| 78 | }, |
| 79 | lib64: { |
| 80 | suffix: "64", |
| 81 | }, |
| 82 | }, |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 83 | } |
| 84 | |
| 85 | cc_library_static { |
| 86 | name: "py2-interp-parser", |
| 87 | defaults: ["py2-interp-defaults"], |
| 88 | srcs: [ |
| 89 | "Parser/acceler.c", |
| 90 | "Parser/bitset.c", |
| 91 | "Parser/firstsets.c", |
| 92 | "Parser/grammar.c", |
| 93 | "Parser/grammar1.c", |
| 94 | "Parser/listnode.c", |
| 95 | "Parser/metagrammar.c", |
| 96 | "Parser/myreadline.c", |
| 97 | "Parser/node.c", |
| 98 | "Parser/parser.c", |
| 99 | "Parser/parsetok.c", |
| 100 | "Parser/pgen.c", |
| 101 | "Parser/tokenizer.c", |
| 102 | ], |
| 103 | } |
| 104 | |
| 105 | cc_library_static { |
| 106 | name: "py2-interp-object", |
| 107 | defaults: ["py2-interp-defaults"], |
| 108 | srcs: [ |
| 109 | "Objects/abstract.c", |
| 110 | "Objects/boolobject.c", |
| 111 | "Objects/bufferobject.c", |
| 112 | "Objects/bytes_methods.c", |
| 113 | "Objects/bytearrayobject.c", |
| 114 | "Objects/capsule.c", |
| 115 | "Objects/cellobject.c", |
| 116 | "Objects/classobject.c", |
| 117 | "Objects/cobject.c", |
| 118 | "Objects/codeobject.c", |
| 119 | "Objects/complexobject.c", |
| 120 | "Objects/descrobject.c", |
| 121 | "Objects/enumobject.c", |
| 122 | "Objects/exceptions.c", |
| 123 | "Objects/genobject.c", |
| 124 | "Objects/fileobject.c", |
| 125 | "Objects/floatobject.c", |
| 126 | "Objects/frameobject.c", |
| 127 | "Objects/funcobject.c", |
| 128 | "Objects/intobject.c", |
| 129 | "Objects/iterobject.c", |
| 130 | "Objects/listobject.c", |
| 131 | "Objects/longobject.c", |
| 132 | "Objects/dictobject.c", |
| 133 | "Objects/memoryobject.c", |
| 134 | "Objects/methodobject.c", |
| 135 | "Objects/moduleobject.c", |
| 136 | "Objects/object.c", |
| 137 | "Objects/obmalloc.c", |
| 138 | "Objects/rangeobject.c", |
| 139 | "Objects/setobject.c", |
| 140 | "Objects/sliceobject.c", |
| 141 | "Objects/stringobject.c", |
| 142 | "Objects/structseq.c", |
| 143 | "Objects/tupleobject.c", |
| 144 | "Objects/typeobject.c", |
| 145 | "Objects/weakrefobject.c", |
| 146 | "Objects/unicodeobject.c", |
| 147 | "Objects/unicodectype.c", |
| 148 | ], |
| 149 | } |
| 150 | |
| 151 | cc_library_static { |
| 152 | name: "py2-interp-python", |
| 153 | defaults: ["py2-interp-defaults"], |
Nan Zhang | 04b6dca | 2017-12-05 13:34:52 -0800 | [diff] [blame] | 154 | target: { |
| 155 | linux: { |
| 156 | cflags: [ |
| 157 | "-DPLATFORM=\"linux2\"", |
| 158 | ], |
| 159 | }, |
| 160 | darwin_x86_64: { |
| 161 | cflags: [ |
| 162 | "-DPLATFORM=\"darwin\"", |
| 163 | ], |
| 164 | }, |
| 165 | }, |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 166 | srcs: [ |
| 167 | "Python/_warnings.c", |
| 168 | "Python/Python-ast.c", |
| 169 | "Python/asdl.c", |
| 170 | "Python/ast.c", |
| 171 | "Python/bltinmodule.c", |
| 172 | "Python/ceval.c", |
| 173 | "Python/compile.c", |
| 174 | "Python/codecs.c", |
| 175 | "Python/errors.c", |
| 176 | "Python/frozen.c", |
| 177 | "Python/frozenmain.c", |
| 178 | "Python/future.c", |
| 179 | "Python/getargs.c", |
| 180 | "Python/getcompiler.c", |
| 181 | "Python/getcopyright.c", |
| 182 | "Python/getplatform.c", |
| 183 | "Python/getversion.c", |
| 184 | "Python/graminit.c", |
| 185 | "Python/import.c", |
| 186 | "Python/importdl.c", |
| 187 | "Python/marshal.c", |
| 188 | "Python/modsupport.c", |
| 189 | "Python/mystrtoul.c", |
| 190 | "Python/mysnprintf.c", |
| 191 | "Python/peephole.c", |
| 192 | "Python/pyarena.c", |
| 193 | "Python/pyctype.c", |
| 194 | "Python/pyfpe.c", |
| 195 | "Python/pymath.c", |
| 196 | "Python/pystate.c", |
| 197 | "Python/pythonrun.c", |
| 198 | "Python/random.c", |
| 199 | "Python/structmember.c", |
| 200 | "Python/symtable.c", |
| 201 | "Python/sysmodule.c", |
| 202 | "Python/traceback.c", |
| 203 | "Python/getopt.c", |
| 204 | "Python/pystrcmp.c", |
| 205 | "Python/pystrtod.c", |
| 206 | "Python/dtoa.c", |
| 207 | "Python/formatter_unicode.c", |
| 208 | "Python/formatter_string.c", |
| 209 | "Python/dynload_shlib.c", |
| 210 | "Python/thread.c", |
| 211 | ], |
| 212 | } |
| 213 | |
| 214 | cc_binary { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 215 | name: "py2-launcher", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 216 | defaults: ["py2-interp-defaults"], |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 217 | cflags: [ |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 218 | "-DVERSION=\"2.7\"", |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 219 | "-DVPATH=\"\"", |
| 220 | "-DPREFIX=\"\"", |
| 221 | "-DEXEC_PREFIX=\"\"", |
| 222 | "-DPYTHONPATH=\"\"", |
Igor Murashkin | ec37d4a | 2018-08-01 14:30:55 -0700 | [diff] [blame] | 223 | "-DDATE=\"Dec 31 1969\"", |
| 224 | "-DTIME=\"23:59:59\"", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 225 | ], |
| 226 | srcs: [ |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 227 | "Launcher/launcher_main.cpp", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 228 | "Modules/gcmodule.c", |
| 229 | "Modules/getpath.c", |
| 230 | "Modules/config.c", |
| 231 | "Modules/getbuildinfo.c", |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 232 | // Default built-in extension py2-c-modules. |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 233 | "Modules/threadmodule.c", |
| 234 | "Modules/signalmodule.c", |
| 235 | "Modules/posixmodule.c", |
| 236 | "Modules/errnomodule.c", |
| 237 | "Modules/pwdmodule.c", |
| 238 | "Modules/_sre.c", |
| 239 | "Modules/_codecsmodule.c", |
| 240 | "Modules/_weakref.c", |
| 241 | "Modules/zipimport.c", |
| 242 | "Modules/symtablemodule.c", |
Dan Willemsen | eba50a5 | 2018-11-16 17:27:26 -0800 | [diff] [blame^] | 243 | "Modules/main.c", |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 244 | ], |
| 245 | // NOTE: Please update Modules/config.c if new lib get added in the static_libs. |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 246 | static_libs: [ |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 247 | "libbase", |
| 248 | // Be careful the order of these three static libraries below due to |
| 249 | // missing symbols issues. |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 250 | "py2-interp-object", |
| 251 | "py2-interp-python", |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 252 | "py2-interp-parser", |
| 253 | "py2-c-module-array", |
| 254 | "py2-c-module-cmath", |
| 255 | "py2-c-module-math", |
| 256 | "py2-c-module-_struct", |
| 257 | "py2-c-module-time", |
| 258 | "py2-c-module-operator", |
| 259 | "py2-c-module-_testcapi", |
| 260 | "py2-c-module-_random", |
| 261 | "py2-c-module-_collections", |
| 262 | "py2-c-module-_heapq", |
| 263 | "py2-c-module-itertools", |
| 264 | "py2-c-module-strop", |
| 265 | "py2-c-module-_functools", |
| 266 | "py2-c-module-datetime", |
| 267 | "py2-c-module-_bisect", |
| 268 | "py2-c-module-unicodedata", |
| 269 | "py2-c-module-_io", |
| 270 | "py2-c-module-fcntl", |
| 271 | "py2-c-module-select", |
| 272 | "py2-c-module-mmap", |
| 273 | "py2-c-module-_csv", |
| 274 | "py2-c-module-_socket", |
| 275 | "py2-c-module-termios", |
Dan Willemsen | dbcebe0 | 2019-01-07 18:07:24 -0800 | [diff] [blame] | 276 | "py2-c-module-_ssl", |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 277 | "py2-c-module-_md5", |
| 278 | "py2-c-module-_sha", |
| 279 | "py2-c-module-_sha256", |
| 280 | "py2-c-module-_sha512", |
| 281 | "py2-c-module-binascii", |
| 282 | "py2-c-module-parser", |
| 283 | "py2-c-module-cStringIO", |
| 284 | "py2-c-module-cPickle", |
| 285 | "py2-c-module-xxsubtype", |
| 286 | "py2-c-module-future_builtins", |
| 287 | "py2-c-module-_json", |
| 288 | "py2-c-module-_hotshot", |
| 289 | "py2-c-module-_lsprof", |
| 290 | "py2-c-module-grp", |
| 291 | "py2-c-module-syslog", |
| 292 | "py2-c-module-audioop", |
| 293 | "py2-c-module-resource", |
| 294 | "py2-c-module-_multibytecodec", |
Nan Zhang | d5c4d4a | 2017-07-19 16:22:00 -0700 | [diff] [blame] | 295 | "py2-c-module-_codecs_kr", |
| 296 | "py2-c-module-_codecs_jp", |
| 297 | "py2-c-module-_codecs_cn", |
| 298 | "py2-c-module-_codecs_tw", |
| 299 | "py2-c-module-_codecs_hk", |
| 300 | "py2-c-module-_codecs_iso2022", |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 301 | "py2-c-module-_multiprocessing", |
| 302 | "py2-c-module-zlib", |
Nan Zhang | d5c4d4a | 2017-07-19 16:22:00 -0700 | [diff] [blame] | 303 | "py2-c-module-pyexpat", |
| 304 | "py2-c-module-_sqlite3", |
| 305 | "py2-c-module-_ctypes_test", |
| 306 | "py2-c-module-_ctypes", |
Dan Willemsen | dbcebe0 | 2019-01-07 18:07:24 -0800 | [diff] [blame] | 307 | "libcrypto", |
Nan Zhang | d5c4d4a | 2017-07-19 16:22:00 -0700 | [diff] [blame] | 308 | "libexpat", |
Dan Willemsen | dbcebe0 | 2019-01-07 18:07:24 -0800 | [diff] [blame] | 309 | "libssl", |
| 310 | "libz", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 311 | ], |
Dan Willemsen | c88c080 | 2017-09-25 14:33:27 -0700 | [diff] [blame] | 312 | target: { |
Dan Willemsen | e41d4ce | 2017-10-02 10:41:09 -0700 | [diff] [blame] | 313 | linux_glibc_x86_64: { |
Dan Willemsen | c88c080 | 2017-09-25 14:33:27 -0700 | [diff] [blame] | 314 | host_ldlibs: ["-lutil"], |
Nan Zhang | 33bb4bb | 2017-12-01 20:00:54 +0000 | [diff] [blame] | 315 | }, |
Dan Willemsen | eba50a5 | 2018-11-16 17:27:26 -0800 | [diff] [blame^] | 316 | host: { |
| 317 | static_libs: ["libsqlite"], |
Nan Zhang | 33bb4bb | 2017-12-01 20:00:54 +0000 | [diff] [blame] | 318 | }, |
| 319 | // Use shared libsqlite for device side, otherwise |
| 320 | // the executable size will be really huge. |
| 321 | android: { |
Dan Willemsen | eba50a5 | 2018-11-16 17:27:26 -0800 | [diff] [blame^] | 322 | shared_libs: ["libsqlite"], |
Dan Willemsen | c88c080 | 2017-09-25 14:33:27 -0700 | [diff] [blame] | 323 | }, |
| 324 | }, |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 325 | } |
| 326 | |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 327 | // Enabled extension py2-c-modules. |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 328 | |
| 329 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 330 | name: "py2-c-module-array", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 331 | defaults: ["py2-interp-defaults"], |
| 332 | srcs: [ |
| 333 | "Modules/arraymodule.c", |
| 334 | ], |
| 335 | } |
| 336 | |
| 337 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 338 | name: "py2-c-module-cmath", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 339 | defaults: ["py2-interp-defaults"], |
| 340 | srcs: [ |
| 341 | "Modules/cmathmodule.c", |
| 342 | "Modules/_math.c", |
| 343 | ], |
| 344 | } |
| 345 | |
| 346 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 347 | name: "py2-c-module-math", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 348 | defaults: ["py2-interp-defaults"], |
| 349 | srcs: [ |
| 350 | "Modules/mathmodule.c", |
| 351 | "Modules/_math.c", |
| 352 | ], |
| 353 | } |
| 354 | |
| 355 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 356 | name: "py2-c-module-_struct", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 357 | defaults: ["py2-interp-defaults"], |
| 358 | srcs: [ |
| 359 | "Modules/_struct.c", |
| 360 | ], |
| 361 | } |
| 362 | |
| 363 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 364 | name: "py2-c-module-time", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 365 | defaults: ["py2-interp-defaults"], |
| 366 | srcs: [ |
| 367 | "Modules/timemodule.c", |
| 368 | ], |
| 369 | } |
| 370 | |
| 371 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 372 | name: "py2-c-module-operator", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 373 | defaults: ["py2-interp-defaults"], |
| 374 | srcs: [ |
| 375 | "Modules/operator.c", |
| 376 | ], |
| 377 | } |
| 378 | |
| 379 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 380 | name: "py2-c-module-_testcapi", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 381 | defaults: ["py2-interp-defaults"], |
| 382 | srcs: [ |
| 383 | "Modules/_testcapimodule.c", |
| 384 | ], |
| 385 | } |
| 386 | |
| 387 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 388 | name: "py2-c-module-_random", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 389 | defaults: ["py2-interp-defaults"], |
| 390 | srcs: [ |
| 391 | "Modules/_randommodule.c", |
| 392 | ], |
| 393 | } |
| 394 | |
| 395 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 396 | name: "py2-c-module-_collections", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 397 | defaults: ["py2-interp-defaults"], |
| 398 | srcs: [ |
| 399 | "Modules/_collectionsmodule.c", |
| 400 | ], |
| 401 | } |
| 402 | |
| 403 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 404 | name: "py2-c-module-_heapq", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 405 | defaults: ["py2-interp-defaults"], |
| 406 | srcs: [ |
| 407 | "Modules/_heapqmodule.c", |
| 408 | ], |
| 409 | } |
| 410 | |
| 411 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 412 | name: "py2-c-module-itertools", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 413 | defaults: ["py2-interp-defaults"], |
| 414 | srcs: [ |
| 415 | "Modules/itertoolsmodule.c", |
| 416 | ], |
| 417 | } |
| 418 | |
| 419 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 420 | name: "py2-c-module-strop", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 421 | defaults: ["py2-interp-defaults"], |
| 422 | srcs: [ |
| 423 | "Modules/stropmodule.c", |
| 424 | ], |
| 425 | } |
| 426 | |
| 427 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 428 | name: "py2-c-module-_functools", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 429 | defaults: ["py2-interp-defaults"], |
| 430 | srcs: [ |
| 431 | "Modules/_functoolsmodule.c", |
| 432 | ], |
| 433 | } |
| 434 | |
| 435 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 436 | name: "py2-c-module-datetime", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 437 | defaults: ["py2-interp-defaults"], |
| 438 | srcs: [ |
| 439 | "Modules/datetimemodule.c", |
| 440 | ], |
| 441 | } |
| 442 | |
| 443 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 444 | name: "py2-c-module-_bisect", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 445 | defaults: ["py2-interp-defaults"], |
| 446 | srcs: [ |
| 447 | "Modules/_bisectmodule.c", |
| 448 | ], |
| 449 | } |
| 450 | |
| 451 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 452 | name: "py2-c-module-unicodedata", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 453 | defaults: ["py2-interp-defaults"], |
| 454 | srcs: [ |
| 455 | "Modules/unicodedata.c", |
| 456 | ], |
| 457 | } |
| 458 | |
| 459 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 460 | name: "py2-c-module-_io", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 461 | defaults: ["py2-interp-defaults"], |
| 462 | srcs: [ |
| 463 | "Modules/_io/bufferedio.c", |
| 464 | "Modules/_io/bytesio.c", |
| 465 | "Modules/_io/fileio.c", |
| 466 | "Modules/_io/iobase.c", |
| 467 | "Modules/_io/_iomodule.c", |
| 468 | "Modules/_io/stringio.c", |
| 469 | "Modules/_io/textio.c", |
| 470 | ], |
| 471 | local_include_dirs: [ |
| 472 | "Modules/_io", |
| 473 | ], |
| 474 | } |
| 475 | |
| 476 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 477 | name: "py2-c-module-fcntl", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 478 | defaults: ["py2-interp-defaults"], |
| 479 | srcs: [ |
| 480 | "Modules/fcntlmodule.c", |
| 481 | ], |
| 482 | } |
| 483 | |
| 484 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 485 | name: "py2-c-module-select", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 486 | defaults: ["py2-interp-defaults"], |
| 487 | srcs: [ |
| 488 | "Modules/selectmodule.c", |
| 489 | ], |
| 490 | } |
| 491 | |
| 492 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 493 | name: "py2-c-module-mmap", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 494 | defaults: ["py2-interp-defaults"], |
| 495 | srcs: [ |
| 496 | "Modules/mmapmodule.c", |
| 497 | ], |
| 498 | } |
| 499 | |
| 500 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 501 | name: "py2-c-module-_csv", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 502 | defaults: ["py2-interp-defaults"], |
| 503 | srcs: [ |
| 504 | "Modules/_csv.c", |
| 505 | ], |
| 506 | } |
| 507 | |
| 508 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 509 | name: "py2-c-module-_socket", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 510 | defaults: ["py2-interp-defaults"], |
| 511 | srcs: [ |
| 512 | "Modules/socketmodule.c", |
| 513 | "Modules/timemodule.c", |
| 514 | ], |
| 515 | } |
| 516 | |
| 517 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 518 | name: "py2-c-module-termios", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 519 | defaults: ["py2-interp-defaults"], |
| 520 | srcs: [ |
| 521 | "Modules/termios.c", |
| 522 | ], |
| 523 | } |
| 524 | |
| 525 | cc_library_static { |
Dan Willemsen | dbcebe0 | 2019-01-07 18:07:24 -0800 | [diff] [blame] | 526 | name: "py2-c-module-_ssl", |
| 527 | defaults: ["py2-interp-defaults"], |
| 528 | srcs: ["Modules/_ssl.c"], |
| 529 | cflags: ["-Wno-incompatible-pointer-types-discards-qualifiers"], |
| 530 | static_libs: [ |
| 531 | "libssl", |
| 532 | "libcrypto", |
| 533 | ], |
| 534 | } |
| 535 | |
| 536 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 537 | name: "py2-c-module-_md5", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 538 | defaults: ["py2-interp-defaults"], |
| 539 | srcs: [ |
| 540 | "Modules/md5module.c", |
| 541 | "Modules/md5.c", |
| 542 | ], |
| 543 | } |
| 544 | |
| 545 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 546 | name: "py2-c-module-_sha", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 547 | defaults: ["py2-interp-defaults"], |
| 548 | srcs: [ |
| 549 | "Modules/shamodule.c", |
| 550 | ], |
| 551 | } |
| 552 | |
| 553 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 554 | name: "py2-c-module-_sha256", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 555 | defaults: ["py2-interp-defaults"], |
| 556 | srcs: [ |
| 557 | "Modules/sha256module.c", |
| 558 | ], |
| 559 | } |
| 560 | |
| 561 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 562 | name: "py2-c-module-_sha512", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 563 | defaults: ["py2-interp-defaults"], |
| 564 | srcs: [ |
| 565 | "Modules/sha512module.c", |
| 566 | ], |
| 567 | } |
| 568 | |
| 569 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 570 | name: "py2-c-module-binascii", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 571 | defaults: ["py2-interp-defaults"], |
| 572 | srcs: [ |
| 573 | "Modules/binascii.c", |
| 574 | ], |
| 575 | } |
| 576 | |
| 577 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 578 | name: "py2-c-module-parser", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 579 | defaults: ["py2-interp-defaults"], |
| 580 | srcs: [ |
| 581 | "Modules/parsermodule.c", |
| 582 | ], |
| 583 | } |
| 584 | |
| 585 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 586 | name: "py2-c-module-cStringIO", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 587 | defaults: ["py2-interp-defaults"], |
| 588 | srcs: [ |
| 589 | "Modules/cStringIO.c", |
| 590 | ], |
| 591 | } |
| 592 | |
| 593 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 594 | name: "py2-c-module-cPickle", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 595 | defaults: ["py2-interp-defaults"], |
| 596 | srcs: [ |
| 597 | "Modules/cPickle.c", |
| 598 | ], |
| 599 | } |
| 600 | |
| 601 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 602 | name: "py2-c-module-xxsubtype", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 603 | defaults: ["py2-interp-defaults"], |
| 604 | srcs: [ |
| 605 | "Modules/xxsubtype.c", |
| 606 | ], |
| 607 | } |
| 608 | |
| 609 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 610 | name: "py2-c-module-future_builtins", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 611 | defaults: ["py2-interp-defaults"], |
| 612 | srcs: [ |
| 613 | "Modules/future_builtins.c", |
| 614 | ], |
| 615 | } |
| 616 | |
| 617 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 618 | name: "py2-c-module-_json", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 619 | defaults: ["py2-interp-defaults"], |
| 620 | srcs: [ |
| 621 | "Modules/_json.c", |
| 622 | ], |
| 623 | } |
| 624 | |
| 625 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 626 | name: "py2-c-module-_hotshot", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 627 | defaults: ["py2-interp-defaults"], |
| 628 | srcs: [ |
| 629 | "Modules/_hotshot.c", |
| 630 | ], |
| 631 | } |
| 632 | |
| 633 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 634 | name: "py2-c-module-_lsprof", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 635 | defaults: ["py2-interp-defaults"], |
| 636 | srcs: [ |
| 637 | "Modules/_lsprof.c", |
| 638 | "Modules/rotatingtree.c", |
| 639 | ], |
| 640 | } |
| 641 | |
| 642 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 643 | name: "py2-c-module-grp", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 644 | defaults: ["py2-interp-defaults"], |
| 645 | srcs: [ |
| 646 | "Modules/grpmodule.c", |
| 647 | "Modules/rotatingtree.c", |
| 648 | ], |
| 649 | } |
| 650 | |
| 651 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 652 | name: "py2-c-module-syslog", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 653 | defaults: ["py2-interp-defaults"], |
| 654 | srcs: [ |
| 655 | "Modules/syslogmodule.c", |
| 656 | ], |
| 657 | } |
| 658 | |
| 659 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 660 | name: "py2-c-module-audioop", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 661 | defaults: ["py2-interp-defaults"], |
| 662 | srcs: [ |
| 663 | "Modules/audioop.c", |
| 664 | ], |
| 665 | } |
| 666 | |
| 667 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 668 | name: "py2-c-module-resource", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 669 | defaults: ["py2-interp-defaults"], |
| 670 | srcs: [ |
| 671 | "Modules/resource.c", |
| 672 | ], |
| 673 | } |
| 674 | |
| 675 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 676 | name: "py2-c-module-_multibytecodec", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 677 | defaults: ["py2-interp-defaults"], |
| 678 | srcs: [ |
| 679 | "Modules/cjkcodecs/multibytecodec.c", |
| 680 | ], |
| 681 | } |
| 682 | |
| 683 | cc_library_static { |
Nan Zhang | d5c4d4a | 2017-07-19 16:22:00 -0700 | [diff] [blame] | 684 | name: "py2-c-module-_codecs_kr", |
| 685 | defaults: ["py2-interp-defaults"], |
| 686 | srcs: ["Modules/cjkcodecs/_codecs_kr.c"], |
| 687 | } |
| 688 | |
| 689 | cc_library_static { |
| 690 | name: "py2-c-module-_codecs_jp", |
| 691 | defaults: ["py2-interp-defaults"], |
| 692 | srcs: ["Modules/cjkcodecs/_codecs_jp.c"], |
| 693 | } |
| 694 | |
| 695 | cc_library_static { |
| 696 | name: "py2-c-module-_codecs_cn", |
| 697 | defaults: ["py2-interp-defaults"], |
| 698 | srcs: ["Modules/cjkcodecs/_codecs_cn.c"], |
| 699 | } |
| 700 | |
| 701 | cc_library_static { |
| 702 | name: "py2-c-module-_codecs_tw", |
| 703 | defaults: ["py2-interp-defaults"], |
| 704 | srcs: ["Modules/cjkcodecs/_codecs_tw.c"], |
| 705 | } |
| 706 | |
| 707 | cc_library_static { |
| 708 | name: "py2-c-module-_codecs_hk", |
| 709 | defaults: ["py2-interp-defaults"], |
| 710 | srcs: ["Modules/cjkcodecs/_codecs_hk.c"], |
| 711 | } |
| 712 | |
| 713 | cc_library_static { |
| 714 | name: "py2-c-module-_codecs_iso2022", |
| 715 | defaults: ["py2-interp-defaults"], |
| 716 | srcs: ["Modules/cjkcodecs/_codecs_iso2022.c"], |
| 717 | } |
| 718 | |
| 719 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 720 | name: "py2-c-module-_multiprocessing", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 721 | defaults: ["py2-interp-defaults"], |
| 722 | srcs: [ |
| 723 | "Modules/_multiprocessing/multiprocessing.c", |
| 724 | "Modules/_multiprocessing/semaphore.c", |
| 725 | "Modules/_multiprocessing/socket_connection.c", |
| 726 | ], |
| 727 | } |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 728 | |
| 729 | cc_library_static { |
| 730 | name: "py2-c-module-zlib", |
| 731 | defaults: [ |
| 732 | "py2-interp-defaults", |
| 733 | ], |
| 734 | cflags: [ |
| 735 | "-DUSE_ZLIB_CRC32", |
| 736 | ], |
| 737 | srcs: [ |
| 738 | "Modules/zlibmodule.c", |
| 739 | ], |
| 740 | static_libs: [ |
| 741 | "libz", |
| 742 | ], |
| 743 | } |
Nan Zhang | d5c4d4a | 2017-07-19 16:22:00 -0700 | [diff] [blame] | 744 | |
| 745 | cc_library_static { |
| 746 | name: "py2-c-module-pyexpat", |
| 747 | defaults: [ |
| 748 | "py2-interp-defaults", |
| 749 | ], |
| 750 | cflags: [ |
| 751 | "-DUSE_PYEXPAT_CAPI", |
| 752 | ], |
| 753 | srcs: [ |
| 754 | "Modules/pyexpat.c", |
| 755 | ], |
| 756 | static_libs: [ |
| 757 | "libexpat", |
| 758 | ], |
| 759 | } |
| 760 | |
| 761 | cc_library_static { |
| 762 | name: "py2-c-module-_sqlite3", |
| 763 | defaults: [ |
| 764 | "py2-interp-defaults", |
| 765 | ], |
| 766 | cflags: [ |
| 767 | "-DMODULE_NAME=\"sqlite3\"", |
| 768 | "-DSQLITE_OMIT_LOAD_EXTENSION", |
| 769 | "-Wno-format-security", |
| 770 | "-Wno-type-limits", |
| 771 | "-Wno-char-subscripts", |
| 772 | ], |
| 773 | local_include_dirs: [ |
| 774 | "Modules/_sqlite", |
| 775 | ], |
| 776 | srcs: [ |
| 777 | "Modules/_sqlite/cache.c", |
| 778 | "Modules/_sqlite/connection.c", |
| 779 | "Modules/_sqlite/cursor.c", |
| 780 | "Modules/_sqlite/microprotocols.c", |
| 781 | "Modules/_sqlite/module.c", |
| 782 | "Modules/_sqlite/prepare_protocol.c", |
| 783 | "Modules/_sqlite/row.c", |
| 784 | "Modules/_sqlite/statement.c", |
| 785 | "Modules/_sqlite/util.c", |
| 786 | ], |
Nan Zhang | 33bb4bb | 2017-12-01 20:00:54 +0000 | [diff] [blame] | 787 | target: { |
| 788 | linux_glibc_x86_64: { |
| 789 | static_libs: [ |
| 790 | "libsqlite", |
| 791 | ], |
| 792 | }, |
| 793 | darwin_x86_64: { |
| 794 | static_libs: [ |
| 795 | "libsqlite", |
| 796 | ], |
| 797 | }, |
| 798 | android: { |
| 799 | shared_libs: [ |
| 800 | "libsqlite", |
Dan Willemsen | 04e3910 | 2019-02-14 21:00:06 -0800 | [diff] [blame] | 801 | ], |
Nan Zhang | 33bb4bb | 2017-12-01 20:00:54 +0000 | [diff] [blame] | 802 | }, |
| 803 | }, |
Nan Zhang | d5c4d4a | 2017-07-19 16:22:00 -0700 | [diff] [blame] | 804 | } |
| 805 | |
| 806 | cc_library_static { |
| 807 | name: "py2-c-module-_ctypes_test", |
| 808 | defaults: ["py2-interp-defaults"], |
| 809 | srcs: ["Modules/_ctypes/_ctypes_test.c"], |
| 810 | } |
| 811 | |
Nan Zhang | d5c4d4a | 2017-07-19 16:22:00 -0700 | [diff] [blame] | 812 | cc_library_static { |
| 813 | name: "py2-c-module-_ctypes", |
| 814 | defaults: [ |
| 815 | "py2-interp-defaults", |
| 816 | ], |
| 817 | local_include_dirs: [ |
Nan Zhang | d5c4d4a | 2017-07-19 16:22:00 -0700 | [diff] [blame] | 818 | "Modules/_ctypes/libffi/include", |
| 819 | ], |
| 820 | srcs: [ |
| 821 | "Modules/_ctypes/_ctypes.c", |
| 822 | "Modules/_ctypes/callbacks.c", |
| 823 | "Modules/_ctypes/callproc.c", |
| 824 | "Modules/_ctypes/stgdict.c", |
| 825 | "Modules/_ctypes/cfield.c", |
| 826 | "Modules/_ctypes/libffi/src/prep_cif.c", |
| 827 | "Modules/_ctypes/libffi/src/closures.c", |
| 828 | ], |
| 829 | arch: { |
| 830 | x86_64: { |
| 831 | local_include_dirs: [ |
| 832 | "Modules/_ctypes/libffi/src/x86", |
| 833 | ], |
| 834 | srcs: [ |
| 835 | "Modules/_ctypes/libffi/src/x86/ffi64.c", |
Nan Zhang | d5c4d4a | 2017-07-19 16:22:00 -0700 | [diff] [blame] | 836 | "Modules/_ctypes/libffi/src/x86/ffi.c", |
| 837 | "Modules/_ctypes/libffi/src/x86/sysv.S", |
| 838 | ], |
| 839 | }, |
Nan Zhang | 33bb4bb | 2017-12-01 20:00:54 +0000 | [diff] [blame] | 840 | x86: { |
| 841 | local_include_dirs: [ |
| 842 | "Modules/_ctypes/libffi/src/x86", |
| 843 | ], |
| 844 | srcs: [ |
| 845 | "Modules/_ctypes/libffi/src/x86/ffi.c", |
| 846 | "Modules/_ctypes/libffi/src/x86/sysv.S", |
| 847 | ], |
| 848 | }, |
| 849 | arm: { |
| 850 | local_include_dirs: [ |
| 851 | "android_arm/libffi", |
| 852 | "Modules/_ctypes/libffi/src/arm", |
| 853 | ], |
| 854 | srcs: [ |
| 855 | "Modules/_ctypes/libffi/src/arm/ffi.c", |
| 856 | "Modules/_ctypes/libffi/src/arm/sysv.S", |
| 857 | "Modules/_ctypes/libffi/src/arm/trampoline.S", |
Dan Willemsen | 04e3910 | 2019-02-14 21:00:06 -0800 | [diff] [blame] | 858 | ], |
Nan Zhang | 33bb4bb | 2017-12-01 20:00:54 +0000 | [diff] [blame] | 859 | }, |
| 860 | arm64: { |
| 861 | // arithmetic on a pointer in _ctypes/libffi/src/aarch64/ffi.c |
| 862 | cflags: ["-Wno-pointer-arith"], |
| 863 | local_include_dirs: [ |
| 864 | "android_arm64/libffi", |
| 865 | "Modules/_ctypes/libffi/src/aarch64", |
| 866 | ], |
| 867 | srcs: [ |
| 868 | "Modules/_ctypes/libffi/src/aarch64/ffi.c", |
| 869 | "Modules/_ctypes/libffi/src/aarch64/sysv.S", |
Dan Willemsen | 04e3910 | 2019-02-14 21:00:06 -0800 | [diff] [blame] | 870 | ], |
Nan Zhang | 33bb4bb | 2017-12-01 20:00:54 +0000 | [diff] [blame] | 871 | }, |
Nan Zhang | d5c4d4a | 2017-07-19 16:22:00 -0700 | [diff] [blame] | 872 | }, |
Dan Willemsen | c88c080 | 2017-09-25 14:33:27 -0700 | [diff] [blame] | 873 | target: { |
| 874 | // Regenerate include dirs with android_regen.sh |
| 875 | darwin_x86_64: { |
| 876 | local_include_dirs: ["darwin_x86_64/libffi"], |
| 877 | srcs: [ |
| 878 | "Modules/_ctypes/libffi/src/x86/darwin.S", |
| 879 | "Modules/_ctypes/libffi/src/x86/darwin64.S", |
| 880 | ], |
| 881 | }, |
Dan Willemsen | e41d4ce | 2017-10-02 10:41:09 -0700 | [diff] [blame] | 882 | linux_glibc_x86_64: { |
Dan Willemsen | c88c080 | 2017-09-25 14:33:27 -0700 | [diff] [blame] | 883 | local_include_dirs: ["linux_x86_64/libffi"], |
| 884 | srcs: [ |
| 885 | "Modules/_ctypes/libffi/src/x86/unix64.S", |
| 886 | ], |
| 887 | }, |
Nan Zhang | 33bb4bb | 2017-12-01 20:00:54 +0000 | [diff] [blame] | 888 | android_x86: { |
| 889 | local_include_dirs: ["android_x86/libffi"], |
| 890 | srcs: [ |
| 891 | "Modules/_ctypes/libffi/src/x86/win32.S", |
| 892 | ], |
| 893 | }, |
| 894 | android_x86_64: { |
| 895 | local_include_dirs: ["android_x86_64/libffi"], |
| 896 | srcs: [ |
| 897 | "Modules/_ctypes/libffi/src/x86/unix64.S", |
| 898 | ], |
| 899 | }, |
Dan Willemsen | c88c080 | 2017-09-25 14:33:27 -0700 | [diff] [blame] | 900 | }, |
Nan Zhang | d5c4d4a | 2017-07-19 16:22:00 -0700 | [diff] [blame] | 901 | } |