qt: Add job for quick commands
[gpgme.git] / lang / qt / src / Makefile.am
1 # Makefile.am for GPGMEPP.
2 # Copyright (C) 2016 Bundesamt für Sicherheit in der Informationstechnik
3 # Software engineering by Intevation GmbH
4 #
5 # This file is part of GPGMEPP.
6 #
7 # GPGME-CL is free software; you can redistribute it and/or modify it
8 # under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2 of the License, or
10 # (at your option) any later version.
11 #
12 # GPGME-CL is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 # GNU Lesser General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
20 # 02111-1307, USA
21 lib_LTLIBRARIES = libqgpgme.la
22 EXTRA_DIST = QGpgmeConfig.cmake.in.in QGpgmeConfigVersion.cmake.in \
23              gpgme_backend_debug.h qgpgme_version.h.in \
24              QGpgmeConfig.cmake.in.in
25
26 qgpgme_sources = \
27     dataprovider.cpp job.cpp multideletejob.cpp qgpgmeadduseridjob.cpp \
28     qgpgmebackend.cpp qgpgmechangeexpiryjob.cpp qgpgmechangeownertrustjob.cpp \
29     qgpgmechangepasswdjob.cpp qgpgmedecryptjob.cpp \
30     qgpgmedecryptverifyjob.cpp qgpgmedeletejob.cpp qgpgmedownloadjob.cpp \
31     qgpgmeencryptjob.cpp qgpgmeexportjob.cpp qgpgmeimportfromkeyserverjob.cpp \
32     qgpgmeimportjob.cpp qgpgmekeygenerationjob.cpp qgpgmekeylistjob.cpp \
33     qgpgmelistallkeysjob.cpp qgpgmenewcryptoconfig.cpp \
34     qgpgmerefreshkeysjob.cpp \
35     qgpgmesecretkeyexportjob.cpp qgpgmesignencryptjob.cpp \
36     qgpgmesignjob.cpp qgpgmesignkeyjob.cpp qgpgmeverifydetachedjob.cpp \
37     qgpgmeverifyopaquejob.cpp threadedjobmixin.cpp \
38     qgpgmekeyformailboxjob.cpp gpgme_backend_debug.cpp \
39     qgpgmetofupolicyjob.cpp qgpgmequickjob.cpp \
40     defaultkeygenerationjob.cpp qgpgmewkspublishjob.cpp \
41     dn.cpp cryptoconfig.cpp
42
43 # If you add one here make sure that you also add one in camelcase
44 qgpgme_headers= \
45     abstractimportjob.h \
46     adduseridjob.h \
47     changeexpiryjob.h \
48     changeownertrustjob.h \
49     changepasswdjob.h \
50     dataprovider.h \
51     decryptjob.h \
52     decryptverifyjob.h \
53     downloadjob.h \
54     encryptjob.h \
55     exportjob.h \
56     hierarchicalkeylistjob.h \
57     job.h \
58     keyformailboxjob.h \
59     multideletejob.h \
60     protocol.h \
61     qgpgme_export.h \
62     qgpgmenewcryptoconfig.h \
63     quickjob.h \
64     specialjob.h \
65     signjob.h \
66     signkeyjob.h \
67     signencryptjob.h \
68     verifyopaquejob.h \
69     refreshkeysjob.h \
70     cryptoconfig.h \
71     deletejob.h \
72     importfromkeyserverjob.h \
73     importjob.h \
74     keygenerationjob.h \
75     keylistjob.h \
76     listallkeysjob.h \
77     verifydetachedjob.h \
78     defaultkeygenerationjob.h \
79     tofupolicyjob.h \
80     wkspublishjob.h \
81     dn.h
82
83 camelcase_headers= \
84     AddUserIDJob \
85     AbstractImportJob \
86     ChangeExpiryJob \
87     ChangeOwnerTrustJob \
88     ChangePasswdJob \
89     DataProvider \
90     DecryptJob \
91     DecryptVerifyJob \
92     DN \
93     DownloadJob \
94     EncryptJob \
95     ExportJob \
96     HierarchicalKeyKistJob \
97     Job \
98     MultiDeleteJob \
99     Protocol \
100     QGpgMENewCryptoConfig \
101     QuickJob \
102     SpecialJob \
103     SignJob \
104     SignKeyJob \
105     SignEncryptJob \
106     VerifyOpaqueJob \
107     RefreshKeysJob \
108     CryptoConfig \
109     DeleteJob \
110     ImportFromKeyserverJob \
111     ImportJob \
112     KeyGenerationJob \
113     KeyListJob \
114     ListAllKeysJob \
115     VerifyDetachedJob \
116     KeyForMailboxJob \
117     DefaultKeyGenerationJob \
118     WKSPublishJob \
119     TofuPolicyJob
120
121 private_qgpgme_headers = \
122     qgpgme_export.h \
123     protocol_p.h \
124     qgpgmeadduseridjob.h \
125     qgpgmebackend.h \
126     qgpgmechangeexpiryjob.h \
127     qgpgmechangeownertrustjob.h \
128     qgpgmechangepasswdjob.h \
129     qgpgmedecryptjob.h \
130     qgpgmedecryptverifyjob.h \
131     qgpgmedeletejob.h \
132     qgpgmedownloadjob.h \
133     qgpgmeencryptjob.h \
134     qgpgmeexportjob.h \
135     qgpgmeimportfromkeyserverjob.h \
136     qgpgmeimportjob.h \
137     qgpgmekeygenerationjob.h \
138     qgpgmekeylistjob.h \
139     qgpgmelistallkeysjob.h \
140     qgpgmerefreshkeysjob.h \
141     qgpgmesecretkeyexportjob.h \
142     qgpgmesignencryptjob.h \
143     qgpgmesignjob.h \
144     qgpgmesignkeyjob.h \
145     qgpgmeverifydetachedjob.h \
146     qgpgmeverifyopaquejob.h \
147     qgpgmekeyformailboxjob.h \
148     qgpgmewkspublishjob.h \
149     qgpgmetofupolicyjob.h \
150     qgpgmequickjob.h \
151     threadedjobmixin.h
152
153 qgpgme_moc_sources = \
154     abstractimportjob.moc \
155     adduseridjob.moc \
156     changeexpiryjob.moc \
157     changeownertrustjob.moc \
158     changepasswdjob.moc \
159     decryptjob.moc \
160     decryptverifyjob.moc \
161     deletejob.moc \
162     downloadjob.moc \
163     encryptjob.moc \
164     exportjob.moc \
165     hierarchicalkeylistjob.moc \
166     importfromkeyserverjob.moc \
167     importjob.moc \
168     job.moc \
169     keygenerationjob.moc \
170     keylistjob.moc \
171     listallkeysjob.moc \
172     multideletejob.moc \
173     qgpgmeadduseridjob.moc \
174     qgpgmechangeexpiryjob.moc \
175     qgpgmechangeownertrustjob.moc \
176     qgpgmechangepasswdjob.moc \
177     qgpgmedecryptjob.moc \
178     qgpgmedecryptverifyjob.moc \
179     qgpgmedeletejob.moc \
180     qgpgmedownloadjob.moc \
181     qgpgmeencryptjob.moc \
182     qgpgmeexportjob.moc \
183     qgpgmeimportfromkeyserverjob.moc \
184     qgpgmeimportjob.moc \
185     qgpgmekeygenerationjob.moc \
186     qgpgmekeylistjob.moc \
187     qgpgmelistallkeysjob.moc \
188     qgpgmerefreshkeysjob.moc \
189     qgpgmesecretkeyexportjob.moc \
190     qgpgmesignencryptjob.moc \
191     qgpgmesignjob.moc \
192     qgpgmesignkeyjob.moc \
193     qgpgmeverifydetachedjob.moc \
194     qgpgmeverifyopaquejob.moc \
195     qgpgmewkspublishjob.moc \
196     tofupolicyjob.moc \
197     qgpgmetofupolicyjob.moc \
198     refreshkeysjob.moc \
199     signencryptjob.moc \
200     signjob.moc \
201     signkeyjob.moc \
202     specialjob.moc \
203     verifydetachedjob.moc \
204     verifyopaquejob.moc \
205     keyformailboxjob.moc \
206     wkspublishjob.moc \
207     qgpgmekeyformailboxjob.moc \
208     defaultkeygenerationjob.moc \
209     quickjob.moc \
210     qgpgmequickjob.moc
211
212 qgpgmeincludedir = $(includedir)/qgpgme
213 qgpgmeinclude_HEADERS = $(qgpgme_headers)
214 camelcaseincludedir = $(includedir)/QGpgME
215 camelcaseinclude_HEADERS = $(camelcase_headers)
216 nodist_qgpgmeinclude_HEADERS = qgpgme_version.h
217
218 libqgpgme_la_SOURCES = $(qgpgme_sources) $(qgpgme_headers) $(private_qgpgme_headers)
219
220 AM_CPPFLAGS = -I$(top_srcdir)/lang/cpp/src -I$(top_builddir)/src \
221               @GPGME_QT_CFLAGS@ @GPG_ERROR_CFLAGS@ @LIBASSUAN_CFLAGS@ \
222               -DBUILDING_QGPGME
223
224 libqgpgme_la_LIBADD = ../../cpp/src/libgpgmepp.la ../../../src/libgpgme.la \
225                        @LIBASSUAN_LIBS@ @GPGME_QT_LIBS@
226 libqgpgme_la_LDFLAGS = -no-undefined -version-info \
227     @LIBQGPGME_LT_CURRENT@:@LIBQGPGME_LT_REVISION@:@LIBQGPGME_LT_AGE@
228
229 if HAVE_MACOS_SYSTEM
230 libsuffix=.dylib
231 else
232 libsuffix=.so
233 endif
234
235 if HAVE_W32_SYSTEM
236 QGpgmeConfig.cmake: QGpgmeConfig-w32.cmake.in
237         sed -e 's|[@]resolved_bindir@|$(bindir)|g' < "$<" | \
238         sed -e 's|[@]resolved_libdir@|$(libdir)|g' | \
239         sed -e 's|[@]resolved_includedir@|$(includedir)|g' > $@
240 else
241 QGpgmeConfig.cmake: QGpgmeConfig.cmake.in
242         sed -e 's|[@]resolved_libdir@|$(libdir)|g' < "$<" | \
243         sed -e 's|[@]libsuffix@|$(libsuffix)|g' | \
244         sed -e 's|[@]resolved_includedir@|$(includedir)|g' > $@
245 endif
246
247 $(camelcase_headers): Makefile.am
248         echo -n "#include \"qgpgme/" > "$@"
249         echo -n "$@" | tr '[:upper:]' '[:lower:]' >> "$@"
250         echo ".h\"" >> "$@"
251
252 install-cmake-files: QGpgmeConfig.cmake QGpgmeConfigVersion.cmake
253         -$(INSTALL) -d $(DESTDIR)$(libdir)/cmake/QGpgme
254         $(INSTALL) -m 644 QGpgmeConfig.cmake \
255         $(DESTDIR)$(libdir)/cmake/QGpgme/QGpgmeConfig.cmake
256         $(INSTALL) -m 644 QGpgmeConfigVersion.cmake \
257         $(DESTDIR)$(libdir)/cmake/QGpgme/QGpgmeConfigVersion.cmake
258
259 uninstall-cmake-files:
260         -rm $(DESTDIR)$(libdir)/cmake/QGpgme/QGpgmeConfigVersion.cmake
261         -rm $(DESTDIR)$(libdir)/cmake/QGpgme/QGpgmeConfig.cmake
262         -rmdir $(DESTDIR)$(libdir)/cmake/QGpgme/
263
264 install-data-local: install-cmake-files
265
266 uninstall-local: uninstall-cmake-files
267
268 BUILT_SOURCES = $(qgpgme_moc_sources) $(camelcase_headers)
269
270 CLEANFILES = $(qgpgme_moc_sources) $(camelcase_headers) QGpgmeConfig.cmake \
271              qgpgme_version.h QGpgmeConfig.cmake.in \
272              QGpgmeConfigVersion.cmake
273
274 nodist_libqgpgme_la_SOURCES = $(qgpgme_moc_sources)
275
276 .h.moc:
277         $(MOC) `test -f '$<' || echo '$(srcdir)/'`$< -o $@