-
Notifications
You must be signed in to change notification settings - Fork 8
/
meson.build
51 lines (44 loc) · 846 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
43
44
45
46
47
48
49
50
51
project('Charter', 'c',
version : '2018.01.09',
license : 'GPL3'
)
PROJECT_NAME = 'charter'
PROJECT_SVG = 'charter_svg'
PROJECT_TEX = 'charter_tex'
lib_sources = [
'src/charter_string.c',
'src/clist.c',
'src/parser.c',
'src/charter.c',
'src/latex.c',
'src/svg.c',
'src/svg_utils.c',
'src/tinyexpr/tinyexpr.c',
'src/csv_parser/csvparser.c'
]
bin_sources_svg = [
'src/main_svg.c'
]
bin_sources_tex = [
'src/main_tex.c'
]
shared_library(
PROJECT_NAME,
sources: lib_sources,
link_args: '-lm',
install: true
)
executable(
PROJECT_SVG,
sources: [lib_sources, bin_sources_svg],
link_args: '-lm',
c_args: '-g',
install: true
)
executable(
PROJECT_TEX,
sources: [lib_sources, bin_sources_tex],
link_args: '-lm',
c_args: '-g',
install: true
)