summaryrefslogtreecommitdiff
path: root/tool/meson.build
blob: 642cd5902280472f3bdbefe788acf7259fcc5db1 (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
27
secret_tool_sources = [
  'secret-tool.c',
]

secret_tool = executable('secret-tool',
  secret_tool_sources,
  dependencies: libsecret_dep,
  include_directories: config_h_dir,
  c_args: libsecret_cflags,
  install: true,
)

if get_option('gcrypt') and host_machine.system() != 'windows'
  test('test-secret-tool.sh',
    find_program('test-secret-tool.sh'),
    env: test_env,
    suite: 'secret-tool',
  )
endif

if get_option('tpm2')
  test('test-secret-tool-tpm2.sh',
    find_program('test-secret-tool-tpm2.sh'),
    env: test_env,
    suite: 'secret-tool',
  )
endif