summaryrefslogtreecommitdiffstats
path: root/contrib/tools/python3/src/ya.make
diff options
context:
space:
mode:
authorDevtools Arcadia <[email protected]>2022-02-07 18:08:42 +0300
committerDevtools Arcadia <[email protected]>2022-02-07 18:08:42 +0300
commit1110808a9d39d4b808aef724c861a2e1a38d2a69 (patch)
treee26c9fed0de5d9873cce7e00bc214573dc2195b7 /contrib/tools/python3/src/ya.make
intermediate changes
ref:cde9a383711a11544ce7e107a78147fb96cc4029
Diffstat (limited to 'contrib/tools/python3/src/ya.make')
-rw-r--r--contrib/tools/python3/src/ya.make204
1 files changed, 204 insertions, 0 deletions
diff --git a/contrib/tools/python3/src/ya.make b/contrib/tools/python3/src/ya.make
new file mode 100644
index 00000000000..64637cd287a
--- /dev/null
+++ b/contrib/tools/python3/src/ya.make
@@ -0,0 +1,204 @@
+LIBRARY()
+
+OWNER(g:contrib orivej)
+
+LICENSE(Python-2.0)
+
+PEERDIR(
+ contrib/tools/python3/src/Modules
+)
+
+ADDINCL(
+ contrib/tools/python3/src/Include
+ contrib/tools/python3/src/Include/internal
+ contrib/tools/python3/src/Modules
+ contrib/tools/python3/src/Modules/_decimal/libmpdec
+ contrib/tools/python3/src/PC
+)
+
+CFLAGS(
+ -DPy_BUILD_CORE
+)
+
+IF (CLANG_CL)
+ CFLAGS(-Wno-invalid-token-paste)
+ENDIF()
+
+IF (OS_DARWIN)
+ LDFLAGS(
+ -framework CoreFoundation
+ -framework SystemConfiguration
+ )
+ELSEIF (OS_WINDOWS)
+ LDFLAGS(
+ Mincore.lib
+ Shlwapi.lib
+ Winmm.lib
+ )
+
+ CFLAGS(
+ -DPY3_DLLNAME="L\"python3\""
+ )
+
+ DISABLE(MSVC_INLINE_OPTIMIZED)
+ENDIF()
+
+NO_COMPILER_WARNINGS()
+
+NO_UTIL()
+
+SRCS(
+ Modules/_functoolsmodule.c
+ Modules/_io/_iomodule.c
+ Modules/_io/bufferedio.c
+ Modules/_io/bytesio.c
+ Modules/_io/fileio.c
+ Modules/_io/iobase.c
+ Modules/_io/stringio.c
+ Modules/_io/textio.c
+ Modules/_io/winconsoleio.c
+ Modules/_threadmodule.c
+ Modules/config.c
+ Modules/gcmodule.c
+ Modules/main.c
+ Modules/mmapmodule.c
+ Modules/posixmodule.c
+ Modules/signalmodule.c
+ Modules/timemodule.c
+ Objects/abstract.c
+ Objects/accu.c
+ Objects/boolobject.c
+ Objects/bytearrayobject.c
+ Objects/bytes_methods.c
+ Objects/bytesobject.c
+ Objects/call.c
+ Objects/capsule.c
+ Objects/cellobject.c
+ Objects/classobject.c
+ Objects/codeobject.c
+ Objects/complexobject.c
+ Objects/descrobject.c
+ Objects/dictobject.c
+ Objects/enumobject.c
+ Objects/exceptions.c
+ Objects/fileobject.c
+ Objects/floatobject.c
+ Objects/frameobject.c
+ Objects/funcobject.c
+ Objects/genericaliasobject.c
+ Objects/genobject.c
+ Objects/interpreteridobject.c
+ Objects/iterobject.c
+ Objects/listobject.c
+ Objects/longobject.c
+ Objects/memoryobject.c
+ Objects/methodobject.c
+ Objects/moduleobject.c
+ Objects/namespaceobject.c
+ Objects/object.c
+ Objects/obmalloc.c
+ Objects/odictobject.c
+ Objects/picklebufobject.c
+ Objects/rangeobject.c
+ Objects/setobject.c
+ Objects/sliceobject.c
+ Objects/structseq.c
+ Objects/tupleobject.c
+ Objects/typeobject.c
+ Objects/unicodectype.c
+ Objects/unicodeobject.c
+ Objects/weakrefobject.c
+ Parser/acceler.c
+ Parser/grammar1.c
+ Parser/listnode.c
+ Parser/myreadline.c
+ Parser/node.c
+ Parser/parser.c
+ Parser/parsetok.c
+ Parser/pegen/parse.c
+ Parser/pegen/parse_string.c
+ Parser/pegen/peg_api.c
+ Parser/pegen/pegen.c
+ Parser/token.c
+ Parser/tokenizer.c
+ Python/Python-ast.c
+ Python/_warnings.c
+ Python/asdl.c
+ Python/ast.c
+ Python/ast_opt.c
+ Python/ast_unparse.c
+ Python/bltinmodule.c
+ Python/bootstrap_hash.c
+ Python/ceval.c
+ Python/codecs.c
+ Python/compile.c
+ Python/context.c
+ Python/dtoa.c
+ Python/dynamic_annotations.c
+ Python/errors.c
+ Python/fileutils.c
+ Python/formatter_unicode.c
+ Python/frozen.c
+ Python/frozenmain.c
+ Python/future.c
+ Python/getargs.c
+ Python/getcompiler.c
+ Python/getcopyright.c
+ Python/getopt.c
+ Python/getplatform.c
+ Python/getversion.c
+ Python/graminit.c
+ Python/hamt.c
+ Python/hashtable.c
+ Python/import.c
+ Python/importdl.c
+ Python/initconfig.c
+ Python/marshal.c
+ Python/modsupport.c
+ Python/mysnprintf.c
+ Python/mystrtoul.c
+ Python/pathconfig.c
+ Python/peephole.c
+ Python/preconfig.c
+ Python/pyarena.c
+ Python/pyctype.c
+ Python/pyfpe.c
+ Python/pyhash.c
+ Python/pylifecycle.c
+ Python/pymath.c
+ Python/pystate.c
+ Python/pystrcmp.c
+ Python/pystrhex.c
+ Python/pystrtod.c
+ Python/pythonrun.c
+ Python/pytime.c
+ Python/structmember.c
+ Python/symtable.c
+ Python/sysmodule.c
+ Python/thread.c
+ Python/traceback.c
+)
+
+SUPPRESSIONS(
+ tsan.supp
+)
+
+IF (OS_WINDOWS)
+ SRCS(
+ PC/WinMain.c
+ PC/dl_nt.c
+ PC/getpathp.c
+ PC/invalid_parameter_handler.c
+ PC/msvcrtmodule.c
+ PC/winreg.c
+ PC/winsound.c
+ Python/dynload_win.c
+ )
+ELSE()
+ SRCS(
+ Modules/getpath.c
+ Python/dynload_shlib.c
+ )
+ENDIF()
+
+END()