-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
31 lines (27 loc) · 834 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
# project name and programming language
project('simple-todo', 'vala', 'c', version: '1.0.0')
# add resources to the executeable
gnome = import('gnome')
resources = gnome.compile_resources(
meson.project_name() + '-resources',
'data/resources.xml',
c_name: 'resources'
)
# Create a new executable, list the files we want to compile, list the dependencies we need, and install
executable(
meson.project_name(),
'src/TodoItem.vala',
'src/MainWindow.vala',
'src/Main.vala',
resources,
dependencies: [
dependency('gtk+-3.0'),
dependency('gio-2.0'),
],
install: true
)
#Install our .desktop file so the Applications Menu will see it
install_data(
join_paths('data', meson.project_name() + '.desktop'),
install_dir: join_paths(get_option('datadir'), 'applications')
)