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", |
| 228 | "Launcher/launcher_internal.cpp", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 229 | "Modules/gcmodule.c", |
| 230 | "Modules/getpath.c", |
| 231 | "Modules/config.c", |
| 232 | "Modules/getbuildinfo.c", |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 233 | // Default built-in extension py2-c-modules. |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 234 | "Modules/threadmodule.c", |
| 235 | "Modules/signalmodule.c", |
| 236 | "Modules/posixmodule.c", |
| 237 | "Modules/errnomodule.c", |
| 238 | "Modules/pwdmodule.c", |
| 239 | "Modules/_sre.c", |
| 240 | "Modules/_codecsmodule.c", |
| 241 | "Modules/_weakref.c", |
| 242 | "Modules/zipimport.c", |
| 243 | "Modules/symtablemodule.c", |
| 244 | ], |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 245 | local_include_dirs: [ |
| 246 | "Launcher", |
| 247 | ], |
| 248 | // 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] | 249 | static_libs: [ |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 250 | "libbase", |
| 251 | // Be careful the order of these three static libraries below due to |
| 252 | // missing symbols issues. |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 253 | "py2-interp-object", |
| 254 | "py2-interp-python", |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 255 | "py2-interp-parser", |
| 256 | "py2-c-module-array", |
| 257 | "py2-c-module-cmath", |
| 258 | "py2-c-module-math", |
| 259 | "py2-c-module-_struct", |
| 260 | "py2-c-module-time", |
| 261 | "py2-c-module-operator", |
| 262 | "py2-c-module-_testcapi", |
| 263 | "py2-c-module-_random", |
| 264 | "py2-c-module-_collections", |
| 265 | "py2-c-module-_heapq", |
| 266 | "py2-c-module-itertools", |
| 267 | "py2-c-module-strop", |
| 268 | "py2-c-module-_functools", |
| 269 | "py2-c-module-datetime", |
| 270 | "py2-c-module-_bisect", |
| 271 | "py2-c-module-unicodedata", |
| 272 | "py2-c-module-_io", |
| 273 | "py2-c-module-fcntl", |
| 274 | "py2-c-module-select", |
| 275 | "py2-c-module-mmap", |
| 276 | "py2-c-module-_csv", |
| 277 | "py2-c-module-_socket", |
| 278 | "py2-c-module-termios", |
Dan Willemsen | dbcebe0 | 2019-01-07 18:07:24 -0800 | [diff] [blame] | 279 | "py2-c-module-_ssl", |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 280 | "py2-c-module-_md5", |
| 281 | "py2-c-module-_sha", |
| 282 | "py2-c-module-_sha256", |
| 283 | "py2-c-module-_sha512", |
| 284 | "py2-c-module-binascii", |
| 285 | "py2-c-module-parser", |
| 286 | "py2-c-module-cStringIO", |
| 287 | "py2-c-module-cPickle", |
| 288 | "py2-c-module-xxsubtype", |
| 289 | "py2-c-module-future_builtins", |
| 290 | "py2-c-module-_json", |
| 291 | "py2-c-module-_hotshot", |
| 292 | "py2-c-module-_lsprof", |
| 293 | "py2-c-module-grp", |
| 294 | "py2-c-module-syslog", |
| 295 | "py2-c-module-audioop", |
| 296 | "py2-c-module-resource", |
| 297 | "py2-c-module-_multibytecodec", |
Nan Zhang | d5c4d4a | 2017-07-19 16:22:00 -0700 | [diff] [blame] | 298 | "py2-c-module-_codecs_kr", |
| 299 | "py2-c-module-_codecs_jp", |
| 300 | "py2-c-module-_codecs_cn", |
| 301 | "py2-c-module-_codecs_tw", |
| 302 | "py2-c-module-_codecs_hk", |
| 303 | "py2-c-module-_codecs_iso2022", |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 304 | "py2-c-module-_multiprocessing", |
| 305 | "py2-c-module-zlib", |
Nan Zhang | d5c4d4a | 2017-07-19 16:22:00 -0700 | [diff] [blame] | 306 | "py2-c-module-pyexpat", |
| 307 | "py2-c-module-_sqlite3", |
| 308 | "py2-c-module-_ctypes_test", |
| 309 | "py2-c-module-_ctypes", |
Dan Willemsen | dbcebe0 | 2019-01-07 18:07:24 -0800 | [diff] [blame] | 310 | "libcrypto", |
Nan Zhang | d5c4d4a | 2017-07-19 16:22:00 -0700 | [diff] [blame] | 311 | "libexpat", |
Dan Willemsen | dbcebe0 | 2019-01-07 18:07:24 -0800 | [diff] [blame] | 312 | "libssl", |
| 313 | "libz", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 314 | ], |
Dan Willemsen | c88c080 | 2017-09-25 14:33:27 -0700 | [diff] [blame] | 315 | target: { |
Dan Willemsen | e41d4ce | 2017-10-02 10:41:09 -0700 | [diff] [blame] | 316 | linux_glibc_x86_64: { |
Dan Willemsen | c88c080 | 2017-09-25 14:33:27 -0700 | [diff] [blame] | 317 | host_ldlibs: ["-lutil"], |
Nan Zhang | 33bb4bb | 2017-12-01 20:00:54 +0000 | [diff] [blame] | 318 | static_libs: [ |
| 319 | "libsqlite", |
| 320 | ], |
| 321 | }, |
| 322 | darwin_x86_64: { |
| 323 | static_libs: [ |
| 324 | "libsqlite", |
| 325 | ], |
| 326 | }, |
| 327 | // Use shared libsqlite for device side, otherwise |
| 328 | // the executable size will be really huge. |
| 329 | android: { |
| 330 | shared_libs: [ |
| 331 | "libsqlite", |
Nan Zhang | 04b6dca | 2017-12-05 13:34:52 -0800 | [diff] [blame] | 332 | ], |
Dan Willemsen | c88c080 | 2017-09-25 14:33:27 -0700 | [diff] [blame] | 333 | }, |
| 334 | }, |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 335 | } |
| 336 | |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 337 | // Enabled extension py2-c-modules. |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 338 | |
| 339 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 340 | name: "py2-c-module-array", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 341 | defaults: ["py2-interp-defaults"], |
| 342 | srcs: [ |
| 343 | "Modules/arraymodule.c", |
| 344 | ], |
| 345 | } |
| 346 | |
| 347 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 348 | name: "py2-c-module-cmath", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 349 | defaults: ["py2-interp-defaults"], |
| 350 | srcs: [ |
| 351 | "Modules/cmathmodule.c", |
| 352 | "Modules/_math.c", |
| 353 | ], |
| 354 | } |
| 355 | |
| 356 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 357 | name: "py2-c-module-math", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 358 | defaults: ["py2-interp-defaults"], |
| 359 | srcs: [ |
| 360 | "Modules/mathmodule.c", |
| 361 | "Modules/_math.c", |
| 362 | ], |
| 363 | } |
| 364 | |
| 365 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 366 | name: "py2-c-module-_struct", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 367 | defaults: ["py2-interp-defaults"], |
| 368 | srcs: [ |
| 369 | "Modules/_struct.c", |
| 370 | ], |
| 371 | } |
| 372 | |
| 373 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 374 | name: "py2-c-module-time", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 375 | defaults: ["py2-interp-defaults"], |
| 376 | srcs: [ |
| 377 | "Modules/timemodule.c", |
| 378 | ], |
| 379 | } |
| 380 | |
| 381 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 382 | name: "py2-c-module-operator", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 383 | defaults: ["py2-interp-defaults"], |
| 384 | srcs: [ |
| 385 | "Modules/operator.c", |
| 386 | ], |
| 387 | } |
| 388 | |
| 389 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 390 | name: "py2-c-module-_testcapi", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 391 | defaults: ["py2-interp-defaults"], |
| 392 | srcs: [ |
| 393 | "Modules/_testcapimodule.c", |
| 394 | ], |
| 395 | } |
| 396 | |
| 397 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 398 | name: "py2-c-module-_random", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 399 | defaults: ["py2-interp-defaults"], |
| 400 | srcs: [ |
| 401 | "Modules/_randommodule.c", |
| 402 | ], |
| 403 | } |
| 404 | |
| 405 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 406 | name: "py2-c-module-_collections", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 407 | defaults: ["py2-interp-defaults"], |
| 408 | srcs: [ |
| 409 | "Modules/_collectionsmodule.c", |
| 410 | ], |
| 411 | } |
| 412 | |
| 413 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 414 | name: "py2-c-module-_heapq", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 415 | defaults: ["py2-interp-defaults"], |
| 416 | srcs: [ |
| 417 | "Modules/_heapqmodule.c", |
| 418 | ], |
| 419 | } |
| 420 | |
| 421 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 422 | name: "py2-c-module-itertools", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 423 | defaults: ["py2-interp-defaults"], |
| 424 | srcs: [ |
| 425 | "Modules/itertoolsmodule.c", |
| 426 | ], |
| 427 | } |
| 428 | |
| 429 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 430 | name: "py2-c-module-strop", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 431 | defaults: ["py2-interp-defaults"], |
| 432 | srcs: [ |
| 433 | "Modules/stropmodule.c", |
| 434 | ], |
| 435 | } |
| 436 | |
| 437 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 438 | name: "py2-c-module-_functools", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 439 | defaults: ["py2-interp-defaults"], |
| 440 | srcs: [ |
| 441 | "Modules/_functoolsmodule.c", |
| 442 | ], |
| 443 | } |
| 444 | |
| 445 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 446 | name: "py2-c-module-datetime", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 447 | defaults: ["py2-interp-defaults"], |
| 448 | srcs: [ |
| 449 | "Modules/datetimemodule.c", |
| 450 | ], |
| 451 | } |
| 452 | |
| 453 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 454 | name: "py2-c-module-_bisect", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 455 | defaults: ["py2-interp-defaults"], |
| 456 | srcs: [ |
| 457 | "Modules/_bisectmodule.c", |
| 458 | ], |
| 459 | } |
| 460 | |
| 461 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 462 | name: "py2-c-module-unicodedata", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 463 | defaults: ["py2-interp-defaults"], |
| 464 | srcs: [ |
| 465 | "Modules/unicodedata.c", |
| 466 | ], |
| 467 | } |
| 468 | |
| 469 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 470 | name: "py2-c-module-_io", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 471 | defaults: ["py2-interp-defaults"], |
| 472 | srcs: [ |
| 473 | "Modules/_io/bufferedio.c", |
| 474 | "Modules/_io/bytesio.c", |
| 475 | "Modules/_io/fileio.c", |
| 476 | "Modules/_io/iobase.c", |
| 477 | "Modules/_io/_iomodule.c", |
| 478 | "Modules/_io/stringio.c", |
| 479 | "Modules/_io/textio.c", |
| 480 | ], |
| 481 | local_include_dirs: [ |
| 482 | "Modules/_io", |
| 483 | ], |
| 484 | } |
| 485 | |
| 486 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 487 | name: "py2-c-module-fcntl", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 488 | defaults: ["py2-interp-defaults"], |
| 489 | srcs: [ |
| 490 | "Modules/fcntlmodule.c", |
| 491 | ], |
| 492 | } |
| 493 | |
| 494 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 495 | name: "py2-c-module-select", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 496 | defaults: ["py2-interp-defaults"], |
| 497 | srcs: [ |
| 498 | "Modules/selectmodule.c", |
| 499 | ], |
| 500 | } |
| 501 | |
| 502 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 503 | name: "py2-c-module-mmap", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 504 | defaults: ["py2-interp-defaults"], |
| 505 | srcs: [ |
| 506 | "Modules/mmapmodule.c", |
| 507 | ], |
| 508 | } |
| 509 | |
| 510 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 511 | name: "py2-c-module-_csv", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 512 | defaults: ["py2-interp-defaults"], |
| 513 | srcs: [ |
| 514 | "Modules/_csv.c", |
| 515 | ], |
| 516 | } |
| 517 | |
| 518 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 519 | name: "py2-c-module-_socket", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 520 | defaults: ["py2-interp-defaults"], |
| 521 | srcs: [ |
| 522 | "Modules/socketmodule.c", |
| 523 | "Modules/timemodule.c", |
| 524 | ], |
| 525 | } |
| 526 | |
| 527 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 528 | name: "py2-c-module-termios", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 529 | defaults: ["py2-interp-defaults"], |
| 530 | srcs: [ |
| 531 | "Modules/termios.c", |
| 532 | ], |
| 533 | } |
| 534 | |
| 535 | cc_library_static { |
Dan Willemsen | dbcebe0 | 2019-01-07 18:07:24 -0800 | [diff] [blame] | 536 | name: "py2-c-module-_ssl", |
| 537 | defaults: ["py2-interp-defaults"], |
| 538 | srcs: ["Modules/_ssl.c"], |
| 539 | cflags: ["-Wno-incompatible-pointer-types-discards-qualifiers"], |
| 540 | static_libs: [ |
| 541 | "libssl", |
| 542 | "libcrypto", |
| 543 | ], |
| 544 | } |
| 545 | |
| 546 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 547 | name: "py2-c-module-_md5", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 548 | defaults: ["py2-interp-defaults"], |
| 549 | srcs: [ |
| 550 | "Modules/md5module.c", |
| 551 | "Modules/md5.c", |
| 552 | ], |
| 553 | } |
| 554 | |
| 555 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 556 | name: "py2-c-module-_sha", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 557 | defaults: ["py2-interp-defaults"], |
| 558 | srcs: [ |
| 559 | "Modules/shamodule.c", |
| 560 | ], |
| 561 | } |
| 562 | |
| 563 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 564 | name: "py2-c-module-_sha256", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 565 | defaults: ["py2-interp-defaults"], |
| 566 | srcs: [ |
| 567 | "Modules/sha256module.c", |
| 568 | ], |
| 569 | } |
| 570 | |
| 571 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 572 | name: "py2-c-module-_sha512", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 573 | defaults: ["py2-interp-defaults"], |
| 574 | srcs: [ |
| 575 | "Modules/sha512module.c", |
| 576 | ], |
| 577 | } |
| 578 | |
| 579 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 580 | name: "py2-c-module-binascii", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 581 | defaults: ["py2-interp-defaults"], |
| 582 | srcs: [ |
| 583 | "Modules/binascii.c", |
| 584 | ], |
| 585 | } |
| 586 | |
| 587 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 588 | name: "py2-c-module-parser", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 589 | defaults: ["py2-interp-defaults"], |
| 590 | srcs: [ |
| 591 | "Modules/parsermodule.c", |
| 592 | ], |
| 593 | } |
| 594 | |
| 595 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 596 | name: "py2-c-module-cStringIO", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 597 | defaults: ["py2-interp-defaults"], |
| 598 | srcs: [ |
| 599 | "Modules/cStringIO.c", |
| 600 | ], |
| 601 | } |
| 602 | |
| 603 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 604 | name: "py2-c-module-cPickle", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 605 | defaults: ["py2-interp-defaults"], |
| 606 | srcs: [ |
| 607 | "Modules/cPickle.c", |
| 608 | ], |
| 609 | } |
| 610 | |
| 611 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 612 | name: "py2-c-module-xxsubtype", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 613 | defaults: ["py2-interp-defaults"], |
| 614 | srcs: [ |
| 615 | "Modules/xxsubtype.c", |
| 616 | ], |
| 617 | } |
| 618 | |
| 619 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 620 | name: "py2-c-module-future_builtins", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 621 | defaults: ["py2-interp-defaults"], |
| 622 | srcs: [ |
| 623 | "Modules/future_builtins.c", |
| 624 | ], |
| 625 | } |
| 626 | |
| 627 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 628 | name: "py2-c-module-_json", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 629 | defaults: ["py2-interp-defaults"], |
| 630 | srcs: [ |
| 631 | "Modules/_json.c", |
| 632 | ], |
| 633 | } |
| 634 | |
| 635 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 636 | name: "py2-c-module-_hotshot", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 637 | defaults: ["py2-interp-defaults"], |
| 638 | srcs: [ |
| 639 | "Modules/_hotshot.c", |
| 640 | ], |
| 641 | } |
| 642 | |
| 643 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 644 | name: "py2-c-module-_lsprof", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 645 | defaults: ["py2-interp-defaults"], |
| 646 | srcs: [ |
| 647 | "Modules/_lsprof.c", |
| 648 | "Modules/rotatingtree.c", |
| 649 | ], |
| 650 | } |
| 651 | |
| 652 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 653 | name: "py2-c-module-grp", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 654 | defaults: ["py2-interp-defaults"], |
| 655 | srcs: [ |
| 656 | "Modules/grpmodule.c", |
| 657 | "Modules/rotatingtree.c", |
| 658 | ], |
| 659 | } |
| 660 | |
| 661 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 662 | name: "py2-c-module-syslog", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 663 | defaults: ["py2-interp-defaults"], |
| 664 | srcs: [ |
| 665 | "Modules/syslogmodule.c", |
| 666 | ], |
| 667 | } |
| 668 | |
| 669 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 670 | name: "py2-c-module-audioop", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 671 | defaults: ["py2-interp-defaults"], |
| 672 | srcs: [ |
| 673 | "Modules/audioop.c", |
| 674 | ], |
| 675 | } |
| 676 | |
| 677 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 678 | name: "py2-c-module-resource", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 679 | defaults: ["py2-interp-defaults"], |
| 680 | srcs: [ |
| 681 | "Modules/resource.c", |
| 682 | ], |
| 683 | } |
| 684 | |
| 685 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 686 | name: "py2-c-module-_multibytecodec", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 687 | defaults: ["py2-interp-defaults"], |
| 688 | srcs: [ |
| 689 | "Modules/cjkcodecs/multibytecodec.c", |
| 690 | ], |
| 691 | } |
| 692 | |
| 693 | cc_library_static { |
Nan Zhang | d5c4d4a | 2017-07-19 16:22:00 -0700 | [diff] [blame] | 694 | name: "py2-c-module-_codecs_kr", |
| 695 | defaults: ["py2-interp-defaults"], |
| 696 | srcs: ["Modules/cjkcodecs/_codecs_kr.c"], |
| 697 | } |
| 698 | |
| 699 | cc_library_static { |
| 700 | name: "py2-c-module-_codecs_jp", |
| 701 | defaults: ["py2-interp-defaults"], |
| 702 | srcs: ["Modules/cjkcodecs/_codecs_jp.c"], |
| 703 | } |
| 704 | |
| 705 | cc_library_static { |
| 706 | name: "py2-c-module-_codecs_cn", |
| 707 | defaults: ["py2-interp-defaults"], |
| 708 | srcs: ["Modules/cjkcodecs/_codecs_cn.c"], |
| 709 | } |
| 710 | |
| 711 | cc_library_static { |
| 712 | name: "py2-c-module-_codecs_tw", |
| 713 | defaults: ["py2-interp-defaults"], |
| 714 | srcs: ["Modules/cjkcodecs/_codecs_tw.c"], |
| 715 | } |
| 716 | |
| 717 | cc_library_static { |
| 718 | name: "py2-c-module-_codecs_hk", |
| 719 | defaults: ["py2-interp-defaults"], |
| 720 | srcs: ["Modules/cjkcodecs/_codecs_hk.c"], |
| 721 | } |
| 722 | |
| 723 | cc_library_static { |
| 724 | name: "py2-c-module-_codecs_iso2022", |
| 725 | defaults: ["py2-interp-defaults"], |
| 726 | srcs: ["Modules/cjkcodecs/_codecs_iso2022.c"], |
| 727 | } |
| 728 | |
| 729 | cc_library_static { |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 730 | name: "py2-c-module-_multiprocessing", |
Nan Zhang | c393914 | 2017-05-25 23:21:27 -0700 | [diff] [blame] | 731 | defaults: ["py2-interp-defaults"], |
| 732 | srcs: [ |
| 733 | "Modules/_multiprocessing/multiprocessing.c", |
| 734 | "Modules/_multiprocessing/semaphore.c", |
| 735 | "Modules/_multiprocessing/socket_connection.c", |
| 736 | ], |
| 737 | } |
Nan Zhang | ced2751 | 2017-06-19 18:01:34 -0700 | [diff] [blame] | 738 | |
| 739 | cc_library_static { |
| 740 | name: "py2-c-module-zlib", |
| 741 | defaults: [ |
| 742 | "py2-interp-defaults", |
| 743 | ], |
| 744 | cflags: [ |
| 745 | "-DUSE_ZLIB_CRC32", |
| 746 | ], |
| 747 | srcs: [ |
| 748 | "Modules/zlibmodule.c", |
| 749 | ], |
| 750 | static_libs: [ |
| 751 | "libz", |
| 752 | ], |
| 753 | } |
Nan Zhang | d5c4d4a | 2017-07-19 16:22:00 -0700 | [diff] [blame] | 754 | |
| 755 | cc_library_static { |
| 756 | name: "py2-c-module-pyexpat", |
| 757 | defaults: [ |
| 758 | "py2-interp-defaults", |
| 759 | ], |
| 760 | cflags: [ |
| 761 | "-DUSE_PYEXPAT_CAPI", |
| 762 | ], |
| 763 | srcs: [ |
| 764 | "Modules/pyexpat.c", |
| 765 | ], |
| 766 | static_libs: [ |
| 767 | "libexpat", |
| 768 | ], |
| 769 | } |
| 770 | |
| 771 | cc_library_static { |
| 772 | name: "py2-c-module-_sqlite3", |
| 773 | defaults: [ |
| 774 | "py2-interp-defaults", |
| 775 | ], |
| 776 | cflags: [ |
| 777 | "-DMODULE_NAME=\"sqlite3\"", |
| 778 | "-DSQLITE_OMIT_LOAD_EXTENSION", |
| 779 | "-Wno-format-security", |
| 780 | "-Wno-type-limits", |
| 781 | "-Wno-char-subscripts", |
| 782 | ], |
| 783 | local_include_dirs: [ |
| 784 | "Modules/_sqlite", |
| 785 | ], |
| 786 | srcs: [ |
| 787 | "Modules/_sqlite/cache.c", |
| 788 | "Modules/_sqlite/connection.c", |
| 789 | "Modules/_sqlite/cursor.c", |
| 790 | "Modules/_sqlite/microprotocols.c", |
| 791 | "Modules/_sqlite/module.c", |
| 792 | "Modules/_sqlite/prepare_protocol.c", |
| 793 | "Modules/_sqlite/row.c", |
| 794 | "Modules/_sqlite/statement.c", |
| 795 | "Modules/_sqlite/util.c", |
| 796 | ], |
Nan Zhang | 33bb4bb | 2017-12-01 20:00:54 +0000 | [diff] [blame] | 797 | target: { |
| 798 | linux_glibc_x86_64: { |
| 799 | static_libs: [ |
| 800 | "libsqlite", |
| 801 | ], |
| 802 | }, |
| 803 | darwin_x86_64: { |
| 804 | static_libs: [ |
| 805 | "libsqlite", |
| 806 | ], |
| 807 | }, |
| 808 | android: { |
| 809 | shared_libs: [ |
| 810 | "libsqlite", |
Dan Willemsen | 04e3910 | 2019-02-14 21:00:06 -0800 | [diff] [blame^] | 811 | ], |
Nan Zhang | 33bb4bb | 2017-12-01 20:00:54 +0000 | [diff] [blame] | 812 | }, |
| 813 | }, |
Nan Zhang | d5c4d4a | 2017-07-19 16:22:00 -0700 | [diff] [blame] | 814 | } |
| 815 | |
| 816 | cc_library_static { |
| 817 | name: "py2-c-module-_ctypes_test", |
| 818 | defaults: ["py2-interp-defaults"], |
| 819 | srcs: ["Modules/_ctypes/_ctypes_test.c"], |
| 820 | } |
| 821 | |
Nan Zhang | d5c4d4a | 2017-07-19 16:22:00 -0700 | [diff] [blame] | 822 | cc_library_static { |
| 823 | name: "py2-c-module-_ctypes", |
| 824 | defaults: [ |
| 825 | "py2-interp-defaults", |
| 826 | ], |
| 827 | local_include_dirs: [ |
Nan Zhang | d5c4d4a | 2017-07-19 16:22:00 -0700 | [diff] [blame] | 828 | "Modules/_ctypes/libffi/include", |
| 829 | ], |
| 830 | srcs: [ |
| 831 | "Modules/_ctypes/_ctypes.c", |
| 832 | "Modules/_ctypes/callbacks.c", |
| 833 | "Modules/_ctypes/callproc.c", |
| 834 | "Modules/_ctypes/stgdict.c", |
| 835 | "Modules/_ctypes/cfield.c", |
| 836 | "Modules/_ctypes/libffi/src/prep_cif.c", |
| 837 | "Modules/_ctypes/libffi/src/closures.c", |
| 838 | ], |
| 839 | arch: { |
| 840 | x86_64: { |
| 841 | local_include_dirs: [ |
| 842 | "Modules/_ctypes/libffi/src/x86", |
| 843 | ], |
| 844 | srcs: [ |
| 845 | "Modules/_ctypes/libffi/src/x86/ffi64.c", |
Nan Zhang | d5c4d4a | 2017-07-19 16:22:00 -0700 | [diff] [blame] | 846 | "Modules/_ctypes/libffi/src/x86/ffi.c", |
| 847 | "Modules/_ctypes/libffi/src/x86/sysv.S", |
| 848 | ], |
| 849 | }, |
Nan Zhang | 33bb4bb | 2017-12-01 20:00:54 +0000 | [diff] [blame] | 850 | x86: { |
| 851 | local_include_dirs: [ |
| 852 | "Modules/_ctypes/libffi/src/x86", |
| 853 | ], |
| 854 | srcs: [ |
| 855 | "Modules/_ctypes/libffi/src/x86/ffi.c", |
| 856 | "Modules/_ctypes/libffi/src/x86/sysv.S", |
| 857 | ], |
| 858 | }, |
| 859 | arm: { |
| 860 | local_include_dirs: [ |
| 861 | "android_arm/libffi", |
| 862 | "Modules/_ctypes/libffi/src/arm", |
| 863 | ], |
| 864 | srcs: [ |
| 865 | "Modules/_ctypes/libffi/src/arm/ffi.c", |
| 866 | "Modules/_ctypes/libffi/src/arm/sysv.S", |
| 867 | "Modules/_ctypes/libffi/src/arm/trampoline.S", |
Dan Willemsen | 04e3910 | 2019-02-14 21:00:06 -0800 | [diff] [blame^] | 868 | ], |
Nan Zhang | 33bb4bb | 2017-12-01 20:00:54 +0000 | [diff] [blame] | 869 | }, |
| 870 | arm64: { |
| 871 | // arithmetic on a pointer in _ctypes/libffi/src/aarch64/ffi.c |
| 872 | cflags: ["-Wno-pointer-arith"], |
| 873 | local_include_dirs: [ |
| 874 | "android_arm64/libffi", |
| 875 | "Modules/_ctypes/libffi/src/aarch64", |
| 876 | ], |
| 877 | srcs: [ |
| 878 | "Modules/_ctypes/libffi/src/aarch64/ffi.c", |
| 879 | "Modules/_ctypes/libffi/src/aarch64/sysv.S", |
Dan Willemsen | 04e3910 | 2019-02-14 21:00:06 -0800 | [diff] [blame^] | 880 | ], |
Nan Zhang | 33bb4bb | 2017-12-01 20:00:54 +0000 | [diff] [blame] | 881 | }, |
Nan Zhang | d5c4d4a | 2017-07-19 16:22:00 -0700 | [diff] [blame] | 882 | }, |
Dan Willemsen | c88c080 | 2017-09-25 14:33:27 -0700 | [diff] [blame] | 883 | target: { |
| 884 | // Regenerate include dirs with android_regen.sh |
| 885 | darwin_x86_64: { |
| 886 | local_include_dirs: ["darwin_x86_64/libffi"], |
| 887 | srcs: [ |
| 888 | "Modules/_ctypes/libffi/src/x86/darwin.S", |
| 889 | "Modules/_ctypes/libffi/src/x86/darwin64.S", |
| 890 | ], |
| 891 | }, |
Dan Willemsen | e41d4ce | 2017-10-02 10:41:09 -0700 | [diff] [blame] | 892 | linux_glibc_x86_64: { |
Dan Willemsen | c88c080 | 2017-09-25 14:33:27 -0700 | [diff] [blame] | 893 | local_include_dirs: ["linux_x86_64/libffi"], |
| 894 | srcs: [ |
| 895 | "Modules/_ctypes/libffi/src/x86/unix64.S", |
| 896 | ], |
| 897 | }, |
Nan Zhang | 33bb4bb | 2017-12-01 20:00:54 +0000 | [diff] [blame] | 898 | android_x86: { |
| 899 | local_include_dirs: ["android_x86/libffi"], |
| 900 | srcs: [ |
| 901 | "Modules/_ctypes/libffi/src/x86/win32.S", |
| 902 | ], |
| 903 | }, |
| 904 | android_x86_64: { |
| 905 | local_include_dirs: ["android_x86_64/libffi"], |
| 906 | srcs: [ |
| 907 | "Modules/_ctypes/libffi/src/x86/unix64.S", |
| 908 | ], |
| 909 | }, |
Dan Willemsen | c88c080 | 2017-09-25 14:33:27 -0700 | [diff] [blame] | 910 | }, |
Nan Zhang | d5c4d4a | 2017-07-19 16:22:00 -0700 | [diff] [blame] | 911 | } |