-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
76 lines (66 loc) · 2.04 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Project name and programming language
project('com.felixbrezo.GraniteTemplate', 'vala', 'c')
# Include the translations module
i18n = import('i18n')
# Set our translation domain
add_global_arguments('-DGETTEXT_PACKAGE="@0@"'.format (meson.project_name()), language:'c')
# Translations
# ------------
subdir('po')
# Data files
# -----------
#subdir('data')
# Install the icon
# TODO: remove in favour of subdir for easier maintenance
install_data(
join_paths('data', meson.project_name() + '.svg'),
install_dir: join_paths(get_option('datadir'), 'icons')
)
install_data(
join_paths('data', 'bachfugue.wav'),
install_dir: join_paths(get_option('datadir'), 'icons')
)
# Translate and install our .desktop file
i18n.merge_file(
type: 'desktop',
input: join_paths('data', meson.project_name() + '.desktop.in'),
output: meson.project_name() + '.desktop',
install: true,
install_dir: join_paths(get_option('datadir'), 'applications'),
po_dir: join_paths(meson.source_root(), 'po')
)
# Translate and install our .appdata file
i18n.merge_file(
type: 'xml',
input: join_paths('data', meson.project_name() + '.appdata.xml.in'),
output: meson.project_name() + '.appdata.xml',
install: true,
install_dir: join_paths(get_option('datadir'), 'metainfo'),
po_dir: join_paths(meson.source_root(), 'po')
)
# Compilation
# -----------
#subdir('src')
# Create a new executable file, list the files we want to compile, list deps and install
# TODO: remove in favour of subdir for easier maintenance
executable(
meson.project_name(),
'src/Application.vala',
'src/Window.vala',
'src/core/Clipboard.vala',
'src/core/SomethingHelpful.vala',
'src/gui/AboutDialog.vala',
'src/gui/HeaderBar.vala',
'src/gui/MainView.vala',
'src/gui/SampleDialog.vala',
'src/gui/SettingsMenu.vala',
'src/gui/WelcomeView.vala',
dependencies: [
dependency('granite'),
meson.get_compiler('vala').find_library('posix'),
# dependency('json-glib-1.0'),
# dependency('gee-0.8'),
# dependency('libsoup-2.4')
],
install: true
)