summaryrefslogtreecommitdiff
path: root/source/luametatex/cmake/tex.cmake
blob: 4a4c781103db595126627abffdc944f36e360604 (plain)
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
set(tex_sources

    source/utilities/auxmemory.c
    source/utilities/auxzlib.c
    source/utilities/auxsparsearray.c
    source/utilities/auxsystem.c
    source/utilities/auxunistring.c
    source/utilities/auxfile.c
    source/utilities/auxposit.c

    source/libraries/hnj/hnjhyphen.c

    source/lua/lmtinterface.c
    source/lua/lmtlibrary.c
    source/lua/lmtcallbacklib.c
    source/lua/lmtlanguagelib.c
    source/lua/lmtlualib.c
    source/lua/lmtluaclib.c
    source/lua/lmttexiolib.c
    source/lua/lmttexlib.c
    source/lua/lmttokenlib.c
    source/lua/lmtnodelib.c
    source/lua/lmtenginelib.c
    source/lua/lmtfontlib.c
    source/lua/lmtstatuslib.c

    source/luaoptional/lmtoptional.c

    source/luarest/lmtfilelib.c
    source/luarest/lmtpdfelib.c
    source/luarest/lmtiolibext.c
    source/luarest/lmtoslibext.c
    source/luarest/lmtstrlibext.c
    source/luarest/lmtdecodelib.c
    source/luarest/lmtsha2lib.c
    source/luarest/lmtmd5lib.c
    source/luarest/lmtaeslib.c
    source/luarest/lmtbasexxlib.c
    source/luarest/lmtxmathlib.c
    source/luarest/lmtxcomplexlib.c
    source/luarest/lmtziplib.c
    source/luarest/lmtsparselib.c
    source/luarest/lmtposit.c

    source/tex/texalign.c
    source/tex/texarithmetic.c
    source/tex/texbuildpage.c
    source/tex/texcommands.c
    source/tex/texconditional.c
    source/tex/texdirections.c
    source/tex/texdumpdata.c
    source/tex/texequivalents.c
    source/tex/texerrors.c
    source/tex/texexpand.c
    source/tex/texmarks.c
    source/tex/texinputstack.c
    source/tex/texinserts.c
    source/tex/texadjust.c
    source/tex/texlinebreak.c
    source/tex/texlocalboxes.c
    source/tex/texmainbody.c
    source/tex/texmaincontrol.c
    source/tex/texmathcodes.c
    source/tex/texmlist.c
    source/tex/texnesting.c
    source/tex/texpackaging.c
    source/tex/texprimitive.c
    source/tex/texprinting.c
    source/tex/texscanning.c
    source/tex/texstringpool.c
    source/tex/textypes.c
    source/tex/texfont.c
    source/tex/texlanguage.c
    source/tex/texfileio.c
    source/tex/texmath.c
    source/tex/texnodes.c
    source/tex/textextcodes.c
    source/tex/textoken.c
    source/tex/texrules.c

)

add_library(tex STATIC ${tex_sources})

target_compile_definitions(tex PUBLIC
  # LUAI_HASHLIMIT=6 # obsolete
    ZLIB_CONST=1
    MINIZ_NO_ARCHIVE_APIS=1
    MINIZ_NO_STDIO=1
    MINIZ_NO_MALLOC=1
)

target_include_directories(tex PRIVATE
    .
    source/.
    source/libraries/miniz
    source/libraries/pplib
    source/libraries/pplib/util
    source/luacore/lua54/src
    source/libraries/mimalloc/include
    source/libraries/softposit/source/include
)