-
Notifications
You must be signed in to change notification settings - Fork 1
/
meson.build
42 lines (34 loc) · 865 Bytes
/
meson.build
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
project(
'mmtex',
'c',
version: '20240512',
meson_version: '>=0.61',
)
mmtex_version = meson.project_version()
add_project_arguments('-DMMTEX_VERSION="@0@"'.format(mmtex_version), language: 'c')
mmtex_inc = include_directories('include')
subdir('src')
mmtex_datadir = get_option('datadir') + '/mmtex'
install_subdir('texmf', install_dir: mmtex_datadir, strip_directory: true)
mmoptex_fmt = custom_target(
'mmoptex.fmt',
input: files('texmf/tex/mmoptex/mmoptex.ini'),
output: 'mmoptex.fmt',
env: {
'TEXMF': meson.current_source_dir() + '/texmf',
'TEXMFCNF': '/none', # no config files
},
command: [
mmluatex,
'-ini',
'@INPUT@'
],
install_dir: mmtex_datadir + '/web2c',
install: true,
)
# symlink mmoptex -> mmluatex
install_symlink(
'mmoptex',
install_dir: get_option('bindir'),
pointing_to: 'mmluatex',
)