aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2016-02-22 18:09:54 +0000
committerAndre Heinecke <[email protected]>2016-02-22 18:09:54 +0000
commitf5fd787b5b45cb14d539b5c26f44066eb9ac0f75 (patch)
treeae5f770813b9a10dd35bfe9538f397d4292b6c5d
parentRemove feature check ifdefs (diff)
downloadgpgme-f5fd787b5b45cb14d539b5c26f44066eb9ac0f75.tar.gz
gpgme-f5fd787b5b45cb14d539b5c26f44066eb9ac0f75.zip
Add buildsystem for Gpgmepp
* configure.ac: Configure Makefiles. * lang/Makefile.am: Add cpp subdir * lang/cpp/Makefile.am: New. Add src subdir. * lang/cpp/src/Makefile.am: New. Basic buildsystem.
-rw-r--r--configure.ac1
-rw-r--r--lang/Makefile.am2
-rw-r--r--lang/cpp/Makefile.am23
-rw-r--r--lang/cpp/src/Makefile.am39
4 files changed, 64 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 55c388eb..fb6fa73d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -632,6 +632,7 @@ AC_CONFIG_FILES(Makefile src/Makefile
src/versioninfo.rc
src/gpgme.h)
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/Makefile lang/cl/Makefile lang/cl/gpgme.asd])
AC_OUTPUT
diff --git a/lang/Makefile.am b/lang/Makefile.am
index 854d9348..a8d33f59 100644
--- a/lang/Makefile.am
+++ b/lang/Makefile.am
@@ -17,6 +17,6 @@
# License along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
-SUBDIRS = cl
+SUBDIRS = cl cpp
EXTRA_DIST = README
diff --git a/lang/cpp/Makefile.am b/lang/cpp/Makefile.am
new file mode 100644
index 00000000..7fbaca8e
--- /dev/null
+++ b/lang/cpp/Makefile.am
@@ -0,0 +1,23 @@
+# Makefile.am for GPGMEPP.
+# Copyright (C) 2016 Intevation GmbH
+#
+# This file is part of GPGMEPP.
+#
+# GPGME-CL is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# GPGME-CL 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 Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+# 02111-1307, USA
+
+SUBDIRS = src
+
+EXTRA_DIST = README
diff --git a/lang/cpp/src/Makefile.am b/lang/cpp/src/Makefile.am
new file mode 100644
index 00000000..3b7a5141
--- /dev/null
+++ b/lang/cpp/src/Makefile.am
@@ -0,0 +1,39 @@
+# Makefile.am for GPGMEPP.
+# Copyright (C) 2016 Intevation GmbH
+#
+# This file is part of GPGMEPP.
+#
+# GPGME-CL is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# GPGME-CL 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 Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+# 02111-1307, USA
+
+lib_LTLIBRARIES = libgpgmepp.la
+
+main_sources = \
+ exception.cpp context.cpp key.cpp trustitem.cpp data.cpp callbacks.cpp \
+ eventloopinteractor.cpp editinteractor.cpp assuanresult.cpp \
+ keylistresult.cpp keygenerationresult.cpp importresult.cpp \
+ decryptionresult.cpp verificationresult.cpp \
+ signingresult.cpp encryptionresult.cpp \
+ engineinfo.cpp gpgsetexpirytimeeditinteractor.cpp \
+ gpgsetownertrusteditinteractor.cpp gpgsignkeyeditinteractor.cpp \
+ gpgadduserideditinteractor.cpp defaultassuantransaction.cpp \
+ scdgetinfoassuantransaction.cpp gpgagentgetinfoassuantransaction.cpp \
+ vfsmountresult.cpp configuration.cpp
+
+libgpgmepp_la_SOURCES = $(main_sources) context_vanilla.cpp
+
+AM_CPPFLAGS = @GPG_ERROR_CFLAGS@ @LIBASSUAN_CFLAGS@
+
+libgpgmepp_la_LIBADD = ../../../src/libgpgme.la @LIBASSUAN_LIBS@