Add QGpgME code from libkleo
[gpgme.git] / lang / qt / src / Makefile.am
1 # Makefile.am for GPGMEPP.
2 # Copyright (C) 2016 Intevation GmbH
3 #
4 # This file is part of GPGMEPP.
5 #
6 # GPGME-CL is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
10 #
11 # GPGME-CL is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU Lesser General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
19 # 02111-1307, USA
20 lib_LTLIBRARIES = libqgpgme.la
21 EXTRA_DIST = QGpgmeConfig.cmake.in.in QGpgmeConfigVersion.cmake.in \
22              gpgme_backend_debug.h
23
24 qgpgme_sources = \
25     dataprovider.cpp job.cpp qgpgmeadduseridjob.cpp \
26     qgpgmebackend.cpp qgpgmechangeexpiryjob.cpp qgpgmechangeownertrustjob.cpp \
27     qgpgmechangepasswdjob.cpp qgpgmedecryptjob.cpp \
28     qgpgmedecryptverifyjob.cpp qgpgmedeletejob.cpp qgpgmedownloadjob.cpp \
29     qgpgmeencryptjob.cpp qgpgmeexportjob.cpp qgpgmeimportfromkeyserverjob.cpp \
30     qgpgmeimportjob.cpp qgpgmekeygenerationjob.cpp qgpgmekeylistjob.cpp \
31     qgpgmelistallkeysjob.cpp qgpgmenewcryptoconfig.cpp \
32     qgpgmerefreshkeysjob.cpp \
33     qgpgmesecretkeyexportjob.cpp qgpgmesignencryptjob.cpp \
34     qgpgmesignjob.cpp qgpgmesignkeyjob.cpp qgpgmeverifydetachedjob.cpp \
35     qgpgmeverifyopaquejob.cpp threadedjobmixin.cpp \
36     gpgme_backend_debug.cpp
37
38 qgpgme_headers = \
39     qgpgme_export.h \
40     abstractimportjob.h \
41     adduseridjob.h \
42     changeexpiryjob.h \
43     changeownertrustjob.h \
44     changepasswdjob.h \
45     cryptoconfig.h \
46     dataprovider.h \
47     decryptjob.h \
48     decryptverifyjob.h \
49     deletejob.h \
50     downloadjob.h \
51     encryptjob.h \
52     exportjob.h \
53     hierarchicalkeylistjob.h \
54     importfromkeyserverjob.h \
55     importjob.h \
56     job.h \
57     keygenerationjob.h \
58     keylistjob.h \
59     listallkeysjob.h \
60     multideletejob.h \
61     qgpgmeadduseridjob.h \
62     qgpgmebackend.h \
63     qgpgmechangeexpiryjob.h \
64     qgpgmechangeownertrustjob.h \
65     qgpgmechangepasswdjob.h \
66     qgpgmedecryptjob.h \
67     qgpgmedecryptverifyjob.h \
68     qgpgmedeletejob.h \
69     qgpgmedownloadjob.h \
70     qgpgmeencryptjob.h \
71     qgpgmeexportjob.h \
72     qgpgmeimportfromkeyserverjob.h \
73     qgpgmeimportjob.h \
74     qgpgmekeygenerationjob.h \
75     qgpgmekeylistjob.h \
76     qgpgmelistallkeysjob.h \
77     qgpgmenewcryptoconfig.h \
78     qgpgmerefreshkeysjob.h \
79     qgpgmesecretkeyexportjob.h \
80     qgpgmesignencryptjob.h \
81     qgpgmesignjob.h \
82     qgpgmesignkeyjob.h \
83     qgpgmeverifydetachedjob.h \
84     qgpgmeverifyopaquejob.h \
85     refreshkeysjob.h \
86     signencryptjob.h \
87     signjob.h \
88     signkeyjob.h \
89     specialjob.h \
90     threadedjobmixin.h \
91     verifydetachedjob.h \
92     verifyopaquejob.h
93
94 qgpgme_moc_sources = \
95     abstractimportjob.moc \
96     adduseridjob.moc \
97     changeexpiryjob.moc \
98     changeownertrustjob.moc \
99     changepasswdjob.moc \
100     decryptjob.moc \
101     decryptverifyjob.moc \
102     deletejob.moc \
103     downloadjob.moc \
104     encryptjob.moc \
105     exportjob.moc \
106     hierarchicalkeylistjob.moc \
107     importfromkeyserverjob.moc \
108     importjob.moc \
109     job.moc \
110     keygenerationjob.moc \
111     keylistjob.moc \
112     listallkeysjob.moc \
113     multideletejob.moc \
114     qgpgmeadduseridjob.moc \
115     qgpgmechangeexpiryjob.moc \
116     qgpgmechangeownertrustjob.moc \
117     qgpgmechangepasswdjob.moc \
118     qgpgmedecryptjob.moc \
119     qgpgmedecryptverifyjob.moc \
120     qgpgmedeletejob.moc \
121     qgpgmedownloadjob.moc \
122     qgpgmeencryptjob.moc \
123     qgpgmeexportjob.moc \
124     qgpgmeimportfromkeyserverjob.moc \
125     qgpgmeimportjob.moc \
126     qgpgmekeygenerationjob.moc \
127     qgpgmekeylistjob.moc \
128     qgpgmelistallkeysjob.moc \
129     qgpgmerefreshkeysjob.moc \
130     qgpgmesecretkeyexportjob.moc \
131     qgpgmesignencryptjob.moc \
132     qgpgmesignjob.moc \
133     qgpgmesignkeyjob.moc \
134     qgpgmeverifydetachedjob.moc \
135     qgpgmeverifyopaquejob.moc \
136     refreshkeysjob.moc \
137     signencryptjob.moc \
138     signjob.moc \
139     signkeyjob.moc \
140     specialjob.moc \
141     verifydetachedjob.moc \
142     verifyopaquejob.moc
143
144 qgpgmeincludedir = $(includedir)/qgpgme
145 qgpgmeinclude_HEADERS = $(qgpgme_headers)
146
147 libqgpgme_la_SOURCES = $(qgpgme_sources) $(qgpgme_headers)
148
149 AM_CPPFLAGS = @GPGME_QT_CFLAGS@ @GPG_ERROR_CFLAGS@ @LIBASSUAN_CFLAGS@ \
150               -DBUILDING_QGPGME -I$(top_srcdir)/lang/cpp/src
151
152 libqgpgme_la_LIBADD = ../../cpp/src/libgpgmepp.la ../../../src/libgpgme.la \
153                        @LIBASSUAN_LIBS@ @GPGME_QT_LIBS@
154 libqgpgme_la_LDFLAGS = -version-info \
155     @LIBQGPGME_LT_CURRENT@:@LIBQGPGME_LT_REVISION@:@LIBQGPGME_LT_AGE@
156
157 if HAVE_W32_SYSTEM
158 libsuffix=.dll.a
159 else
160 libsuffix=.so
161 endif
162
163 QGpgmeConfig.cmake: QGpgmeConfig.cmake.in
164         sed -e 's|[@]resolved_libdir@|$(libdir)|g' < "$<" > "$@"
165         sed -e 's|[@]libsuffix@|$(libsuffix)|g' < "$@" > "$@".2
166         mv "$@".2 "$@"
167
168 install-cmake-files: QGpgmeConfig.cmake QGpgmeConfigVersion.cmake
169         -$(INSTALL) -d $(DESTDIR)$(libdir)/cmake/Gpgmepp
170         $(INSTALL) QGpgmeConfig.cmake \
171         $(DESTDIR)$(libdir)/cmake/Gpgmepp/QGpgmeConfig.cmake
172         $(INSTALL) QGpgmeConfigVersion.cmake \
173         $(DESTDIR)$(libdir)/cmake/Gpgmepp/QGpgmeConfigVersion.cmake
174
175 uninstall-cmake-files:
176         -rm $(DESTDIR)$(libdir)/cmake/Gpgmepp/QGpgmeConfigVersion.cmake
177         -rm $(DESTDIR)$(libdir)/cmake/Gpgmepp/QGpgmeConfig.cmake
178         -rmdir $(DESTDIR)$(libdir)/cmake/Gpgmepp/
179
180 install-data-local: install-cmake-files
181
182 uninstall-local: uninstall-cmake-files
183
184 BUILT_SOURCES = $(qgpgme_moc_sources)
185
186 CLEANFILES = $(qgpgme_moc_sources)
187
188 nodist_qgpgme_SOURCES = $(qgpgme_moc_sources)
189
190 .h.moc:
191         $(MOC) `test -f '$<' || echo '$(srcdir)/'`$< -o $@