Add external dependencies to pc files only if found. Closes #2911.
parent
714ac85d22
commit
5e4538fe63
4 changed files with 29 additions and 1 deletions
@ -0,0 +1,15 @@ |
||||
project('foobar', 'c') |
||||
|
||||
unfound = dependency('blub_blob_blib', required : false) |
||||
|
||||
pkgg = import('pkgconfig') |
||||
|
||||
l = shared_library('somename', 'some.c', |
||||
dependencies : unfound) |
||||
|
||||
pkgg.generate( |
||||
libraries : l, |
||||
name : 'somename', |
||||
version : '1.0.0', |
||||
description : 'A test library.', |
||||
) |
@ -0,0 +1,3 @@ |
||||
int some() { |
||||
return 6; |
||||
} |
Loading…
Reference in new issue