Re: Regarding gdbus-codegen (was: Re: glib-mkenums in glib 2)
- From: Tarnyko <tarnyko tarnyko net>
- To: Fan Chun-wei <fanc999 yahoo com tw>
- Cc: gtk-devel-list gnome org
- Subject: Re: Regarding gdbus-codegen (was: Re: glib-mkenums in glib 2)
- Date: Wed, 17 Jul 2013 17:15:29 +0200
Hi Fan,
Thanks for sharing. FYI, MinGW makefiles from latest master generate and
install "gdbus-codegen" correctly. You may want to take inspiration from
them if you plan to add gdbus-codegen generation for MSVC (don't know this
toolchain enough to do it myself).
I just suggested a little path change :
https://bugzilla.gnome.org/show_bug.cgi?id=702862
Regards,
Tarnyko
Fan Chun-wei writes:
Hi John,
(list people: I understand this is a rather old topic that was brought
up few months ago:) ).
I was poking around with the Python scripts for gdbus-codegen lately,
and I thought it might be good to let you know a few things about its
use on Windows, especially under Visual Studio builds of GLib
It appears that one wouldn't have to change anything in those Python
scripts (at least from the release stable/unstable tarballs) so that
they can be ran on Windows.
What I found is that for it to work "installed" on Windows (suppose your
GLib "installation" is in c:\foo):
-From $(srcroot)\gio\gdbus-2.0\codegen, copy the gdbus-codegen.in file
as-is to c:\foo\bin, and renaming it as gdbus-codegen. (This files has
support for Windows regarding path issues without needing to process the
file with autotools)
-Copy all the .py files in $(srcroot)\gio\gdbus-2.0\codegen to
c:\foo\lib\gdbus-2.0\codegen as is.
So this will basically work when you have the following layout
c:\
foo\
bin\
gdbus-codegen (renamed from gdbus-codegen.in)
lib\
gdbus-2.0\
codegen\
codegen.py
codegen_docbook.py
codegen_main.py
config.py
dbustypes.py
parser.py
utils.py
__init__.py
Hope this may be of help. Unfortunately I can't run the
gdbus-test-codegen test program as it uses items from GIO-UNIX, but it
does seem to me that generating the test sources in-tree (with
UNINSTALLED_GLIB_SRCDIR set) and using the script in the layout I just
mentioned (without UNINSTALLED_GLIB_SRCDIR set, obviously) produce
identical results.
With blessings.
_______________________________________________
gtk-devel-list mailing list
gtk-devel-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]