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
|
# Meson file for Colloquium
project('colloquium', 'c',
version : '0.5.0',
license : 'GPL3+',
default_options : ['buildtype=debugoptimized'])
datadir=join_paths(get_option('datadir'), 'colloquium')
add_project_arguments('-DPACKAGE_VERSION="'+meson.project_version()+'"', language : 'c')
add_project_arguments('-DDATADIR="'+join_paths(get_option('prefix'), datadir)+'"',
language : 'c')
# Dependencies
gtkdep = dependency('gtk+-3.0')
cc = meson.get_compiler('c')
mdep = cc.find_library('m', required : false)
# Main program
executable('colloquium',
['src/colloquium.c',
'src/narrative_window.c',
'src/render.c',
'src/slideshow.c',
'src/debugger.c',
'src/pr_clock.c',
'src/sc_editor.c',
'src/slide_window.c',
'src/frame.c',
'src/presentation.c',
'src/sc_interp.c',
'src/testcard.c',
'src/imagestore.c',
'src/print.c',
'src/sc_parse.c',
],
dependencies : [gtkdep, mdep],
install : true)
# Data files, icon, desktop file etc
install_data(['data/demo.sc', 'data/sky.png', 'data/canvas.png'],
install_dir : datadir)
install_data(['data/colloquium.desktop'],
install_dir : get_option('datadir')+'/applications')
install_data(['data/colloquium.svg'],
install_dir : get_option('datadir')+'/icons/hicolor/scalable/apps')
# Tests
subdir('tests')
|