summaryrefslogtreecommitdiff
path: root/misc/update-gio-annotations.py
diff options
context:
space:
mode:
Diffstat (limited to 'misc/update-gio-annotations.py')
-rwxr-xr-xmisc/update-gio-annotations.py28
1 files changed, 0 insertions, 28 deletions
diff --git a/misc/update-gio-annotations.py b/misc/update-gio-annotations.py
deleted file mode 100755
index 9588dd39..00000000
--- a/misc/update-gio-annotations.py
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/usr/bin/env python
-
-import os
-import sys
-
-if __name__ == '__main__':
- srcdir = sys.argv[1]
- sources = []
- projname = 'gio'
- subdir = os.path.join(srcdir, projname)
- headersfile = os.path.join(subdir, projname + '-public-headers.txt')
- f = open(headersfile)
- line = f.read()
- f.close()
- for headername in line.split(' '):
- headername = headername.strip()
- sources.append(os.path.join(subdir, headername))
- for sourcename in os.listdir(subdir):
- if sourcename.endswith('.c'):
- sources.append(os.path.join(subdir, sourcename))
- os.execv('./g-ir-annotation-tool',
- ['./g-ir-annotation-tool', '--extract', '-DGOBJECT_COMPILATION',
- '-DGIO_COMPILATION',
- '-I' + srcdir,
- '-I' + os.path.join(srcdir, 'glib'),
- '-I' + os.path.join(srcdir, 'gobject'),
- '-I' + os.path.join(srcdir, 'gio'),
- '-I' + os.path.join(srcdir, 'gmodule')] + sources)