forked from lix-project/lix
Qyriad
06e65e537b
They are enabled by default, and Meson will also prints whether or not
they're enabled at the bottom at the end of configuration.
Change-Id: I48db238510bf9e74340b86f243f4bbe360794281
69 lines
1.5 KiB
Meson
69 lines
1.5 KiB
Meson
libfetchers_sources = files(
|
|
'attrs.cc',
|
|
'cache.cc',
|
|
'fetch-settings.cc',
|
|
'fetch-to-store.cc',
|
|
'fetchers.cc',
|
|
'git.cc',
|
|
'github.cc',
|
|
'indirect.cc',
|
|
'mercurial.cc',
|
|
'path.cc',
|
|
'registry.cc',
|
|
'tarball.cc',
|
|
)
|
|
|
|
libfetchers_headers = files(
|
|
'attrs.hh',
|
|
'cache.hh',
|
|
'fetch-settings.hh',
|
|
'fetch-to-store.hh',
|
|
'fetchers.hh',
|
|
'registry.hh',
|
|
)
|
|
|
|
libfetchers = library(
|
|
'lixfetchers',
|
|
libfetchers_sources,
|
|
dependencies : [
|
|
liblixstore,
|
|
liblixutil,
|
|
nlohmann_json,
|
|
],
|
|
cpp_pch : cpp_pch,
|
|
install : true,
|
|
# FIXME(Qyriad): is this right?
|
|
install_rpath : libdir,
|
|
)
|
|
|
|
install_headers(libfetchers_headers, subdir : 'lix/libfetchers', preserve_path : true)
|
|
|
|
# FIXME: not using the pkg-config module because it creates way too many deps
|
|
# while meson migration is in progress, and we want to not include boost here
|
|
configure_file(
|
|
input : 'lix-fetchers.pc.in',
|
|
output : 'lix-fetchers.pc',
|
|
install_dir : libdir / 'pkgconfig',
|
|
configuration : {
|
|
'prefix' : prefix,
|
|
'libdir' : libdir,
|
|
'includedir' : includedir,
|
|
'PACKAGE_VERSION' : meson.project_version(),
|
|
},
|
|
)
|
|
|
|
liblixfetchers = declare_dependency(
|
|
include_directories : include_directories('.'),
|
|
link_with : libfetchers,
|
|
)
|
|
|
|
# FIXME: remove when https://git.lix.systems/lix-project/lix/issues/359 is fixed.
|
|
if is_static
|
|
liblixfetchers_mstatic = declare_dependency(
|
|
include_directories : include_directories('.'),
|
|
link_whole : libfetchers,
|
|
)
|
|
else
|
|
liblixfetchers_mstatic = liblixfetchers
|
|
endif
|