aboutsummaryrefslogtreecommitdiff
blob: 7265366e34b3b503502483f9f90c66b70d5a2bbf (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
project(
  'java-config',
  version: '2.3.4-SNAPSHOT',
  license: 'GPL-2.0',
  meson_version: '>=1.1.1'
)

py_mod = import('python')
py = py_mod.find_installation(pure : true)

system_wide = get_option('system-wide')
python_only = get_option('python-only')

eprefix = get_option('eprefix')
datadir = get_option('datadir')

sysconfdir = system_wide ? get_option('sysconfdir') \
                         : datadir / 'etc'

conf_data = configuration_data({
  'VERSION': meson.project_version(),
  'EPREFIX': eprefix
})

subdir('src')
subdir('tests')

if python_only
  subdir_done()
endif

subdir('config')

if not system_wide
  subdir_done()
endif

subdir('man')