diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2014-02-06 00:16:23 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2014-02-06 00:16:23 +0200 |
commit | 0384ca71f712554f3adfe21a16280d0b10969e5d (patch) | |
tree | 2ebe4ce5a068c1688a37965d9340aab32d6e1f5e /build.py | |
parent | 757561728057a7d9167f08629df02b51ab6b1a6c (diff) | |
download | meson-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.py | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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 |