summaryrefslogtreecommitdiff
path: root/misc/update-glib-annotations.py
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2012-04-05 14:24:33 -0300
committerJohan Dahlin <jdahlin@litl.com>2012-04-05 14:29:36 -0300
commitc93dafe97e700029489bc6de2e00975277213a35 (patch)
tree30854598aca9f893502bb6d6928ce4ebaab1793b /misc/update-glib-annotations.py
parentcffff9d28a46229e9de966d535195f0bb89dd175 (diff)
downloadgobject-introspection-c93dafe97e700029489bc6de2e00975277213a35.tar.gz
Don't extract annotations from headers
The headers are already parsed as they are passed in to g-ir-scanner. This avoids quite a few warnings triggered with the new annotation parser.
Diffstat (limited to 'misc/update-glib-annotations.py')
-rwxr-xr-xmisc/update-glib-annotations.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/misc/update-glib-annotations.py b/misc/update-glib-annotations.py
index 82bd2491..a65ec30e 100755
--- a/misc/update-glib-annotations.py
+++ b/misc/update-glib-annotations.py
@@ -39,22 +39,9 @@ def directory_includes(dirs, srcdir, builddir):
def extract_annotations(module, srcdir, builddir, outfile):
sources = []
subdir = os.path.join(srcdir, module['name'])
- headersfile = os.path.join(builddir,
- module['name'],
- module['name'] + '-public-headers.txt')
includes = directory_includes(module['includes'],
srcdir, builddir)
- f = open(headersfile)
- line = f.read()
- f.close()
-
- for headername in line.split(' '):
- headername = headername.strip()
- if headername in module['skip_headers']:
- continue
- sources.append(os.path.join(subdir, headername))
-
for sourcename in os.listdir(subdir):
if sourcename.endswith('.c'):
sources.append(os.path.join(subdir, sourcename))
@@ -77,19 +64,16 @@ if __name__ == '__main__':
modules = [{'name': 'glib',
'srcname': '../gir/glib-2.0.c',
- 'skip_headers': ['gi18n-lib.h'],
'includes': ['glib', 'gmodule'],
'defines': ['-DGLIB_COMPILATION']},
{'name': 'gobject',
'srcname': '../gir/gobject-2.0.c',
- 'skip_headers': [],
'includes': ['glib', 'gobject', 'gmodule'],
'defines': ['-DGOBJECT_COMPILATION']},
{'name': 'gio',
'srcname': '../gir/gio-2.0.c',
- 'skip_headers': [],
'includes': ['glib', 'gmodule', 'gobject', 'gio'],
'defines': ['-DGOBJECT_COMPILATION', '-DGIO_COMPILATION']}]