diff options
author | Ingo Klöcker <[email protected]> | 2021-09-15 09:53:00 +0000 |
---|---|---|
committer | Ingo Klöcker <[email protected]> | 2021-09-15 10:03:23 +0000 |
commit | 4bfa19799ba4aedd7567192b5b5b19502d6dae8a (patch) | |
tree | 0c1dd07734e2e3cbdfcd9e660af9e2822e021b06 | |
parent | Update release signing keys. (diff) | |
download | gnupg-4bfa19799ba4aedd7567192b5b5b19502d6dae8a.tar.gz gnupg-4bfa19799ba4aedd7567192b5b5b19502d6dae8a.zip |
speedo: Add appimage targets for Speedo builds
* build-aux/speedo.mk (appimage, git-appimage, this-appimage): New
targets.
(help): Add documentation.
(define SETVARS, define SETVARS_W64): Set environment variables for
cross-compiling only if TARGETOS is w32.
--
The new appimage targets allow building those parts of GnuPG that are
needed for creating an AppImage of gpg.
Differences to a native build are:
* gpgme is not built
* pinentry-qt is built
* documentation of gnupg is not built
GnuPG-bug-id: 5598
-rw-r--r-- | build-aux/speedo.mk | 42 |
1 files changed, 35 insertions, 7 deletions
diff --git a/build-aux/speedo.mk b/build-aux/speedo.mk index d050457e6..132ed91c7 100644 --- a/build-aux/speedo.mk +++ b/build-aux/speedo.mk @@ -89,6 +89,7 @@ SPEEDO_MK := $(realpath $(lastword $(MAKEFILE_LIST))) .PHONY : help native native-gui w32-installer w32-source w32-wixlib .PHONY : git-native git-native-gui git-w32-installer git-w32-source .PHONY : this-native this-native-gui this-w32-installer this-w32-source +.PHONY : appimage git-appimage this-appimage help: @echo 'usage: make -f speedo.mk TARGET' @@ -96,6 +97,7 @@ help: @echo ' help This help' @echo ' native Native build of the GnuPG core' @echo ' native-gui Ditto but with pinentry and GPA' + @echo ' appimage Build an AppImage of GnuPG' @echo ' w32-installer Build a Windows installer' @echo ' w32-source Pack a source archive' @echo ' w32-release Build a Windows release' @@ -153,6 +155,15 @@ git-native-gui: check-tools this-native-gui: check-tools $(SPEEDOMAKE) TARGETOS=native WHAT=this WITH_GUI=1 all +appimage: check-tools + $(SPEEDOMAKE) TARGETOS=appimage WHAT=release WITH_GUI=0 all + +git-appimage: check-tools + $(SPEEDOMAKE) TARGETOS=appimage WHAT=git WITH_GUI=0 all + +this-appimage: check-tools + $(SPEEDOMAKE) TARGETOS=appimage WHAT=this WITH_GUI=0 all + w32-installer: check-tools $(SPEEDOMAKE) TARGETOS=w32 WHAT=release WITH_GUI=0 installer @@ -201,7 +212,7 @@ w32-release-offline: check-tools # to "this" from the unpacked sources. WHAT=git -# Set target to "native" or "w32" +# Set target to "native" or "w32" or "appimage" TARGETOS= # Set to 1 to build the GUI tools @@ -323,10 +334,12 @@ speedo_spkgs += \ endif endif +ifneq ($(TARGETOS),appimage) ifeq ($(STATIC),0) speedo_spkgs += \ gpgme endif +endif ifeq ($(TARGETOS),w32) ifeq ($(WITH_GUI),1) @@ -343,6 +356,10 @@ ifeq ($(WITH_GUI),1) speedo_spkgs += gpa gpgex endif +else ifeq ($(TARGETOS),appimage) + +speedo_spkgs += pinentry + else ifeq ($(WITH_GUI),1) @@ -611,6 +628,8 @@ speedo_pkg_ntbtls_configure = --disable-shared ifeq ($(TARGETOS),w32) speedo_pkg_gnupg_configure = \ --disable-g13 --enable-ntbtls +else ifeq ($(TARGETOS),appimage) +speedo_pkg_gnupg_configure = --disable-g13 --enable-wks-tools --disable-doc else speedo_pkg_gnupg_configure = --disable-g13 --enable-wks-tools endif @@ -642,13 +661,22 @@ endif ifeq ($(TARGETOS),w32) -speedo_pkg_pinentry_configure = --disable-pinentry-gtk2 +speedo_pkg_pinentry_configure = \ + --disable-pinentry-gtk2 \ + --disable-pinentry-qt5 \ + --disable-pinentry-qt +else ifeq ($(TARGETOS),appimage) +speedo_pkg_pinentry_configure = \ + --disable-pinentry-gtk2 \ + --enable-pinentry-qt5 \ + --enable-pinentry-qt else -speedo_pkg_pinentry_configure = --enable-pinentry-gtk2 +speedo_pkg_pinentry_configure = \ + --enable-pinentry-gtk2 \ + --disable-pinentry-qt5 \ + --disable-pinentry-qt endif speedo_pkg_pinentry_configure += \ - --disable-pinentry-qt5 \ - --disable-pinentry-qt \ --disable-pinentry-fltk \ --disable-pinentry-tty \ CPPFLAGS=-I$(idir)/include \ @@ -920,7 +948,7 @@ define SETVARS pkgmkargs_uninst="$(call GETVAR,speedo_pkg_$(1)_make_args_uninst)"; \ export PKG_CONFIG="/usr/bin/pkg-config"; \ export PKG_CONFIG_PATH="$(idir)/lib/pkgconfig"; \ - [ "$(TARGETOS)" != native ] && export PKG_CONFIG_LIBDIR=""; \ + [ "$(TARGETOS)" = w32 ] && export PKG_CONFIG_LIBDIR=""; \ export SYSROOT="$(idir)"; \ export PATH="$(idir)/bin:$${PATH}"; \ export LD_LIBRARY_PATH="$(idir)/lib:$${LD_LIBRARY_PATH}" @@ -956,7 +984,7 @@ define SETVARS_W64 pkgmkargs_uninst="$(call GETVAR,speedo_pkg_$(1)_make_args_uninst)"; \ export PKG_CONFIG="/usr/bin/pkg-config"; \ export PKG_CONFIG_PATH="$(idir6)/lib/pkgconfig"; \ - [ "$(TARGETOS)" != native ] && export PKG_CONFIG_LIBDIR=""; \ + [ "$(TARGETOS)" = w32 ] && export PKG_CONFIG_LIBDIR=""; \ export SYSROOT="$(idir6)"; \ export PATH="$(idir6)/bin:$${PATH}"; \ export LD_LIBRARY_PATH="$(idir6)/lib:$${LD_LIBRARY_PATH}" |