1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-03 02:01:48 +02:00

C API: Add nix_store_get_storedir

This commit is contained in:
Robert Hensing 2024-12-12 17:43:01 +01:00 committed by Mic92
parent 80ee736b02
commit 472912f7ca
4 changed files with 60 additions and 2 deletions

View file

@ -16,8 +16,10 @@ cxx = meson.get_compiler('cpp')
subdir('nix-meson-build-support/deps-lists')
nix_store = dependency('nix-store')
deps_private_maybe_subproject = [
dependency('nix-store'),
nix_store,
dependency('nix-store-c'),
dependency('nix-store-test-support'),
]
@ -90,6 +92,7 @@ this_exe = executable(
include_directories : include_dirs,
# TODO: -lrapidcheck, see ../libutil-support/build.meson
link_args: linker_export_flags + ['-lrapidcheck'],
cpp_args : [ '-DNIX_STORE_DIR="' + nix_store.get_variable('storedir') + '"' ],
# get main from gtest
install : true,
)