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