w32: Adjust mkdefsinc.c for Windows

--

Under Windows the file names are determined at runtime.  To have
somewhat useful names in the manuals, we provide replacements using
the strings "INSTDIR" and "APPDATA" for the installation directory and
the user specific application data.
This commit is contained in:
Werner Koch 2015-06-11 14:43:38 +02:00
parent 41a62a57a4
commit 0cbd394ebb
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
1 changed files with 10 additions and 0 deletions

View File

@ -31,6 +31,16 @@
values are not valid for the build platform but we need some values
nevertheless. */
#include "config.h"
/* When building for Windows some -D macros are not available. We
provide replacements here. */
#ifdef HAVE_W32_SYSTEM
# define GNUPG_BINDIR "INSTDIR/bin"
# define GNUPG_LIBEXECDIR "INSTDIR/bin"
# define GNUPG_LIBDIR "INSTDIR/lib/" PACKAGE_NAME
# define GNUPG_DATADIR "INSTDIR/share/" PACKAGE_NAME
# define GNUPG_SYSCONFDIR "APPDATA/GNU/etc/" PACKAGE_NAME
# define GNUPG_LOCALSTATEDIR "APPDATA/GNU"
#endif /*HAVE_W32_SYSTEM*/
static int verbose;