ya.make 8.1 KB

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