diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2020-06-21 19:48:39 -0400 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2020-06-24 22:53:09 +0300 |
commit | d0f468fef11f576cbbb2e704517f7b2d010750a1 (patch) | |
tree | 275ff7405bf24abd55c922dedf5c6b0427052a50 /test cases/common | |
parent | 35f2a2444f9298b59f0f2cd60b71d31c96ffb511 (diff) | |
download | meson-d0f468fef11f576cbbb2e704517f7b2d010750a1.zip meson-d0f468fef11f576cbbb2e704517f7b2d010750a1.tar.gz meson-d0f468fef11f576cbbb2e704517f7b2d010750a1.tar.bz2 |
pkgconfig: Add missing cflags in uninstalled files
Fixes: #7365
Diffstat (limited to 'test cases/common')
-rw-r--r-- | test cases/common/47 pkgconfig-gen/dependencies/main.c | 4 | ||||
-rw-r--r-- | test cases/common/47 pkgconfig-gen/meson.build | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/test cases/common/47 pkgconfig-gen/dependencies/main.c b/test cases/common/47 pkgconfig-gen/dependencies/main.c index 61708d3..397d40c 100644 --- a/test cases/common/47 pkgconfig-gen/dependencies/main.c +++ b/test cases/common/47 pkgconfig-gen/dependencies/main.c @@ -1,5 +1,9 @@ #include <simple.h> +#ifndef LIBFOO +#error LIBFOO should be defined in pkgconfig cflags +#endif + int main(int argc, char *argv[]) { return simple_function() == 42 ? 0 : 1; diff --git a/test cases/common/47 pkgconfig-gen/meson.build b/test cases/common/47 pkgconfig-gen/meson.build index c251b9f..eb2afe4 100644 --- a/test cases/common/47 pkgconfig-gen/meson.build +++ b/test cases/common/47 pkgconfig-gen/meson.build @@ -43,7 +43,8 @@ pkgg.generate( name : 'libfoo', version : libver, description : 'A foo library.', - variables : ['foo=bar', 'datadir=${prefix}/data'] + variables : ['foo=bar', 'datadir=${prefix}/data'], + extra_cflags : ['-DLIBFOO'], ) pkgg.generate( |