1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 23:11:16 +02:00

More dedup

This commit is contained in:
John Ericson 2024-06-27 12:34:03 -04:00
parent 4609ab318c
commit c88f83b471
17 changed files with 88 additions and 165 deletions

View file

@ -18,32 +18,19 @@ subdir('meson-utils/deps-lists')
configdata = configuration_data()
foreach nix_dep : [
deps_private_maybe_subproject = [
dependency('nix-util'),
dependency('nix-store'),
dependency('nix-expr'),
]
if nix_dep.type_name() == 'internal'
deps_private_subproject += nix_dep
# subproject sadly no good for pkg-config module
deps_other += nix_dep
else
deps_private += nix_dep
endif
endforeach
foreach nix_dep : [
deps_public_maybe_subproject = [
dependency('nix-util-c'),
dependency('nix-store-c'),
]
if nix_dep.type_name() == 'internal'
deps_public_subproject += nix_dep
# subproject sadly no good for pkg-config module
deps_other += nix_dep
else
deps_public += nix_dep
endif
endforeach
subdir('meson-utils/subprojects')
# TODO rename, because it will conflict with downstream projects
configdata.set_quoted('PACKAGE_VERSION', meson.project_version())
config_h = configure_file(
configuration : configdata,