Skip to content

Commit b5c67f2

Browse files
committed
Merge branch 'master' of github.com:akiraux/Akira
2 parents 45b0019 + 7cd07d7 commit b5c67f2

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

meson.build

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ project('com.github.akiraux.akira', 'vala', 'c')
44
akira_prefix = get_option('prefix')
55
akira_datadir = join_paths(akira_prefix, get_option('datadir'))
66
akira_pkgdatadir = join_paths(akira_datadir, meson.project_name())
7+
install_tests = get_option('install-tests')
78

89
vala_version = meson.get_compiler('vala').version()
910
if vala_version.version_compare('<=0.43.90')
@@ -67,6 +68,9 @@ add_global_arguments(['-DG_LOG_DOMAIN="Akira"'], language:'c')
6768
subdir('src')
6869
subdir('data')
6970
subdir('po')
70-
subdir('tests')
71+
72+
if install_tests
73+
subdir('tests')
74+
endif
7175

7276
meson.add_install_script('build-aux/meson/post_install.py')

meson_options.txt

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
option(
2-
'profile',
3-
type: 'combo',
4-
choices: [
5-
'default',
6-
'development'
7-
],
8-
value: 'default'
9-
)
1+
option('profile', type: 'combo', choices: ['default', 'development'], value: 'default')
2+
3+
option('install-tests', type : 'boolean', value : 'false',
4+
description : 'install test executables')

0 commit comments

Comments
 (0)