From c366e04958481382c3f7b50f169120053186069b Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Wed, 4 Nov 2020 13:41:07 +0100 Subject: [PATCH] w32: Add windows subsystem variant of gpgconf * tools/Makefile.am (gpgconf-w32): New target. Builds gpgconf with subsystem windows. * build-aux/speedo/w32/wixlib.wxs: Package it. -- This allows us to create scripts that call gpgconf without opening a console. Using subsystem windows is better then to just close the console after start as it avoids the console flashing up. --- build-aux/speedo/w32/wixlib.wxs | 3 +++ tools/Makefile.am | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/build-aux/speedo/w32/wixlib.wxs b/build-aux/speedo/w32/wixlib.wxs index a92fbf6c1..733ae552c 100644 --- a/build-aux/speedo/w32/wixlib.wxs +++ b/build-aux/speedo/w32/wixlib.wxs @@ -73,6 +73,9 @@ and then manually edited: + + + diff --git a/tools/Makefile.am b/tools/Makefile.am index 19e38bc04..60bd1e271 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -77,6 +77,8 @@ libexec_PROGRAMS = gpg-wks-client bin_PROGRAMS = gpgconf gpg-connect-agent ${symcryptrun} if !HAVE_W32_SYSTEM bin_PROGRAMS += watchgnupg gpgparsemail ${gpg_wks_server} gpgsplit +else +bin_PROGRAMS += gpgconf-w32 endif libexec_PROGRAMS += gpg-check-pattern @@ -130,6 +132,10 @@ gpgconf_LDADD = $(maybe_commonpth_libs) $(opt_libassuan_libs) \ $(gpgconf_robjs) gpgconf_LDFLAGS = $(extra_bin_ldflags) +gpgconf_w32_SOURCES = $(gpgconf_SOURCES) +gpgconf_w32_LDADD = $(gpgconf_LDADD) +gpgconf_w32_LDFLAGS = $(gpgconf_LDFLAGS) -Wl,-subsystem,windows + gpgparsemail_SOURCES = gpgparsemail.c rfc822parse.c rfc822parse.h gpgparsemail_LDADD =