aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/pkgconfig.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2018-03-17 19:44:16 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2018-03-19 23:21:56 +0200
commitcf5f1a83d55d05412e29058844e4fda5e420553b (patch)
treee91004bd2d8b468140c8d4df012d0c214acfa0a9 /mesonbuild/modules/pkgconfig.py
parentc385f7973777e0e7b7e4694d69d6584e2ceae69f (diff)
downloadmeson-cf5f1a83d55d05412e29058844e4fda5e420553b.zip
meson-cf5f1a83d55d05412e29058844e4fda5e420553b.tar.gz
meson-cf5f1a83d55d05412e29058844e4fda5e420553b.tar.bz2
Fix existing tests.
Diffstat (limited to 'mesonbuild/modules/pkgconfig.py')
-rw-r--r--mesonbuild/modules/pkgconfig.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/modules/pkgconfig.py b/mesonbuild/modules/pkgconfig.py
index 5254731..bd89670 100644
--- a/mesonbuild/modules/pkgconfig.py
+++ b/mesonbuild/modules/pkgconfig.py
@@ -95,6 +95,9 @@ class DependenciesHelper:
processed_cflags += obj.get_compile_args()
elif isinstance(obj, build.SharedLibrary):
processed_libs.append(obj)
+ if public:
+ if not hasattr(obj, 'generated_pc'):
+ obj.generated_pc = self.name
elif isinstance(obj, build.StaticLibrary):
# Due to a "feature" in pkgconfig, it leaks out private dependencies.
# Thus we will not add them to the pc file unless the target