aboutsummaryrefslogtreecommitdiff
path: root/build.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2014-02-06 00:16:23 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2014-02-06 00:16:23 +0200
commit0384ca71f712554f3adfe21a16280d0b10969e5d (patch)
tree2ebe4ce5a068c1688a37965d9340aab32d6e1f5e /build.py
parent757561728057a7d9167f08629df02b51ab6b1a6c (diff)
downloadmeson-0384ca71f712554f3adfe21a16280d0b10969e5d.zip
meson-0384ca71f712554f3adfe21a16280d0b10969e5d.tar.gz
meson-0384ca71f712554f3adfe21a16280d0b10969e5d.tar.bz2
First half of the work required for pkg-config generator.
Diffstat (limited to 'build.py')
-rw-r--r--build.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/build.py b/build.py
index 57fc9ce..b0f1fad 100644
--- a/build.py
+++ b/build.py
@@ -41,6 +41,7 @@ class Build:
self.configure_files = []
self.pot = []
self.subprojects = {}
+ self.pkgconfig_gens = []
def add_compiler(self, compiler):
if len(self.compilers) == 0:
@@ -522,3 +523,19 @@ class ConfigurationData():
def keys(self):
return self.values.keys()
+
+class PkgConfigGenerator():
+ def __init__(self, libraries, headers, name, description, version, filebase):
+ self.libraries = []
+ for l in libraries:
+ if hasattr(l, 'held_object'):
+ self.libraries.append(l.held_object)
+ else:
+ self.libraries.append(l)
+ self.headerdirs = {}
+ for h in headers:
+ self.headerdirs[h.subdir] = True
+ self.name = name
+ self.description = description
+ self.version = version
+ self.filebase = filebase