summaryrefslogtreecommitdiff
path: root/giscanner/girparser.py
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2013-02-24 12:07:28 -0500
committerColin Walters <walters@verbum.org>2013-02-26 16:25:11 -0500
commitf17dfbe3e65acd9274c2f98292362b0824564e0d (patch)
tree6af18d5fa7831f67218ad4187dd32d184d806d2d /giscanner/girparser.py
parentc0ebb1e9888ee745437e87482d0b89c30cab355f (diff)
downloadgobject-introspection-f17dfbe3e65acd9274c2f98292362b0824564e0d.tar.gz
scanner: internals cleanup: Move pkgconfig list to Namespace
Continuation of previous work.
Diffstat (limited to 'giscanner/girparser.py')
-rw-r--r--giscanner/girparser.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/giscanner/girparser.py b/giscanner/girparser.py
index 5944cc41..63a3fd02 100644
--- a/giscanner/girparser.py
+++ b/giscanner/girparser.py
@@ -46,7 +46,6 @@ class GIRParser(object):
def __init__(self, types_only=False):
self._types_only = types_only
- self._pkgconfig_packages = set()
self._namespace = None
self._filename_stack = []
@@ -73,11 +72,6 @@ class GIRParser(object):
def get_c_prefix(self):
return self._c_prefix
- def get_pkgconfig_packages(self):
- if not hasattr(self, '_pkgconfig_packages'):
- self._pkgconfig_packages = []
- return self._pkgconfig_packages
-
# Private
def _find_first_child(self, node, name_or_names):
@@ -135,6 +129,7 @@ class GIRParser(object):
self._namespace.shared_libraries = ns.attrib['shared-library'].split(',')
self._namespace.includes = self._includes
self._namespace.c_includes = self._c_includes
+ self._namespace.exported_packages = self._pkgconfig_packages
parser_methods = {
_corens('alias'): self._parse_alias,