diff options
Diffstat (limited to 'test cases/unit/76 as link whole/meson.build')
-rw-r--r-- | test cases/unit/76 as link whole/meson.build | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test cases/unit/76 as link whole/meson.build b/test cases/unit/76 as link whole/meson.build new file mode 100644 index 0000000..6bc208f --- /dev/null +++ b/test cases/unit/76 as link whole/meson.build @@ -0,0 +1,11 @@ +project('as-link-whole', 'c') + +foo = static_library('foo', 'foo.c', install: true) +dep = declare_dependency(link_with: foo) +bar1 = library('bar1', 'bar.c', dependencies: dep) +bar2 = library('bar2', 'bar.c', dependencies: dep.as_link_whole()) + +# bar1.pc should have -lfoo but not bar2.pc +pkg = import('pkgconfig') +pkg.generate(bar1) +pkg.generate(bar2) |