From d80345244c104306d66f21a46aadbd3ba060ba2b Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Mon, 12 Aug 2024 12:19:36 +0200 Subject: [PATCH] speedo,w32: Install ntbtls as a library * build-aux/speedo.mk (AUTHENTICODE_FILES): Sign ntbtls files. (speedo_pkg_ntbtls_configure): Remove duplicated 32 bit entry. * build-aux/speedo/w32/inst.nsi, build-aux/speedo/w32/wixlib.wxs: Package ntblts dll. -- This changes ntbtls to be built with default options both on 64 bit and on 32 bit. Previously on 32 bit Windows it would have been linked statically. But since the file lists are hardcoded this should be independent of the architecture. --- build-aux/speedo.mk | 7 +------ build-aux/speedo/w32/inst.nsi | 9 +++++++++ build-aux/speedo/w32/wixlib.wxs | 3 +++ 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/build-aux/speedo.mk b/build-aux/speedo.mk index 1a1d5a46c..deb9be6cc 100644 --- a/build-aux/speedo.mk +++ b/build-aux/speedo.mk @@ -233,6 +233,7 @@ AUTHENTICODE_FILES= \ libgpgme-11.dll \ libksba-8.dll \ libnpth-0.dll \ + libntbtls-0.dll \ libsqlite3-0.dll \ pinentry-w32.exe \ scdaemon.exe \ @@ -498,9 +499,6 @@ speedo_pkg_libgcrypt_configure = --disable-static speedo_pkg_libksba_configure = --disable-static -speedo_pkg_ntbtls_configure = --enable-static - - ifeq ($(STATIC),1) speedo_pkg_npth_configure += --disable-shared @@ -513,9 +511,6 @@ speedo_pkg_libgcrypt_configure += --disable-shared speedo_pkg_libksba_configure += --disable-shared endif -# For now we build ntbtls only static -speedo_pkg_ntbtls_configure = --disable-shared - ifeq ($(TARGETOS),w32) speedo_pkg_gnupg_configure = \ --disable-g13 --enable-ntbtls --disable-tpm2d diff --git a/build-aux/speedo/w32/inst.nsi b/build-aux/speedo/w32/inst.nsi index 674cb4d26..8b42e821f 100644 --- a/build-aux/speedo/w32/inst.nsi +++ b/build-aux/speedo/w32/inst.nsi @@ -858,6 +858,11 @@ Section "-sqlite" SEC_sqlite File bin/libsqlite3-0.dll SectionEnd +Section "-ntbtls" SEC_ntbtls + SetOutPath "$INSTDIR\bin" + File bin/libntbtls-0.dll +SectionEnd + !ifdef WITH_GUI Section "-libiconv" SEC_libiconv SetOutPath "$INSTDIR\bin" @@ -1442,6 +1447,10 @@ Section "-un.sqlite" Delete "$INSTDIR\bin\libsqlite3-0.dll" SectionEnd +Section "-un.ntbtls" + Delete "$INSTDIR\bin\libntbtls-0.dll" +SectionEnd + Section "-un.gnupginst" # Delete standard stuff. Delete "$INSTDIR\README.txt" diff --git a/build-aux/speedo/w32/wixlib.wxs b/build-aux/speedo/w32/wixlib.wxs index 48d105db3..82adb9599 100644 --- a/build-aux/speedo/w32/wixlib.wxs +++ b/build-aux/speedo/w32/wixlib.wxs @@ -118,6 +118,9 @@ and then manually edited: + + +