ya.make 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368
  1. # Generated by devtools/yamaker from nixpkgs 22.11.
  2. LIBRARY()
  3. VERSION(3.12.5)
  4. ORIGINAL_SOURCE(https://github.com/python/cpython/archive/v3.12.5.tar.gz)
  5. LICENSE(Python-2.0)
  6. PEERDIR(
  7. contrib/libs/expat
  8. contrib/libs/libbz2
  9. contrib/libs/libc_compat
  10. contrib/libs/lzma
  11. contrib/libs/openssl
  12. contrib/libs/zlib
  13. contrib/restricted/libffi
  14. library/cpp/sanitizer/include
  15. )
  16. ADDINCL(
  17. contrib/libs/expat
  18. contrib/libs/libbz2
  19. contrib/restricted/libffi/include
  20. contrib/tools/python3/Include
  21. contrib/tools/python3/Include/internal
  22. contrib/tools/python3/Modules
  23. contrib/tools/python3/Modules/_decimal/libmpdec
  24. contrib/tools/python3/Modules/_hacl/include
  25. contrib/tools/python3/PC
  26. )
  27. NO_COMPILER_WARNINGS()
  28. NO_UTIL()
  29. CFLAGS(
  30. -DPy_BUILD_CORE
  31. -DPy_BUILD_CORE_BUILTIN
  32. -DUSE_ZLIB_CRC32
  33. -DABIFLAGS=\"\"
  34. -DPREFIX=\"/var/empty\"
  35. -DEXEC_PREFIX=\"/var/empty\"
  36. -DVERSION=\"3.12\"
  37. -DVPATH=\"\"
  38. -DPLATLIBDIR=\"lib\"
  39. )
  40. IF (CLANG_CL)
  41. CFLAGS(
  42. -Wno-invalid-token-paste
  43. )
  44. ENDIF()
  45. IF (OS_DARWIN)
  46. CFLAGS(
  47. -DPLATFORM=\"darwin\"
  48. -DMULTIARCH=\"darwin\"
  49. -DSOABI=\"cpython-312-darwin\"
  50. )
  51. LDFLAGS(
  52. -framework CoreFoundation
  53. -framework SystemConfiguration
  54. )
  55. ELSEIF (OS_LINUX)
  56. CFLAGS(
  57. -DPLATFORM=\"linux\"
  58. -DMULTIARCH=\"x86_64-linux-gnu\"
  59. -DSOABI=\"cpython-312-x86_64-linux-gnu\"
  60. )
  61. ELSEIF (OS_WINDOWS)
  62. CFLAGS(
  63. -DPY3_DLLNAME=L\"python3\"
  64. )
  65. LDFLAGS(
  66. Mincore.lib
  67. Shlwapi.lib
  68. Winmm.lib
  69. )
  70. ENDIF()
  71. SRCS(
  72. Modules/_abc.c
  73. Modules/_asynciomodule.c
  74. Modules/_bisectmodule.c
  75. Modules/_blake2/blake2b_impl.c
  76. Modules/_blake2/blake2module.c
  77. Modules/_blake2/blake2s_impl.c
  78. Modules/_bz2module.c
  79. Modules/_codecsmodule.c
  80. Modules/_collectionsmodule.c
  81. Modules/_contextvarsmodule.c
  82. Modules/_csv.c
  83. Modules/_ctypes/_ctypes.c
  84. Modules/_ctypes/callbacks.c
  85. Modules/_ctypes/callproc.c
  86. Modules/_ctypes/cfield.c
  87. Modules/_ctypes/stgdict.c
  88. Modules/_datetimemodule.c
  89. Modules/_decimal/_decimal.c
  90. Modules/_decimal/libmpdec/basearith.c
  91. Modules/_decimal/libmpdec/constants.c
  92. Modules/_decimal/libmpdec/context.c
  93. Modules/_decimal/libmpdec/convolute.c
  94. Modules/_decimal/libmpdec/crt.c
  95. Modules/_decimal/libmpdec/difradix2.c
  96. Modules/_decimal/libmpdec/fnt.c
  97. Modules/_decimal/libmpdec/fourstep.c
  98. Modules/_decimal/libmpdec/io.c
  99. Modules/_decimal/libmpdec/mpalloc.c
  100. Modules/_decimal/libmpdec/mpdecimal.c
  101. Modules/_decimal/libmpdec/mpsignal.c
  102. Modules/_decimal/libmpdec/numbertheory.c
  103. Modules/_decimal/libmpdec/sixstep.c
  104. Modules/_decimal/libmpdec/transpose.c
  105. Modules/_elementtree.c
  106. Modules/_functoolsmodule.c
  107. Modules/_hacl/Hacl_Hash_MD5.c
  108. Modules/_hacl/Hacl_Hash_SHA1.c
  109. Modules/_hacl/Hacl_Hash_SHA2.c
  110. Modules/_hacl/Hacl_Hash_SHA3.c
  111. Modules/_hashopenssl.c
  112. Modules/_heapqmodule.c
  113. Modules/_io/_iomodule.c
  114. Modules/_io/bufferedio.c
  115. Modules/_io/bytesio.c
  116. Modules/_io/fileio.c
  117. Modules/_io/iobase.c
  118. Modules/_io/stringio.c
  119. Modules/_io/textio.c
  120. Modules/_io/winconsoleio.c
  121. Modules/_json.c
  122. Modules/_localemodule.c
  123. Modules/_lsprof.c
  124. Modules/_lzmamodule.c
  125. Modules/_multiprocessing/multiprocessing.c
  126. Modules/_multiprocessing/posixshmem.c
  127. Modules/_multiprocessing/semaphore.c
  128. Modules/_opcode.c
  129. Modules/_operator.c
  130. Modules/_pickle.c
  131. Modules/_queuemodule.c
  132. Modules/_randommodule.c
  133. Modules/_sre/sre.c
  134. Modules/_ssl.c
  135. Modules/_stat.c
  136. Modules/_statisticsmodule.c
  137. Modules/_struct.c
  138. Modules/_threadmodule.c
  139. Modules/_tracemalloc.c
  140. Modules/_typingmodule.c
  141. Modules/_weakref.c
  142. Modules/_xxinterpchannelsmodule.c
  143. Modules/_xxsubinterpretersmodule.c
  144. Modules/_xxtestfuzz/_xxtestfuzz.c
  145. Modules/_xxtestfuzz/fuzzer.c
  146. Modules/_zoneinfo.c
  147. Modules/arraymodule.c
  148. Modules/atexitmodule.c
  149. Modules/audioop.c
  150. Modules/binascii.c
  151. Modules/cjkcodecs/_codecs_cn.c
  152. Modules/cjkcodecs/_codecs_hk.c
  153. Modules/cjkcodecs/_codecs_iso2022.c
  154. Modules/cjkcodecs/_codecs_jp.c
  155. Modules/cjkcodecs/_codecs_kr.c
  156. Modules/cjkcodecs/_codecs_tw.c
  157. Modules/cjkcodecs/multibytecodec.c
  158. Modules/cmathmodule.c
  159. Modules/config.c
  160. Modules/errnomodule.c
  161. Modules/faulthandler.c
  162. Modules/gcmodule.c
  163. Modules/getbuildinfo.c
  164. Modules/getpath.c
  165. Modules/itertoolsmodule.c
  166. Modules/main.c
  167. Modules/mathmodule.c
  168. Modules/md5module.c
  169. Modules/mmapmodule.c
  170. Modules/posixmodule.c
  171. Modules/pyexpat.c
  172. Modules/rotatingtree.c
  173. Modules/selectmodule.c
  174. Modules/sha1module.c
  175. Modules/sha2module.c
  176. Modules/sha3module.c
  177. Modules/signalmodule.c
  178. Modules/socketmodule.c
  179. Modules/symtablemodule.c
  180. Modules/timemodule.c
  181. Modules/unicodedata.c
  182. Modules/zlibmodule.c
  183. Objects/abstract.c
  184. Objects/boolobject.c
  185. Objects/bytearrayobject.c
  186. Objects/bytes_methods.c
  187. Objects/bytesobject.c
  188. Objects/call.c
  189. Objects/capsule.c
  190. Objects/cellobject.c
  191. Objects/classobject.c
  192. Objects/codeobject.c
  193. Objects/complexobject.c
  194. Objects/descrobject.c
  195. Objects/dictobject.c
  196. Objects/enumobject.c
  197. Objects/exceptions.c
  198. Objects/fileobject.c
  199. Objects/floatobject.c
  200. Objects/frameobject.c
  201. Objects/funcobject.c
  202. Objects/genericaliasobject.c
  203. Objects/genobject.c
  204. Objects/interpreteridobject.c
  205. Objects/iterobject.c
  206. Objects/listobject.c
  207. Objects/longobject.c
  208. Objects/memoryobject.c
  209. Objects/methodobject.c
  210. Objects/moduleobject.c
  211. Objects/namespaceobject.c
  212. Objects/object.c
  213. Objects/obmalloc.c
  214. Objects/odictobject.c
  215. Objects/picklebufobject.c
  216. Objects/rangeobject.c
  217. Objects/setobject.c
  218. Objects/sliceobject.c
  219. Objects/structseq.c
  220. Objects/tupleobject.c
  221. Objects/typeobject.c
  222. Objects/typevarobject.c
  223. Objects/unicodectype.c
  224. Objects/unicodeobject.c
  225. Objects/unionobject.c
  226. Objects/weakrefobject.c
  227. Parser/action_helpers.c
  228. Parser/myreadline.c
  229. Parser/parser.c
  230. Parser/peg_api.c
  231. Parser/pegen.c
  232. Parser/pegen_errors.c
  233. Parser/string_parser.c
  234. Parser/token.c
  235. Parser/tokenizer.c
  236. Python/Python-ast.c
  237. Python/Python-tokenize.c
  238. Python/_warnings.c
  239. Python/asdl.c
  240. Python/assemble.c
  241. Python/ast.c
  242. Python/ast_opt.c
  243. Python/ast_unparse.c
  244. Python/bltinmodule.c
  245. Python/bootstrap_hash.c
  246. Python/ceval.c
  247. Python/ceval_gil.c
  248. Python/codecs.c
  249. Python/compile.c
  250. Python/context.c
  251. Python/deepfreeze/deepfreeze.c
  252. Python/dtoa.c
  253. Python/dynamic_annotations.c
  254. Python/errors.c
  255. Python/fileutils.c
  256. Python/flowgraph.c
  257. Python/formatter_unicode.c
  258. Python/frame.c
  259. Python/frozen.c
  260. Python/future.c
  261. Python/getargs.c
  262. Python/getcompiler.c
  263. Python/getcopyright.c
  264. Python/getopt.c
  265. Python/getplatform.c
  266. Python/getversion.c
  267. Python/hamt.c
  268. Python/hashtable.c
  269. Python/import.c
  270. Python/importdl.c
  271. Python/initconfig.c
  272. Python/instrumentation.c
  273. Python/intrinsics.c
  274. Python/legacy_tracing.c
  275. Python/marshal.c
  276. Python/modsupport.c
  277. Python/mysnprintf.c
  278. Python/mystrtoul.c
  279. Python/pathconfig.c
  280. Python/perf_trampoline.c
  281. Python/preconfig.c
  282. Python/pyarena.c
  283. Python/pyctype.c
  284. Python/pyfpe.c
  285. Python/pyhash.c
  286. Python/pylifecycle.c
  287. Python/pymath.c
  288. Python/pystate.c
  289. Python/pystrcmp.c
  290. Python/pystrhex.c
  291. Python/pystrtod.c
  292. Python/pythonrun.c
  293. Python/pytime.c
  294. Python/specialize.c
  295. Python/structmember.c
  296. Python/suggestions.c
  297. Python/symtable.c
  298. Python/sysmodule.c
  299. Python/thread.c
  300. Python/traceback.c
  301. Python/tracemalloc.c
  302. )
  303. IF (OS_WINDOWS)
  304. SRCS(
  305. Modules/_winapi.c
  306. Modules/overlapped.c
  307. PC/WinMain.c
  308. PC/invalid_parameter_handler.c
  309. PC/msvcrtmodule.c
  310. PC/winreg.c
  311. PC/winsound.c
  312. Python/dynload_win.c
  313. )
  314. ELSE()
  315. SRCS(
  316. Modules/_cryptmodule.c
  317. Modules/_posixsubprocess.c
  318. Modules/fcntlmodule.c
  319. Modules/grpmodule.c
  320. Modules/pwdmodule.c
  321. Modules/resource.c
  322. Modules/syslogmodule.c
  323. Modules/termios.c
  324. Python/dynload_shlib.c
  325. )
  326. ENDIF()
  327. IF (OS_DARWIN)
  328. SRCS(
  329. Modules/_scproxy.c
  330. )
  331. ELSEIF (OS_LINUX)
  332. IF (NOT MUSL)
  333. EXTRALIBS(crypt)
  334. ENDIF()
  335. SRCS(
  336. Modules/spwdmodule.c
  337. Python/asm_trampoline.S
  338. )
  339. ENDIF()
  340. SUPPRESSIONS(
  341. tsan.supp
  342. )
  343. END()
  344. RECURSE(
  345. Lib
  346. Modules/_sqlite
  347. bin
  348. )