Skip to content

Commit 7306c4e

Browse files
committed
reduce the exposed interface for libnvme_dep
It does not publicly expose openssl. It does publicly expose uuid.h and json.h, but only in terms of header types, not symbols used... so use a partial dependency that doesn't expose the link libraries.
1 parent a252b3b commit 7306c4e

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/meson.build

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ pkg.generate(libnvme,
5353

5454
libnvme_dep = declare_dependency(
5555
include_directories: ['.'],
56-
dependencies: deps,
56+
dependencies: [
57+
libuuid_dep.partial_dependency(compile_args: true, includes: true),
58+
json_c_dep.partial_dependency(compile_args: true, includes: true),
59+
],
5760
link_with: libnvme,
5861
)
5962

test/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
main = executable(
1313
'main-test',
1414
['test.c'],
15-
dependencies: libnvme_dep,
15+
dependencies: [libnvme_dep, libuuid_dep],
1616
include_directories: [incdir, internal_incdir]
1717
)
1818

0 commit comments

Comments
 (0)