forked from aimproxy/cyfrif
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
38 lines (32 loc) · 968 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
32
33
34
35
36
37
38
# project name and programming language
project('com.github.aimproxy.cyfrif', 'vala', 'c')
add_global_arguments ('-DGETTEXT_PACKAGE="cyfrif"', language:'c')
gnome = import('gnome')
i18n = import('i18n')
assets = gnome.compile_resources(
'as-resources', 'data/css.gresource.xml',
source_dir: 'data',
c_name: 'as'
)
# Create a new executable, list the files we want to compile, list the dependencies we need, and install
executable(
meson.project_name(),
'src/Application.vala',
'src/Windows/MainWindow.vala',
'src/Services/Service.vala',
'src/Services/TimeOut.vala',
'src/Services/TimerLabel.vala',
'src/Services/State.vala',
'src/Interfaces/Timer.vala',
'src/Configs/Settings.vala',
assets,
dependencies: [
dependency('gtk+-3.0'),
dependency('glib-2.0'),
dependency('granite')
],
install: true
)
subdir('data')
subdir('po')
meson.add_install_script('meson/post_install.py')