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