aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/python3/src/Modules/CMakeLists.txt
blob: d5e241308a5f6483a7b3c33c489d8fe498579794 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
find_package(OpenSSL REQUIRED)
find_package(ZLIB REQUIRED)

add_library(python3-src-Modules)
target_compile_options(python3-src-Modules PRIVATE
  -DPy_BUILD_CORE_MODULE
)
target_include_directories(python3-src-Modules PRIVATE
  ${CMAKE_SOURCE_DIR}/contrib/libs/expat
  ${CMAKE_SOURCE_DIR}/contrib/libs/libbz2
  ${CMAKE_SOURCE_DIR}/contrib/libs/openssl
  ${CMAKE_SOURCE_DIR}/contrib/libs/zlib
  ${CMAKE_SOURCE_DIR}/contrib/restricted/libffi/include
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Include
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Include/internal
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/PC
)
target_link_libraries(python3-src-Modules PUBLIC
  contrib-libs-expat
  contrib-libs-libbz2
  OpenSSL::OpenSSL
  ZLIB::ZLIB
  libs-xz-liblzma
  contrib-restricted-libffi
)
target_sources(python3-src-Modules PRIVATE
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_abc.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_asynciomodule.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_bisectmodule.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_blake2/blake2b_impl.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_blake2/blake2module.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_blake2/blake2s_impl.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_bz2module.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_codecsmodule.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_collectionsmodule.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_contextvarsmodule.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_csv.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_ctypes/_ctypes.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_ctypes/callbacks.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_ctypes/callproc.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_ctypes/cfield.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_ctypes/stgdict.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_datetimemodule.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/_decimal.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec/basearith.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec/constants.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec/context.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec/convolute.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec/crt.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec/difradix2.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec/fnt.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec/fourstep.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec/io.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec/mpalloc.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec/mpdecimal.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec/numbertheory.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec/sixstep.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_decimal/libmpdec/transpose.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_elementtree.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_hashopenssl.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_heapqmodule.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_json.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_localemodule.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_lsprof.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_lzmamodule.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_math.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_multiprocessing/multiprocessing.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_multiprocessing/posixshmem.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_multiprocessing/semaphore.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_opcode.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_operator.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_peg_parser.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_pickle.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_queuemodule.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_randommodule.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_sha3/sha3module.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_sre.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_ssl.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_stat.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_statisticsmodule.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_struct.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_tracemalloc.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_weakref.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_xxsubinterpretersmodule.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_xxtestfuzz/_xxtestfuzz.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_xxtestfuzz/fuzzer.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_zoneinfo.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/arraymodule.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/atexitmodule.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/audioop.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/binascii.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/cjkcodecs/_codecs_cn.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/cjkcodecs/_codecs_hk.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/cjkcodecs/_codecs_iso2022.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/cjkcodecs/_codecs_jp.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/cjkcodecs/_codecs_kr.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/cjkcodecs/_codecs_tw.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/cjkcodecs/multibytecodec.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/cmathmodule.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/errnomodule.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/faulthandler.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/getbuildinfo.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/itertoolsmodule.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/mathmodule.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/md5module.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/parsermodule.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/pyexpat.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/rotatingtree.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/selectmodule.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/sha1module.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/sha256module.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/sha512module.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/socketmodule.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/symtablemodule.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/unicodedata.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/zlibmodule.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_cryptmodule.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/_posixsubprocess.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/fcntlmodule.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/grpmodule.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/pwdmodule.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/resource.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/syslogmodule.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/termios.c
  ${CMAKE_SOURCE_DIR}/contrib/tools/python3/src/Modules/spwdmodule.c
)