diff options
author | Werner Koch <wk@gnupg.org> | 2015-06-11 14:43:38 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2015-06-11 14:43:38 +0200 |
commit | 0cbd394ebbbd39d159e681f8e0f3dfd5204efd70 (patch) | |
tree | aa384c6ec44cb0fa4048d31822185396f1f066ec | |
parent | po: Auto-update (diff) | |
download | gnupg2-0cbd394ebbbd39d159e681f8e0f3dfd5204efd70.tar.xz gnupg2-0cbd394ebbbd39d159e681f8e0f3dfd5204efd70.zip |
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.
-rw-r--r-- | doc/mkdefsinc.c | 10 |
1 files changed, 10 insertions, 0 deletions
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; |