After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 692165 - Win32/MSVC: Add a simple Python script to process the bundled *.gir.in files in $(srcroot)\gir
Win32/MSVC: Add a simple Python script to process the bundled *.gir.in files ...
Status: RESOLVED OBSOLETE
Product: gobject-introspection
Classification: Platform
Component: general
2.35.x
Other Windows
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2013-01-21 06:39 UTC by Fan, Chun-wei
Modified: 2015-03-11 22:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Simple Python script to create .gir files from .gir.in files (3.18 KB, patch)
2013-01-21 06:39 UTC, Fan, Chun-wei
none Details | Review
Use and dist the Python script (2.34 KB, patch)
2013-01-21 06:47 UTC, Fan, Chun-wei
none Details | Review

Description Fan, Chun-wei 2013-01-21 06:39:10 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!
Comment 1 Fan, Chun-wei 2013-01-21 06:47:24 UTC
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!
Comment 2 André Klapper 2015-02-07 17:21:38 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]
Comment 3 Dieter Verfaillie 2015-03-11 22:00:08 UTC
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.