aboutsummaryrefslogtreecommitdiffstats
path: root/meson.build
blob: 902854e64f77d8c3823c7c380c0b2484c15bff85 (plain) (blame)
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
project(
	'apk-tools',
	['c'],
	default_options : ['c_std=gnu99', 'optimization=2'],
	version: '3.0.0_pre0',
	meson_version: '>=0.52'
)
pkgc = import('pkgconfig')

apk_confdir = get_option('sysconfdir') / 'apk'
apk_libdir = get_option('libdir')

lua_bin = find_program('lua' + get_option('lua_version'), required: get_option('help'))
lua_dep = dependency('lua' + get_option('lua_version'), required: get_option('lua'))
scdoc_dep = dependency('scdoc', version: '>=1.10', required: get_option('docs'))

shared_deps = [
	dependency('zlib'),
	dependency('openssl'),
]

static_deps = [
	dependency('openssl', static: true),
	dependency('zlib', static: true),
]

add_project_arguments('-D_GNU_SOURCE', language: 'c')

# If we're a subproject we only want the static lib and not files
subproject = meson.is_subproject()

subdir('doc')
subdir('libfetch')
subdir('src')
subdir('tests')