Was caused by 7b3169f
. Fixes #13657.
pull/13664/head
parent
68d620ea8e
commit
8a641cac5f
9 changed files with 68 additions and 0 deletions
@ -0,0 +1,19 @@ |
|||||||
|
project('pkgconfig-get', 'c') |
||||||
|
|
||||||
|
pkgg = import('pkgconfig') |
||||||
|
|
||||||
|
subdir('simple2') |
||||||
|
|
||||||
|
lib = library('simple', 'simple.c', dependencies: lib_dep) |
||||||
|
libver = '1.0' |
||||||
|
h = install_headers('simple.h') |
||||||
|
|
||||||
|
|
||||||
|
pkgg.generate( |
||||||
|
lib, |
||||||
|
version : libver, |
||||||
|
name : 'libsimple', |
||||||
|
filebase : 'simple', |
||||||
|
description : 'A simple demo library.', |
||||||
|
libraries: [lib_dep], |
||||||
|
) |
@ -0,0 +1,6 @@ |
|||||||
|
#include"simple.h" |
||||||
|
#include <simple2.h> |
||||||
|
|
||||||
|
int simple_function(void) { |
||||||
|
return simple_simple_function(); |
||||||
|
} |
@ -0,0 +1,6 @@ |
|||||||
|
#ifndef SIMPLE_H_ |
||||||
|
#define SIMPLE_H_ |
||||||
|
|
||||||
|
int simple_function(void); |
||||||
|
|
||||||
|
#endif |
@ -0,0 +1,2 @@ |
|||||||
|
EXPORTS |
||||||
|
simple_simple_function @1 |
@ -0,0 +1,2 @@ |
|||||||
|
lib2 = library('simple2', 'simple2.c', vs_module_defs: 'exports.def') |
||||||
|
lib_dep = declare_dependency(link_with: lib2, include_directories: include_directories('.')) |
@ -0,0 +1,5 @@ |
|||||||
|
#include"simple2.h" |
||||||
|
|
||||||
|
int simple_simple_function(void) { |
||||||
|
return 42; |
||||||
|
} |
@ -0,0 +1,6 @@ |
|||||||
|
#ifndef SIMPLE2_H_ |
||||||
|
#define SIMPLE2_H_ |
||||||
|
|
||||||
|
int simple_simple_function(void); |
||||||
|
|
||||||
|
#endif |
@ -0,0 +1,15 @@ |
|||||||
|
{ |
||||||
|
"installed": [ |
||||||
|
{ "type": "file", "file": "usr/include/simple.h"}, |
||||||
|
{ "type": "file", "file": "usr/lib/pkgconfig/simple.pc"} |
||||||
|
], |
||||||
|
"matrix": { |
||||||
|
"options": { |
||||||
|
"default_library": [ |
||||||
|
{ "val": "shared" }, |
||||||
|
{ "val": "static" }, |
||||||
|
{ "val": "both" } |
||||||
|
] |
||||||
|
} |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue