diff options
Diffstat (limited to '')
| -rw-r--r-- | configure.ac | 2 | ||||
| -rw-r--r-- | lang/cpp/src/Makefile.am | 4 | ||||
| -rw-r--r-- | lang/cpp/src/gpgmepp_version.h.in | 32 | ||||
| -rw-r--r-- | lang/qt/src/Makefile.am | 3 | ||||
| -rw-r--r-- | lang/qt/src/qgpgme_version.h.in | 32 | 
5 files changed, 71 insertions, 2 deletions
| diff --git a/configure.ac b/configure.ac index 335a33a9..52ba87f2 100644 --- a/configure.ac +++ b/configure.ac @@ -768,10 +768,12 @@ AC_CONFIG_FILES(src/gpgme-config, chmod +x src/gpgme-config)  AC_CONFIG_FILES(lang/cpp/Makefile lang/cpp/src/Makefile)  AC_CONFIG_FILES(lang/cpp/src/GpgmeppConfig.cmake.in)  AC_CONFIG_FILES(lang/cpp/src/GpgmeppConfigVersion.cmake) +AC_CONFIG_FILES(lang/cpp/src/gpgmepp_version.h)  AC_CONFIG_FILES(lang/qt/Makefile lang/qt/src/Makefile)  AC_CONFIG_FILES(lang/qt/src/QGpgmeConfig.cmake.in)  AC_CONFIG_FILES(lang/qt/src/QGpgmeConfigVersion.cmake)  AC_CONFIG_FILES(lang/qt/tests/Makefile) +AC_CONFIG_FILES(lang/qt/src/qgpgme_version.h)  AC_CONFIG_FILES([lang/Makefile lang/cl/Makefile lang/cl/gpgme.asd])  AM_COND_IF([HAVE_DOXYGEN], [AC_CONFIG_FILES([lang/qt/doc/Doxyfile])])  AC_CONFIG_FILES(lang/qt/doc/Makefile) diff --git a/lang/cpp/src/Makefile.am b/lang/cpp/src/Makefile.am index e9deca9b..188585a7 100644 --- a/lang/cpp/src/Makefile.am +++ b/lang/cpp/src/Makefile.am @@ -18,7 +18,8 @@  # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  # 02111-1307, USA -EXTRA_DIST = GpgmeppConfig.cmake.in.in GpgmeppConfigVersion.cmake.in +EXTRA_DIST = GpgmeppConfig.cmake.in.in GpgmeppConfigVersion.cmake.in \ +             gpgmepp_version.h.in  lib_LTLIBRARIES = libgpgmepp.la @@ -56,6 +57,7 @@ interface_headers= \  gpgmeppincludedir = $(includedir)/gpgme++  gpgmeppinclude_HEADERS = $(gpgmepp_headers)  nobase_gpgmeppinclude_HEADERS = $(interface_headers) +nodist_include_HEADERS = gpgmepp_version.h  libgpgmepp_la_SOURCES = $(main_sources) $(gpgmepp_headers) context_vanilla.cpp \                          $(interface_headers) $(private_gpgmepp_headers) diff --git a/lang/cpp/src/gpgmepp_version.h.in b/lang/cpp/src/gpgmepp_version.h.in new file mode 100644 index 00000000..3c33a30b --- /dev/null +++ b/lang/cpp/src/gpgmepp_version.h.in @@ -0,0 +1,32 @@ +/*gpgmepp_version.h - Version macros for gpgmepp +  Copyright (C) 2016, Intevation GmbH + +  This file is part of GPGME++. + +  GPGME++ is free software; you can redistribute it and/or +  modify it under the terms of the GNU Library General Public +  License as published by the Free Software Foundation; either +  version 2 of the License, or (at your option) any later version. + +  GPGME++ is distributed in the hope that it will be useful, +  but WITHOUT ANY WARRANTY; without even the implied warranty of +  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the +  GNU Library General Public License for more details. + +  You should have received a copy of the GNU Library General Public License +  along with GPGME++; see the file COPYING.LIB.  If not, write to the +  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +  Boston, MA 02110-1301, USA. +*/ + + +#ifndef GPGMEPP_VERSION_H +#define GPGMEPP_VERSION_H + +#define GPGMEPP_VERSION_STRING "@LIBGPGMEPP_LT_CURRENT@.@LIBGPGMEPP_LT_AGE@.@LIBGPGMEPP_LT_REVISION@" +#define GPGMEPP_VERSION_MAJOR @LIBGPGMEPP_LT_CURRENT@ +#define GPGMEPP_VERSION_MINOR @LIBGPGMEPP_LT_AGE@ +#define GPGMEPP_VERSION_PATCH @LIBGPGMEPP_LT_REVISION@ +#define GPGMEPP_VERSION ((@LIBGPGMEPP_LT_CURRENT@<<16)|(@LIBGPGMEPP_LT_AGE@<<8)|(@LIBGPGMEPP_LT_REVISION@)) + +#endif diff --git a/lang/qt/src/Makefile.am b/lang/qt/src/Makefile.am index 187bc7f9..3f5025ca 100644 --- a/lang/qt/src/Makefile.am +++ b/lang/qt/src/Makefile.am @@ -19,7 +19,7 @@  # 02111-1307, USA  lib_LTLIBRARIES = libqgpgme.la  EXTRA_DIST = QGpgmeConfig.cmake.in.in QGpgmeConfigVersion.cmake.in \ -             gpgme_backend_debug.h +             gpgme_backend_debug.h qgpgme_version.h.in  qgpgme_sources = \      dataprovider.cpp job.cpp qgpgmeadduseridjob.cpp \ @@ -148,6 +148,7 @@ qgpgme_moc_sources = \  qgpgmeincludedir = $(includedir)/qgpgme  qgpgmeinclude_HEADERS = $(qgpgme_headers) +nodist_include_HEADERS = qgpgme_version.h  libqgpgme_la_SOURCES = $(qgpgme_sources) $(qgpgme_headers) $(private_qgpgme_headers) diff --git a/lang/qt/src/qgpgme_version.h.in b/lang/qt/src/qgpgme_version.h.in new file mode 100644 index 00000000..9fbe965b --- /dev/null +++ b/lang/qt/src/qgpgme_version.h.in @@ -0,0 +1,32 @@ +/*qgpgme_version.h - Version macros for qgpgme +  Copyright (C) 2016, Intevation GmbH + +  This file is part of GPGME++. + +  GPGME++ is free software; you can redistribute it and/or +  modify it under the terms of the GNU Library General Public +  License as published by the Free Software Foundation; either +  version 2 of the License, or (at your option) any later version. + +  GPGME++ is distributed in the hope that it will be useful, +  but WITHOUT ANY WARRANTY; without even the implied warranty of +  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the +  GNU Library General Public License for more details. + +  You should have received a copy of the GNU Library General Public License +  along with GPGME++; see the file COPYING.LIB.  If not, write to the +  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +  Boston, MA 02110-1301, USA. +*/ + + +#ifndef QGPGME_VERSION_H +#define QGPGME_VERSION_H + +#define QGPGME_VERSION_STRING "@LIBQGPGME_LT_CURRENT@.@LIBQGPGME_LT_AGE@.@LIBQGPGME_LT_REVISION@" +#define QGPGME_VERSION_MAJOR @LIBQGPGME_LT_CURRENT@ +#define QGPGME_VERSION_MINOR @LIBQGPGME_LT_AGE@ +#define QGPGME_VERSION_PATCH @LIBQGPGME_LT_REVISION@ +#define QGPGME_VERSION ((@LIBQGPGME_LT_CURRENT@<<16)|(@LIBQGPGME_LT_AGE@<<8)|(@LIBQGPGME_LT_REVISION@)) + +#endif | 
