summaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* g-ir-inspect: Ensure variables are at the top of blockChun-wei Fan2017-05-181-1/+2
| | | | | We did not yet advertise C99 requirements for G-I yet, so let's not assume this yet.
* g-ir-{compiler,generate,inspect}: Call setlocale in main functionTing-Wei Lan2017-05-053-0/+10
| | | | | | It is required to correctly show translated messages on some locales. https://bugzilla.gnome.org/show_bug.cgi?id=760419
* g-ir-inspect: make description for --version a bit betterIgor Gnatenko2016-08-171-1/+1
| | | | | | Reported-and-tested-by: Dominique Leuenberger <dimstar@opensuse.org> Signed-off-by: Igor Gnatenko <ignatenko@src.gnome.org> Reviewed-by: Colin Walters <walters@verbum.org>
* g-ir-inspect: remove last usage of g_autoptr()Igor Gnatenko2016-08-071-1/+2
| | | | | | Signed-off-by: Igor Gnatenko <ignatenko@src.gnome.org> https://bugzilla.gnome.org/show_bug.cgi?id=769600
* g-ir-inspect: Inspect GI typelibsIgor Gnatenko2016-04-291-0/+133
| | | | | | | | | | | | | | | | Various distributions (mainly RPM based so far) make use of automatic dependencies extracted from typelib files (they can require other typelibs and also shared libraries) Current features * Print used shared libraries * Print used typelib dependencies Based-on-patch-by: Dominique Leuenberger <dimstar@opensuse.org> Reference: https://bugzilla.gnome.org/show_bug.cgi?id=665672 Reviewed-by: Colin Walters <walters@verbum.org> Signed-off-by: Dominique Leuenberger <dimstar@opensuse.org> Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
* g-ir-tool-template: Fix a coding error that hooks up pdb in any buildMikhail Zabaluev2015-11-011-2/+2
| | | | | | | | | A condition was supposed to test if GI_SCANNER_DEBUG environment variable is unset or empty, but instead always evaluated to true. This results in any build pausing in pdb whenever an uncaught exception occurs in a g-ir-* tool. https://bugzilla.gnome.org/show_bug.cgi?id=757443
* tools: Windows-re-enable 'relocatability' for tool templateChun-wei Fan2015-10-281-2/+2
| | | | | | | | The transition to Python 3.x compatibility accidentily removed the 'relocatability' support that was added, so re-enable this support on Windows again. https://bugzilla.gnome.org/show_bug.cgi?id=757126
* g-ir-compiler: Allow multiple --shared-libraryGarrett Regier2015-09-291-4/+4
| | | | | https://bugzilla.gnome.org/show_bug.cgi?id=744535 Signed-off-by: Garrett Regier <garrett.regier@riftio.com>
* giscanner: Use builtins module in Python 3Simon Feltman2015-09-291-2/+6
| | | | | | Add conditional import for Python 3's renamed builtins module. https://bugzilla.gnome.org/show_bug.cgi?id=679438
* giscanner: Use unicode literals in all Python filesSimon Feltman2015-09-291-0/+2
| | | | | | | | | | | | 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: Use print as a function for Python 3 compatibilitySimon Feltman2015-09-291-1/+2
| | | | | | | 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-1/+1
| | | | | | Use absolute_import to ensure Python 3 compatibility of the code base. https://bugzilla.gnome.org/show_bug.cgi?id=679438
* g-ir-compiler: message when arguments are wrongBen Boeckel2015-08-041-0/+9
| | | | | | | | Otherwise the error is "no input files" which is very confusing. https://bugzilla.gnome.org/show_bug.cgi?id=753160 Signed-off-by: Ben Boeckel <mathstuf@gmail.com>
* tools: move verbump.py from tools to misc...Dieter Verfaillie2015-06-291-47/+0
| | | | ... so it lives next to the rest of the maintainer utilities.
* tools: use a template to generate the tools scriptsDieter Verfaillie2015-06-293-118/+2
| | | | | | g-ir-annotation-tool, g-ir-doc-tool and g-ir-scanner where identical except for the module and function being invoked. Avoid code duplication and generate these from a common template.
* tools: add support for PyDev remote debugger.Dieter Verfaillie2015-06-293-18/+45
|
* tools: make g-ir-annotiotion-tool, g-ir-doc-tool and g-ir-scanner ↵Dieter Verfaillie2015-06-293-51/+33
| | | | | | 'relocatable' at runtime. https://bugzilla.gnome.org/show_bug.cgi?id=620566
* tools: correct python shebangMathieu Duponchelle2015-06-173-3/+3
|
* Windows port: Make g-ir-annotiotion-tool, g-ir-doc-tool and g-ir-scanner ↵Dieter Verfaillie2014-07-023-7/+34
| | | | | | 'relocatable' at runtime. https://bugzilla.gnome.org/show_bug.cgi?id=620566
* g-ir-compiler: remove references to --code, remove --no-init optionsDieter Verfaillie2013-10-081-2/+0
| | | | | | | | | The "--code" option was removed years ago in ac81f3e8c5f1c380d16677232d67466e739da283 so remove references to it from README and g-ir-compiler(1) Remove the "--no-init" option from g-ir-compiler and g-ir-compiler(1) as it was documented to "can only be used if --code is also specified", so no reason to keep it around.
* Drop calls to g_type_init()Colin Walters2012-10-162-4/+0
| | | | And bump our GLib requirement.
* Add Emacs mode lines to C sourcesColin Walters2012-02-032-4/+4
|
* Revert "Windows port: Make g-ir-annotiotion-tool, g-ir-doc-tool and ↵Dieter Verfaillie2011-09-073-34/+7
| | | | | | | | | g-ir-scanner 'relocatable' at runtime." It's a bit too soon for this one, misunderstood review on irc. Apologies for the mess! This reverts commit 0102c517c44d3e8fc3baf2394cb92281511941e3.
* Windows port: Make g-ir-annotiotion-tool, g-ir-doc-tool and g-ir-scanner ↵Dieter Verfaillie2011-09-073-7/+34
| | | | | | 'relocatable' at runtime. https://bugzilla.gnome.org/show_bug.cgi?id=620566
* [docbook] Make DocBookWriter use TransformerLaszlo Pandy2011-08-111-0/+3
|
* WIP doctoolJohan Dahlin2011-08-111-0/+43
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=625494
* Fix broken DATADIR definition after config.py was killedGOBJECT_INTROSPECTION_1_29_16Vincent Untz2011-07-272-2/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=655437
* Kill off config.pyColin Walters2011-07-272-0/+6
| | | | | Generating Python source code is problematic for srcdir != builddir; steal a the trick of putting global data in __builtins__ from jhbuild.
* build: rework prepare-minor-release bits to handle srcdir != builddirColin Walters2011-07-271-4/+5
|
* Makefile: Rework release toolsColin Walters2011-03-101-0/+46
| | | | | Separate "preparing" a release locally from actually uploading it, and automate bumping the version in configure.ac.
* Add missing spacesJohan Dahlin2011-02-011-1/+1
|
* Fix error handling when writing out typelibOwen W. Taylor2010-12-221-8/+14
| | | | | | Return a non-zero result when opening the output file fails and don't use g_error() for other failures when writing out the file, since such errors should not produce a core dump.
* girepository: Consistently prefix internal functions with _Colin Walters2010-11-161-5/+5
| | | | | This should better avoid them being exported. Rename girepository-parser.la to girepository-internals.la for clarity.
* Switch to nonrecursive make for core (i.e. not tests/)Colin Walters2010-11-091-35/+0
| | | | | This is cleaner and faster, and prepares us better for an incoming import of CMPH.
* tools: Switch to checking UNINSTALLED_INTROSPECTION_SRCDIRColin Walters2010-11-092-10/+6
| | | | | | | | | Rather than introspecting the current directory, use the environment variable we know is present if and only if we're running uninstalled. This will be less prone to failure when we switch to nonrecursive make, since the generated script will be in the top builddir, not tools/ anymore.
* Add an annotation toolJohan Dahlin2010-09-242-3/+52
|
* scanner: Add various static debug hooks in GI_SCANNER_DEBUGColin Walters2010-09-071-1/+2
| | | | | | | For backwards compat, keep the presence of the environment variable at all to mean "exception". Also start a HACKING file.
* [GIRepository] Rename GTypelib to GITypelibJohan Dahlin2010-08-312-3/+3
| | | | | Keep a typedef for backwards compatibility, until the major bindings has moved over.
* scanner: If GI_SCANNER_DEBUG is set, drop into a debugger on errorColin Walters2010-08-311-0/+6
| | | | | Useful when debugging build problems for both me, and potentially over IRC.
* [gircompiler] Clean up parsingColin Walters2010-08-171-40/+10
| | | | | | | | | | | | | | We never actually include multiple modules in the compiler, so just nuke that. Also rather than passing around GIrModule consistently pass around a GIrTypelibBuild structure which has various things. This lets us maintain a stack there which we can walk for better error messages. Also, fix up the node lookup in giroffsets.c; previously it didn't really handle includes correctly. We really need to switch to always using Foo.Bar (i.e. GIName) names internally...
* compiler: Remove --code argumentColin Walters2010-08-171-67/+6
| | | | | | It can't really work right now because we rely on dumping data at runtime, which requires the library. If in the future we support static scanning, we can reinvestigate embedded typelibs.
* Fix two compilation warningsColin Walters2010-07-191-1/+0
|
* [girepository] Actually verify header of loaded typelibs in ↵Colin Walters2010-07-142-84/+16
| | | | | | | | g_irepository_require Take a GError * for typelib loading code, validate the header. This fixes bizarre errors from gjs where g_irepository_require would happily load old typelibs.
* [girwriter] Refactor out of generate.cJohan Dahlin2010-06-072-1364/+6
| | | | | Move out the girwriter out of generate.c. Still a private API, but that will probably change in the future.
* [generate] Get rid of globalsJohan Dahlin2010-06-071-19/+20
| | | | | Get rid of all globals in gir generator, in preparation for moving all code into libgirepository
* [gtypelib.ch] Rename to gitypelib.chJohan Dahlin2010-05-312-2/+2
| | | | | Rename gtypelib.h -> gitypelib-internal.h and rename gtypelib.c to gitypelib.c
* [build] Remove gcov supportJohan Dahlin2010-05-281-2/+0
| | | | | It's been broken for some time, remove it instead of letting it bitrot.
* [g-ir-generate] Write out array typeJohan Dahlin2010-05-271-0/+20
| | | | For GLib arrays, write out the array type to the tgir
* Support (out caller-allocates)Colin Walters2010-05-261-4/+2
| | | | | | | | | | | | | | | | | | | | | People have wanted support for marking (out) on functions of the form: /** * clutter_color_from_pixel: * @pixel: A pixel * @color: (out): Color to initialize with value of @pixel */ void clutter_color_from_pixel (guint32 pixel, ClutterColor *color); Where the caller is supposed to have allocated the argument; the C function just initializes it. This patch adds support for this argument passing style to introspection. In this case, we see the (out), and notice that there's only a single indirection (*) on the argument, and assume that this means (out caller-allocates). https://bugzilla.gnome.org/show_bug.cgi?id=604749