-
-
Notifications
You must be signed in to change notification settings - Fork 101
Expand file tree
/
Copy pathmeson.build
More file actions
79 lines (70 loc) · 1.65 KB
/
meson.build
File metadata and controls
79 lines (70 loc) · 1.65 KB
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
77
78
terminal_deps = [
glib_dep,
gobject_dep,
gio_dep,
gtk_dep,
granite_dep,
adwaita_dep,
pcre2_dep,
vte_dep,
posix_dep,
linux_dep,
portal_dep,
m_dep
]
terminal_sources = [
'Dialogs/ColorPreferencesDialog.vala',
'Dialogs/ForegroundProcessDialog.vala',
'Dialogs/UnsafePasteDialog.vala',
'Flatpak/Utils.vala',
'Flatpak/Portal.vala',
'Widgets/SearchToolbar.vala',
'Widgets/SettingsPopover.vala',
'Widgets/TerminalView.vala',
'Widgets/TerminalWidget.vala',
'Widgets/ZoomOverlay.vala',
'Application.vala',
'DBus.vala',
'MainWindow.vala',
'Themes.vala',
'Utils.vala',
configure_file(
input: 'config.vala.in',
output: '@BASENAME@',
configuration: conf_data
),
terminal_gresource
]
executable(
meson.project_name(),
terminal_sources,
dependencies: terminal_deps,
install : true
)
# tests
# test_env = [
# 'G_TEST_SRCDIR=' + meson.current_source_dir(),
# 'G_TEST_BUILDDIR=' + meson.current_build_dir(),
# 'GSETTINGS_SCHEMA_DIR=' + meson.project_build_root() / 'data',
# 'GSETTINGS_BACKEND=memory',
# 'GIO_USE_VFS=local'
# ]
# add_test_setup(
# 'headless',
# exe_wrapper: [ find_program('xvfb-run'), '-a', '-s', '-screen 0 1024x768x24 -noreset' ],
# is_default: true
# )
# app_test = executable(
# meson.project_name() + '.tests.application',
# terminal_sources + 'tests/Application.vala',
# dependencies: terminal_deps,
# vala_args: [ '--define', 'TESTS']
# )
# test(
# 'Application',
# app_test,
# env: test_env,
# protocol: 'tap',
# depends: test_schemas
# )
subdir('tests')