apk-tools/meson.build

40 lines
1011 B
Meson
Raw Normal View History

project(
2020-10-01 15:56:12 +00:00
'apk-tools',
['c'],
default_options : ['c_std=gnu99', 'optimization=2'],
2020-10-02 09:16:30 +00:00
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'))
2020-05-07 10:38:21 +00:00
scdoc_dep = dependency('scdoc', version: '>=1.10', required: get_option('docs'))
shared_deps = [
2020-10-01 15:56:12 +00:00
dependency('zlib'),
dependency('openssl'),
]
static_deps = [
2020-10-01 15:56:12 +00:00
dependency('openssl', static: true),
dependency('zlib', static: true),
]
add_project_arguments('-D_GNU_SOURCE', language: 'c')
# Needed for 64-bit off_t and friends on glibc.
add_project_arguments('-D_FILE_OFFSET_BITS=64', language: 'c')
# If we're a subproject we only want the static lib and not files
subproject = meson.is_subproject()
2020-05-07 10:38:21 +00:00
subdir('doc')
subdir('portability')
subdir('libfetch')
subdir('src')
subdir('tests')