GNOME Bugzilla – Bug 635484
Project Files for building JSON-GLib under Visual C++ 2008
Last modified: 2012-03-13 22:08:52 UTC
Created attachment 175002 [details] MSVC 2008 Project Files and associated stuff to build JSON-GLib Hi, As I am currently trying to get MSVC to be able to build Clutter again, I went through a small bit of hacking so that JSON-GLib will build and run under MSVC 2008. This should also be usable on MSVC 2010, but some paths may need to be tweaked as it handles things a bit differently. As a result, I came of with a set of project files with some pre-configged headers (config.h.win32 and json-glib/json-version.h.win32) to help with the compilation. I do understand that it would be preferable to have info that changes with every release (such as versioning info) done during the tarball release stage (i.e. make dist?, such as the case for GLib/GTK+ etc.), but since I am totally new to autofoo, that's what I have at the moment. It seems the original sources of JSON-GLib do not need to be changed at any point, so this .zip file that I attach here acts like an addon to JSON-Glib-0.12.x, where one can unzip in the $(srcroot) of JSON-GLib and use. By the way, all the test programs are built here and the all the tests pass. This project file set is done in a similar way as in the current GLib/GTK+ releases. I only have the compilation environment for Win32 builds, but I think this should also work for x64 builds too. Please let me know of any comments. Thanks
thanks! I've integrated the directory inside the repository; I guess the only integration needed is when generating the tarballs for json-glib, to also generate the config.h.win32 and json-version.h.win32, so that users for the tarballs will be able to build directly from them. again, thanks for this work!
Hi Emmanuele, Thanks for looking at the items. I will try to improve these things here so that it does have the config.h.win32 and json-version.h included with the correct versioning info when a tarball is released. I will also attempt to simplify and improve the Project Files a bit so that future maintenance/update would be easier. BTW, I will also try to get the source files written into the json-glib.vcproj from json-glib.vcprojin using a dist-hook in json-glib/Makefile.am--this is like the way that it is now being done in GLib/GTK+ (and plus Pango, ATK, and hopefully-soon GDK-Pixbuf). Do you think we want to have a .rc file to describe the versioning info of the JSON-glib DLL? I will post in another bug report when I get these to materialize-hopefully before Chinese New Year here which is within the next 2 weeks. Thank you! :)
[Fixing Default QA assignee for json-glib - see 613232#c1. Sorry for bugmail noise.]