GNOME Bugzilla – Bug 692165
Win32/MSVC: Add a simple Python script to process the bundled *.gir.in files in $(srcroot)\gir
Last modified: 2015-03-11 22:00:08 UTC
Created attachment 233983 [details] [review] Simple Python script to create .gir files from .gir.in files Hi, Currently, there are a number of .gir files that are bundled with g-i, which are for use to build the .gir files of certain GNOME projects, such as Pango, GTK+, Cogl and Clutter. One notable example here is the .gir file for cairo, which is distributed as a .gir.in file, mainly due to the naming of the shared library that differs by the platform where G-I is compiled on. This adds a simple Python 2.6+/3.x script to create cairo-1.0.gir from the cairo-1.0.gir.in file with entries suitable for MSVC builds of Cairo/Cairo-GObject, which will be called by build/win32/gengir.bat, which is in turn called by the Visual C++ project files. We can then expand this script as necessary. With blessings, thank you!
Created attachment 233984 [details] [review] Use and dist the Python script This adds items into build/win32/gengir.bat so that the aforementioned Python script can be called to create caior-1.0.gir, so that it can be in turn processed by g-ir-compiler for use in projects such as PangoCairo and GTK+. With blessings, thank you!
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]
There's only cairo-1.0.gir.in left and master already contains https://git.gnome.org/browse/gobject-introspection/tree/build/gen-cairo-gir.py which seems to be doing the exact same thing as proposed in attachment #233983 [details] I'll take the liberty to close this report as obsolete, but please feel free to reopen if I'm wrong.