summaryrefslogtreecommitdiff
path: root/src/meson.build
blob: bb183cd7a22c4b9696f31c91f2508cb57ba3a0cf (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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
src = []
src_cmd = []
test_mp_src = []
test_mp_eq_src = []

enums = []

enums += gnome.mkenums('types',
    sources: 'mp-serializer.h',
    c_template: 'mp-enums.c.template',
    h_template: 'mp-enums.h.template')

ui_files = files(
    'buttons-advanced.ui',
    'buttons-basic.ui',
    'buttons-financial.ui',
    'preferences.ui'
)

ui_resources = gnome.compile_resources(
    'ui_resources',
    'org.mate.calculator.gresource.xml',
    source_dir: 'src'
)

src += [
    'mate-calc.c',
    'currency-manager.c',
    'currency.c',
    'financial.c',
    'lexer.c',
    'math-buttons.c',
    'math-converter.c',
    'math-display.c',
    'math-equation.c',
    'math-history.c',
    'math-history-entry.c',
    'math-preferences.c',
    'math-variable-popup.c',
    'math-variables.c',
    'math-window.c',
    'mp-binary.c',
    'mp-convert.c',
    'mp-equation.c',
    'mp-trigonometric.c',
    'mp-serializer.c',
    'mp.c',
    'parser.c',
    'parserfunc.c',
    'prelexer.c',
    'unit-category.c',
    'unit-manager.c',
    'unit.c',
    enums,
    ui_resources
]

src_cmd += [
	'mate-calc-cmd.c',
	'currency.c',
	'currency-manager.c',
	'mp.c',
	'mp-binary.c',
	'mp-convert.c',
	'mp-equation.c',
	'mp-serializer.c',
	'mp-trigonometric.c',
	'unit.c',
	'unit-category.c',
	'unit-manager.c',
	'prelexer.c',
	'lexer.c',
	'parserfunc.c',
	'parser.c',
	enums
]

test_mp_src += [
    'test-mp.c',
    'mp.c',
    'mp-convert.c',
    'mp-trigonometric.c'
]

test_mp_eq_src += [
    'test-mp-equation.c',
    'currency.c',
    'currency-manager.c',
    'mp.c',
    'mp-convert.c',
    'mp-binary.c',
    enums,
    'mp-equation.c',
    'mp-serializer.c',
    'mp-trigonometric.c',
    'unit.c',
    'unit-category.c',
    'unit-manager.c',
    'prelexer.c',
    'lexer.c',
    'parserfunc.c',
    'parser.c',
]

executable('mate-calc', src, include_directories: top_inc,
    dependencies : [gio, glib, gobject,gtk, libxml, mpc, mpfr],
	link_args: '-rdynamic',
    install : true,
    install_dir : get_option('bindir'))

executable('mate-calc-cmd', src_cmd, include_directories: top_inc,
    dependencies : [gio, libxml, mpc, mpfr],
    install : true,
    install_dir : get_option('bindir'))

executable('test-mp', test_mp_src, include_directories: top_inc,
    dependencies : [gio, libxml, mpc, mpfr])

executable('test-mp-equation', test_mp_eq_src, include_directories: top_inc,
    dependencies: [gio, libxml, mpc, mpfr])