forked from elementary/terminal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
52 lines (44 loc) · 1.4 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
project(
'io.elementary.terminal',
'vala', 'c',
version: '5.3.5'
)
if meson.get_compiler('vala').version().version_compare('<0.40')
error('Missing required dependency: valac >= 0.40')
endif
gnome = import('gnome')
i18n = import('i18n')
add_global_arguments('-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()), language:'c')
if get_option('ubuntu-bionic-patched-vte')
add_project_arguments(['--define', 'UBUNTU_BIONIC_PATCHED_VTE'], language : 'vala')
endif
terminal_resources = gnome.compile_resources(
'terminal-resources', 'data/' + meson.project_name() + '.gresource.xml',
source_dir: 'data'
)
executable(
meson.project_name(),
'src/Application.vala',
'src/DBus.vala',
'src/Settings.vala',
'src/MainWindow.vala',
'src/Dialogs/ForegroundProcessDialog.vala',
'src/Dialogs/UnsafePasteDialog.vala',
'src/Widgets/SearchToolbar.vala',
'src/Widgets/TerminalWidget.vala',
terminal_resources,
dependencies: [
dependency('gee-0.8'),
dependency('glib-2.0'),
dependency('gobject-2.0'),
dependency('gtk+-3.0'),
dependency('granite', version: '>=5.2.0'),
dependency('vte-2.91'),
meson.get_compiler('vala').find_library('posix'),
meson.get_compiler('c').find_library('m', required : false)
],
install : true
)
meson.add_install_script('meson/post_install.py')
subdir('data')
subdir('po')