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
|
# Meson file for NanoLight
project('nanolight', 'c',
version : '0.1.0',
license : 'GPL3+',
default_options : ['buildtype=debugoptimized'])
# Localisation
subdir('po')
add_project_arguments('-DLOCALEDIR="'+join_paths(get_option('prefix'), get_option('localedir'))+'"',
language : 'c')
# Dependencies
gnome = import('gnome')
gdk_dep = dependency('gdk-3.0', required : true)
gtk_dep = dependency('gtk+-3.0', required : true)
glib_dep = dependency('glib-2.0', required : true)
gio_dep = dependency('gio-2.0', required : true)
cairo_dep = dependency('cairo', required : true)
pango_dep = dependency('pango', required : true)
pangocairo_dep = dependency('pangocairo', required : true)
cc = meson.get_compiler('c')
mdep = cc.find_library('m', required : false)
# Main program
executable('nanolight',
['src/nanolight.c',
'src/command.c',
],
dependencies : [gtk_dep, mdep],
install : true)
|