summaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Add support for foreign structsJohan Dahlin2010-03-251-0/+5
| | | | | | | | Foreign structs are special in the sense that there might be native bindings (for instance PyCairo for PyGI) that provides the same functionallity as the introspected variant. https://bugzilla.gnome.org/show_bug.cgi?id=610357
* Remove trailing whitespaceJohan Dahlin2010-03-251-89/+90
|
* Use AM_V_GEN more a more quiet buildJohan Dahlin2009-12-311-2/+2
| | | | Also suppress a bit more using @
* Implement callbacks as part of struct fields. Fixes #557383Tomeu Vizoso2009-11-111-2/+16
| | | | | | gir: embed <callback> inside <field> typelib: if a field contains a callback, store it just after the FieldBlob girepository API: no additions
* Bug 593162 - Use built scanner from tarball buildsColin Walters2009-09-041-4/+3
| | | | | Looking for .git/.svn breaks in tarball scenarios; instead just see if our source directory is named 'tools'.
* Bug 578200 - Substitute $(PYTHON) in g-ir-scanner.inColin Walters2009-08-242-2/+2
| | | | This lets us pick up non-default /usr/bin/python2.6 correctly.
* Bug 585584: Fix warnings in girparser backtrace functionality and compiler.cC. Scott Ananian2009-06-121-0/+2
|
* Bug 577534 - Use rename to write new typelibs, instead of in-place overwriteColin Walters2009-06-091-11/+27
| | | | | This avoids having processes with the typelibs currently open exploding immediately.
* Bug 576605 - Get rid of GI_SCOPE_TYPE_OBJECTAndreas Rottmann2009-03-271-3/+0
| | | | Remove support for (scope object) as it lacks a real use case.
* Include g-ir-scanner.in in the distributionJohan Bilien2009-03-241-1/+3
| | | | and other make distcheck fixes.
* Bug 564016 - Include c:prefix in typelib, use it to optimize find_by_gtypeColin Walters2009-03-171-0/+4
| | | | | | | Parse the c:prefix from the .gir, include it in the header. Armed with this information, we can now optimize lookups of GTypes because we have the requirement that GTypes must start with the c:prefix. We do fall back though if a lookup fails.
* Substitute g-ir-scanner in Makefile, not in configure.acColin Walters2009-03-161-0/+4
| | | | This avoids issues with unexpanded variables, i.e. ${exec_prefix}/libdir
* Bug 574501 - Install giscanner Python module to private directoryColin Walters2009-03-162-360/+39
| | | | | | We don't want to pollute the global namespace with our private libraries. Also, this sidesteps all the craziness that is happening with OS vendors changing how Python installs modules.
* Bug 557383 - Virtual method supportColin Walters2009-03-051-2/+7
| | | | | | | | | | | | | | | | Broadly speaking, this change adds the concept of <vfunc> to the .gir. The typelib already had most of the infrastructure for virtual functions, though there is one API addition. The scanner assumes that any class callback slot that doesn't match a signal name is a virtual. In the .gir, we write out *both* the <method> wrapper and a <vfunc>. If we can determine an association between them (based on the names matching, or a new Virtual: annotation), then we notate that in the .gir. The typelib gains an association from the vfunc to the function, if it exists. This will be useful for bindings since they already know how to consume FunctionInfo.
* Bug 571548 - Generic attributesColin Walters2009-03-031-4/+38
| | | | | | | | We now support an extensible mechanism where arbitrary key-value pairs may be associated with almost all items, including objects, methods, and properties. These attributes appear in both the .gir and the .typelib.
* Add --all option to g-ir-generateAndreas Rottmann2009-02-271-1/+18
| | | | | | | | | Add --all option, which is intended to show some information not usually included in the GIR. Currently, it shows the size of structs and unions. Signed-off-by: Andreas Rottmann <a.rottmann@gmx.at>
* Bug 572434 - Associate interfaces with their C structuresColin Walters2009-02-251-5/+13
| | | | | | | | Similar to GObject class structs, we pair up GInterfaces with their C structures. Also, move some GLib-specific things into glibast.py, and make the naming more generic.
* Bug 572790 - Don't register #defines from .c files as constantsColin Walters2009-02-241-1/+3
| | | | | We keep track of the source filename for every symbol. This enables us to later filter symbols based on that name.
* Handle the return value to fwrite properlyJohan Dahlin2009-02-211-1/+9
|
* Be less verboseJohan Dahlin2009-02-201-3/+0
|