From 0cbd394ebbbd39d159e681f8e0f3dfd5204efd70 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 11 Jun 2015 14:43:38 +0200 Subject: [PATCH] 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. --- doc/mkdefsinc.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/mkdefsinc.c b/doc/mkdefsinc.c index c4f776f31..9e1733293 100644 --- a/doc/mkdefsinc.c +++ b/doc/mkdefsinc.c @@ -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;