Re: [anjuta-list] How to: Configure multiple compile targets



On Saturday, 27 October, 2012 01:33 AM, Sébastien Granjoux wrote:
Hi,


On 26/10/2012 06:34, Arnel A. Borja wrote:
It now works correctly (at least in my projects). I've been using it
since GTK+ 3.4. I can't think of other examples, you don't need to add a
lot of things anyway, usually the only difference between GUI and
command line programs is that it doesn't need "-mwindows" in its linker
options. All changes I made in my projects are based on Glade. Should I
make a patch to add those things to the templates?

Sure, we are always glad to get some improvements at any time.

Having perhaps just one new template supporting Linux and Windows could be enough. I think the advantage is that it will make this improvement more visible.

Else, adding support to the most used template could be useful. It could perhaps allow you to use the project wizard instead of copying an older project. But I'm afraid it will make this improvements a bit difficult to see.

I think it's not useful to try to support Windows in all templates.
Though it seems like there are some additional changes necessary to support Windows; applications should be relocatable, so
g_win32_get_package_installation_directory_of_module should be called instead of using the macro PACKAGE_DATA_DIR when looking for data files such as GtkBuilder UI files. Or use GResource that is compiled into an object and linked to the application.

I decided to add support to some of the templates instead of creating a new one. Should I create a new project option in the project wizard for supporting Windows?

The current patch is in here: https://bugzilla.gnome.org/show_bug.cgi?id=688611


Regards,

Sébastien


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]