summaryrefslogtreecommitdiff
blob: 66b492acf8ec0e28a4707c5db4cea9af76fc5526 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
project(
  'gentoo-functions', 'c',
  version: '1.7.2',
  license: 'GPL-2.0-only',
  default_options : [
    'warning_level=2',
    'c_std=gnu11',
  ]
)

install_data(
  'functions.sh',
  install_dir: 'lib/gentoo'
)

install_subdir(
  'functions',
  install_dir: 'lib/gentoo'
)

cc = meson.get_compiler('c')

executable(
  'consoletype',
  'consoletype.c',
  install: true
)

install_man(
  'consoletype.1',
)

do_tests = get_option('tests')
if do_tests
  test(
    'test-functions', files('test-functions'),
    workdir : meson.current_source_dir(),
    protocol : 'tap',
    verbose : true
  )
endif