summaryrefslogtreecommitdiff
path: root/tests/test-keyring/meson.build
blob: fb1c47a3ea05fcabe375594cbc3f4df475557fba (plain)
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
# Copyright 2022 Collabora Ltd.
# SPDX-License-Identifier: LGPL-2.1-or-later

if get_option('installed_tests')
  install_sub = installed_testdir / 'test-keyring'
else
  install_sub = false
endif

foreach file : [
  'README',
  'pubring.gpg',
  'secring.gpg',
]
  # TODO: When we depend on Meson 0.50.0, we can use
  # install : get_option('installed_tests')
  # instead of
  # install_dir : false
  configure_file(
    input : file,
    output : file,
    copy : true,
    install_dir : install_sub,
    install_mode : 'rw-r--r--',
  )
endforeach