Add buildsystem for Gpgmepp
authorAndre Heinecke <aheinecke@intevation.de>
Mon, 22 Feb 2016 18:09:54 +0000 (19:09 +0100)
committerAndre Heinecke <aheinecke@intevation.de>
Mon, 22 Feb 2016 18:09:54 +0000 (19:09 +0100)
* 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.

configure.ac
lang/Makefile.am
lang/cpp/Makefile.am [new file with mode: 0644]
lang/cpp/src/Makefile.am [new file with mode: 0644]

index 55c388e..fb6fa73 100644 (file)
@@ -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
 
index 854d934..a8d33f5 100644 (file)
@@ -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 (file)
index 0000000..7fbaca8
--- /dev/null
@@ -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 (file)
index 0000000..3b7a514
--- /dev/null
@@ -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@