Hey guys,
today I renamed the globally defined DATADIR macro ($prefix/share) to GEANYPLUGINS_DATADIR.
The reason for this is that on Windows, DATADIR is defined in a header file which is implicitly included by windows.h and this would lead to compilation errors when DATADIR is defined by the build system.
So, any plugin authors who need to access the DATADIR variable should use GEANYPLUGINS_DATADIR from now on.
Chow Loong Jin added two more global macros:
PKGDATADIR=$(prefix)/share/geany-plugins PKGLIBDIR=$(prefix)/lib/geany-plugins
Regards, Enrico
Not to be a bother, but how will this effect windows/portablization? The current method of portablization for the windows package uses the -c "DATALOCATION" switch. Will the plugins still use this specified directory or will they be using another directory? I see this affecting a local windows installation in that if a user uses the switch to test something, either all plugins will be enabled, or have the same settings as before.
Thanks for your time on this.
On 5/23/2010 2:33 PM, Enrico Tröger wrote:
Hey guys,
today I renamed the globally defined DATADIR macro ($prefix/share) to GEANYPLUGINS_DATADIR.
The reason for this is that on Windows, DATADIR is defined in a header file which is implicitly included by windows.h and this would lead to compilation errors when DATADIR is defined by the build system.
So, any plugin authors who need to access the DATADIR variable should use GEANYPLUGINS_DATADIR from now on.
Chow Loong Jin added two more global macros:
PKGDATADIR=$(prefix)/share/geany-plugins PKGLIBDIR=$(prefix)/lib/geany-plugins
Regards, Enrico
Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
On Sun, 23 May 2010 21:28:02 -0500, Oliver wrote:
Hey,
Not to be a bother, but how will this effect windows/portablization? The current method of portablization for the windows package uses the -c "DATALOCATION" switch. Will the plugins still use this specified
I guess you are talking about the Geany portable version for Windows? Normal Geany installations on Windows don't use the -c switch and even if, it doesn't change the data location but rather the location of the configuration directory.
directory or will they be using another directory? I see this affecting a local windows installation in that if a user uses the switch to test something, either all plugins will be enabled, or have the same settings as before.
The mentioned changes shouldn't effect anything at runtime directly, as it was just a rename of a C preprocessor macro, so any paths are handled as before just that now some kind of a variable has a different name.
Regards, Enrico