summaryrefslogtreecommitdiff
path: root/misc/update-glib-annotations.py
Commit message (Collapse)AuthorAgeFilesLines
* update-glib-annotations: make it work with meson and drop autotools supportChristoph Reiter2018-12-171-85/+67
| | | | | | | | | | Clean up the code and make it work with meson. Assume a fixed build dir to make it less magic and so we can give better error messages. This also removes all the include path logic because since c93dafe97e70 it no longer parses headers anyway and it wasn't doing anything with it. Also tested on Windows.
* Drop all Python 2 compat codeChristoph Reiter2018-12-081-5/+0
| | | | We only support 3.4+ now.
* Gio-2.0.gir: Don't exclude gsettingsbackend.h and pass needed defineRico Tzschichholz2016-10-031-1/+1
|
* Salvage the build directory parameter of update-glib-annotations.pyMikhail Zabaluev2015-10-151-9/+8
| | | | | | | It was not possible to use the tool with a custom build directory, even when it was given as the second command line parameter. https://bugzilla.gnome.org/show_bug.cgi?id=756665
* Change update-glib-annotations to use Python 3Simon Feltman2015-09-291-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=679438
* giscanner: Use unicode literals in all Python filesSimon Feltman2015-09-291-1/+5
| | | | | | | | | | | | Add unicode_literals future import which turns any string literal into a unicode string. Return unicode strings from the Python C extension module. Force writing of annotations (g-ir-annotation-tool) to output utf8 encoded data to stdout. This is an initial pass at following the "unicode sandwich" model of programming (http://nedbatchelder.com/text/unipain.html) needed for supporting Python 3. https://bugzilla.gnome.org/show_bug.cgi?id=679438
* giscanner: Replace repr format usage with string formatterSimon Feltman2015-09-291-2/+2
| | | | | | | | | | | Replace occurances of "%r" (repr) in format strings where the intended behaviour is to output a quoted string "'foo'" with explicit usage of "'%s'". This is needed to move the codebase to unicode literals in order to upgrade to Python 3. Python 2 unicode strings are expanded with repr formatting prefixed with a "u" as in "u'foo'" which causes failures for various text formatting scenarios. https://bugzilla.gnome.org/show_bug.cgi?id=679438
* giscanner: Use print as a function for Python 3 compatibilitySimon Feltman2015-09-291-3/+4
| | | | | | | Use future import "print_function" and update relevant uses of print as a function call. See: PEP 3105 https://bugzilla.gnome.org/show_bug.cgi?id=679438
* giscanner: Enable "true division" for all Python filesSimon Feltman2015-09-291-0/+1
| | | | | | | | | | Import Python 3 compatible "true division" from the future (PEP 238). This changes the Python 2 classic division which uses floor division on integers to true division. Verfied we don't actually use the division operator anywhere in the code base so this a safety for supporting both Python 2 and 3. https://bugzilla.gnome.org/show_bug.cgi?id=679438
* giscanner: Use absolute_import for all Python filesSimon Feltman2015-09-291-0/+1
| | | | | | Use absolute_import to ensure Python 3 compatibility of the code base. https://bugzilla.gnome.org/show_bug.cgi?id=679438
* gir: Add gmodule-2.0.cRico Tzschichholz2013-09-131-0/+5
| | | | | Grab annotions from gmodule like we do for glib and gio. This result in a properly generated and documented GModule-2.0.gir.
* update-glib-annotations: Set required environment variablesColin Walters2012-04-171-0/+5
| | | | Assume srcdir=builddir, so users don't have to set this.
* Don't extract annotations from headersJohan Dahlin2012-04-051-16/+0
| | | | | | 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.
* update-glib-annotations.py: reduce code duplicationDieter Verfaillie2012-04-051-63/+55
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=672254
* update-glib-annotations.py: Attempt to make work for srcdir!=builddirColin Walters2011-07-221-15/+24
| | | | | | | This doesn't quite work yet because we need to know from glib which files are in srcdir and which are in builddir. Also add some debugging prints.
* update-glib-annotations.py: Merge annotation extraction scriptsColin Walters2011-06-231-10/+94
|
* update-glib-annotations.py: new scriptColin Walters2011-06-071-0/+28