Add JSON stylesheet test
[colloquium.git] / meson.build
1 # Meson file for Colloquium
2 project('colloquium', 'c',
3         version : '0.5.0',
4         license : 'GPL3+',
5         default_options : ['buildtype=debugoptimized'])
6
7 gnome = import('gnome')
8
9 datadir=join_paths(get_option('datadir'), 'colloquium')
10
11 add_project_arguments('-DPACKAGE_VERSION="'+meson.project_version()+'"', language : 'c')
12 add_project_arguments('-DDATADIR="'+join_paths(get_option('prefix'), datadir)+'"',
13                       language : 'c')
14 add_project_arguments('-DLOCALEDIR="'+join_paths(get_option('prefix'), get_option('localedir'))+'"',
15                       language : 'c')
16
17 # Localisation
18 subdir('po')
19
20 # Dependencies
21 gtkdep = dependency('gtk+-3.0')
22 jsondep = dependency('json-glib-1.0')
23 cc = meson.get_compiler('c')
24 mdep = cc.find_library('m', required : false)
25
26 gresources = gnome.compile_resources('colloquium-resources',
27                                      'data/colloquium.gresource.xml',
28                                      source_dir: 'data', c_name: 'colloquium')
29
30 # Main program
31 executable('colloquium',
32            ['src/colloquium.c',
33             'src/narrative_window.c',
34             'src/render.c',
35             'src/slideshow.c',
36             'src/debugger.c',
37             'src/pr_clock.c',
38             'src/sc_editor.c',
39             'src/slide_window.c',
40             'src/frame.c',
41             'src/presentation.c',
42             'src/sc_interp.c',
43             'src/testcard.c',
44             'src/imagestore.c',
45             'src/print.c',
46             'src/sc_parse.c',
47             'src/utils.c',
48             'src/stylesheet_editor.c',
49            ],
50            gresources,
51            dependencies : [gtkdep, mdep],
52            install : true)
53
54 # Desktop file
55 install_data(['data/colloquium.desktop'],
56              install_dir : get_option('datadir')+'/applications')
57
58 # Icon
59 install_data(['data/colloquium.svg'],
60              install_dir : get_option('datadir')+'/icons/hicolor/scalable/apps')
61
62 # Tests
63 subdir('tests')