-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
60 lines (51 loc) · 1.61 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Project name and programming language
project('io.github.coslyk.bingle', 'vala', 'c', version: '0.1')
# Import the translations module
i18n = import('i18n')
# Set our translation domain
add_global_arguments('-DGETTEXT_PACKAGE="@0@"'.format (meson.project_name()), language:'c')
# Import Meson modules
gnome = import('gnome')
# Compile resource files
asresources = gnome.compile_resources(
'as-resources', join_paths('data', 'app.gresource.xml'),
source_dir: 'data',
c_name: 'as'
)
# Create a new executable, list the files we want to compile, list the dependencies we need
executable(
meson.project_name(),
'src/AboutDialog.vala',
'src/Application.vala',
'src/DesktopService.vala',
'src/Provider.vala',
'src/Gallery.vala',
'src/ImageData.vala',
'src/ImageViewer.vala',
'src/MainWindow.vala',
asresources,
dependencies: [
dependency('gtk+-3.0'),
dependency('libsoup-2.4'),
dependency('json-glib-1.0'),
meson.get_compiler('vala').find_library('posix')
],
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')
)
# Install our icon file
install_data(
join_paths('data', meson.project_name() + '.png'),
install_dir: join_paths(get_option('datadir'), 'icons')
)
# Install our .appdata.xml file
install_data(
join_paths('data', meson.project_name() + '.appdata.xml'),
install_dir: join_paths(get_option('datadir'), 'metainfo')
)
# Translation files
subdir('po')