aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/python/base/CMakeLists.inc
blob: 2bd2abb3dc50757621a68ce180c79cdb031b34fa (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
129
130
131
132
133
134
135
136
137
138
139
140
141
ADDINCL(${PYTHON_SRC_DIR})
ADDINCL(${PYTHON_SRC_DIR}/Include)
ADDINCL(${PYTHON_SRC_DIR}/Python)

IF (WIN32)
    ADDINCL(${PYTHON_SRC_DIR}/PC)
ENDIF ()

SRCDIR(${PYTHON_SRC_DIR})

SRCS(
    Parser/acceler.c
    Parser/grammar1.c
    Parser/listnode.c
    Parser/node.c
    Parser/parser.c
    Parser/parsetok.c
    Parser/bitset.c
    Parser/metagrammar.c
    Parser/firstsets.c
    Parser/grammar.c
    Parser/pgen.c
    Parser/myreadline.c
    Parser/tokenizer.c
    Objects/unicodeobject.c
    Objects/unicodectype.c
    Objects/abstract.c
    Objects/boolobject.c
    Objects/bufferobject.c
    Objects/bytes_methods.c
    Objects/bytearrayobject.c
    Objects/capsule.c
    Objects/cellobject.c
    Objects/classobject.c
    Objects/cobject.c
    Objects/codeobject.c
    Objects/complexobject.c
    Objects/descrobject.c
    Objects/enumobject.c
    Objects/exceptions.c
    Objects/genobject.c
    Objects/fileobject.c
    Objects/floatobject.c
    Objects/frameobject.c
    Objects/funcobject.c
    Objects/intobject.c
    Objects/iterobject.c
    Objects/listobject.c
    Objects/longobject.c
    Objects/dictobject.c
    Objects/memoryobject.c
    Objects/methodobject.c
    Objects/moduleobject.c
    Objects/object.c
    Objects/obmalloc.c
    Objects/rangeobject.c
    Objects/setobject.c
    Objects/sliceobject.c
    Objects/stringobject.c
    Objects/structseq.c
    Objects/tupleobject.c
    Objects/typeobject.c
    Objects/weakrefobject.c
    Python/thread.c
    Python/_warnings.c
    Python/Python-ast.c
    Python/asdl.c
    Python/ast.c
    Python/bltinmodule.c
    Python/ceval.c
    Python/compile.c
    Python/codecs.c
    Python/errors.c
    Python/future.c
    Python/getargs.c
    Python/getcompiler.c
    Python/getcopyright.c
    Python/getplatform.c
    Python/getversion.c
    Python/graminit.c
    Python/import.c
    Python/importdl.c
    Python/marshal.c
    Python/modsupport.c
    Python/mystrtoul.c
    Python/mysnprintf.c
    Python/peephole.c
    Python/pyarena.c
    Python/pyctype.c
    Python/pyfpe.c
    Python/pymath.c
    Python/pystate.c
    Python/pythonrun.c
    Python/random.c
    Python/structmember.c
    Python/symtable.c
    Python/sysmodule.c
    Python/traceback.c
    Python/getopt.c
    Python/pystrcmp.c
    Python/pystrtod.c
    Python/dtoa.c
    Python/formatter_unicode.c
    Python/formatter_string.c
    Modules/config.c
    Modules/main.c
    Modules/gcmodule.c
    Modules/threadmodule.c
    Modules/signalmodule.c
    Modules/errnomodule.c
    Modules/_sre.c
    Modules/_codecsmodule.c
    Modules/_weakref.c
    Modules/zipimport.c
    Modules/symtablemodule.c
    Modules/xxsubtype.c
    Modules/getbuildinfo.c
)

IF (UNIX)
    SRCS(
        Modules/getpath.c
        Python/dynload_shlib.c
    )
ELSEIF (WIN32)
    SRCS(
        PC/dl_nt.c
        PC/getpathp.c
        PC/import_nt.c
        PC/msvcrtmodule.c
        PC/_subprocess.c
        PC/_winreg.c
        Python/dynload_win.c
    )
ENDIF ()

CFLAGS(
    ${PYTHON_FLAGS}
)

INCLUDE(CMakeModules.inc)