lib_src = files(
'compat.cpp',
'fetcher.cpp',
'repo.cpp',
)
lib_inc = include_directories('.')
# Nix uses these macros that are only defined in its own build
lib_extra_cppflags = ['-DSYSTEM=""']
lib = shared_module(
'pijul',
lib_src,
dependencies: [
nix_main_dep,
nix_store_dep,
nix_fetchers_dep,
],
cpp_args: [
f'-DNIX_MAJOR_VERSION=(@nix_major_version@)',
f'-DNIX_MINOR_VERSION=(@nix_minor_version@)',
f'-DNIX_PATCH_VERSION=(@nix_patch_version@)',
f'-DNIX_VERSION=(((@nix_major_version@)<