There is no reason to forbid empty variables, PkgConfigCLI.variable() even has code specifically for handling that case.pull/11867/head
parent
42944f72a4
commit
5654f03450
7 changed files with 4 additions and 36 deletions
@ -1,16 +0,0 @@ |
||||
project('variables-zero-length-value-test', 'c', version : '1.0') |
||||
|
||||
pkgg = import('pkgconfig') |
||||
lib = shared_library('simple', 'simple.c') |
||||
libver = '1.0' |
||||
h = install_headers('simple.h') |
||||
|
||||
pkgg.generate( |
||||
libraries : [lib, '-lz'], |
||||
subdirs : '.', |
||||
version : libver, |
||||
name : 'libsimple', |
||||
filebase : 'simple', |
||||
description : 'A simple demo library.', |
||||
variables : [ 'key=' ] |
||||
) |
@ -1,5 +0,0 @@ |
||||
#include"simple.h" |
||||
|
||||
int simple_function() { |
||||
return 42; |
||||
} |
@ -1,6 +0,0 @@ |
||||
#ifndef SIMPLE_H_ |
||||
#define SIMPLE_H_ |
||||
|
||||
int simple_function(); |
||||
|
||||
#endif |
@ -1,7 +0,0 @@ |
||||
{ |
||||
"stdout": [ |
||||
{ |
||||
"line": "test cases/failing/47 pkgconfig variables zero length value/meson.build:8:5: ERROR: pkgconfig.generate keyword argument \"variables\" empty variable value" |
||||
} |
||||
] |
||||
} |
Loading…
Reference in new issue