summaryrefslogtreecommitdiffstats
path: root/test cases/unit/76 as link whole/meson.build
blob: 6bc208f1bf77e42236e5045a88961dea7e9c0f0f (plain)
1
2
3
4
5
6
7
8
9
10
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)