qt: Add missing header redirection
[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 qgpgme_version.h.in
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     qgpgmekeyformailboxjob.cpp gpgme_backend_debug.cpp \
37     defaultkeygenerationjob.cpp qgpgmewkspublishjob.cpp
38
39 # If you add one here make sure that you also add one in camelcase
40 qgpgme_headers= \
41     adduseridjob.h \
42     changeexpiryjob.h \
43     changeownertrustjob.h \
44     changepasswdjob.h \
45     dataprovider.h \
46     decryptjob.h \
47     decryptverifyjob.h \
48     downloadjob.h \
49     encryptjob.h \
50     exportjob.h \
51     hierarchicalkeylistjob.h \
52     job.h \
53     keyformailboxjob.h \
54     multideletejob.h \
55     protocol.h \
56     qgpgme_export.h \
57     qgpgmenewcryptoconfig.h \
58     signjob.h \
59     signkeyjob.h \
60     signencryptjob.h \
61     verifyopaquejob.h \
62     refreshkeysjob.h \
63     cryptoconfig.h \
64     deletejob.h \
65     importfromkeyserverjob.h \
66     importjob.h \
67     keygenerationjob.h \
68     keylistjob.h \
69     listallkeysjob.h \
70     verifydetachedjob.h \
71     defaultkeygenerationjob.h \
72     wkspublishjob.h
73
74 camelcase_headers= \
75     AddUserIDJob \
76     ChangeExpiryJob \
77     ChangeOwnerTrustJob \
78     ChangePasswdJob \
79     DataProvider \
80     DecryptJob \
81     DecryptVerifyJob \
82     DownloadJob \
83     EncryptJob \
84     ExportJob \
85     HierarchicalKeyKistJob \
86     Job \
87     MultiDeleteJob \
88     Protocol \
89     QGpgMENewCryptoConfig \
90     SignJob \
91     SignKeyJob \
92     SignEncryptJob \
93     VerifyOpaqueJob \
94     RefreshKeysJob \
95     CryptoConfig \
96     DeleteJob \
97     ImportFromKeyserverJob \
98     ImportJob \
99     KeyGenerationJob \
100     KeyListJob \
101     ListAllKeysJob \
102     VerifyDetachedJob \
103     KeyForMailboxJob \
104     DefaultKeyGenerationJob \
105     WKSPublishJob
106
107 private_qgpgme_headers = \
108     qgpgme_export.h \
109     abstractimportjob.h \
110     protocol_p.h \
111     qgpgmeadduseridjob.h \
112     qgpgmebackend.h \
113     qgpgmechangeexpiryjob.h \
114     qgpgmechangeownertrustjob.h \
115     qgpgmechangepasswdjob.h \
116     qgpgmedecryptjob.h \
117     qgpgmedecryptverifyjob.h \
118     qgpgmedeletejob.h \
119     qgpgmedownloadjob.h \
120     qgpgmeencryptjob.h \
121     qgpgmeexportjob.h \
122     qgpgmeimportfromkeyserverjob.h \
123     qgpgmeimportjob.h \
124     qgpgmekeygenerationjob.h \
125     qgpgmekeylistjob.h \
126     qgpgmelistallkeysjob.h \
127     qgpgmerefreshkeysjob.h \
128     qgpgmesecretkeyexportjob.h \
129     qgpgmesignencryptjob.h \
130     qgpgmesignjob.h \
131     qgpgmesignkeyjob.h \
132     qgpgmeverifydetachedjob.h \
133     qgpgmeverifyopaquejob.h \
134     qgpgmekeyformailboxjob.h \
135     qgpgmewkspublishjob.h \
136     specialjob.h \
137     threadedjobmixin.h
138
139 qgpgme_moc_sources = \
140     abstractimportjob.moc \
141     adduseridjob.moc \
142     changeexpiryjob.moc \
143     changeownertrustjob.moc \
144     changepasswdjob.moc \
145     decryptjob.moc \
146     decryptverifyjob.moc \
147     deletejob.moc \
148     downloadjob.moc \
149     encryptjob.moc \
150     exportjob.moc \
151     hierarchicalkeylistjob.moc \
152     importfromkeyserverjob.moc \
153     importjob.moc \
154     job.moc \
155     keygenerationjob.moc \
156     keylistjob.moc \
157     listallkeysjob.moc \
158     multideletejob.moc \
159     qgpgmeadduseridjob.moc \
160     qgpgmechangeexpiryjob.moc \
161     qgpgmechangeownertrustjob.moc \
162     qgpgmechangepasswdjob.moc \
163     qgpgmedecryptjob.moc \
164     qgpgmedecryptverifyjob.moc \
165     qgpgmedeletejob.moc \
166     qgpgmedownloadjob.moc \
167     qgpgmeencryptjob.moc \
168     qgpgmeexportjob.moc \
169     qgpgmeimportfromkeyserverjob.moc \
170     qgpgmeimportjob.moc \
171     qgpgmekeygenerationjob.moc \
172     qgpgmekeylistjob.moc \
173     qgpgmelistallkeysjob.moc \
174     qgpgmerefreshkeysjob.moc \
175     qgpgmesecretkeyexportjob.moc \
176     qgpgmesignencryptjob.moc \
177     qgpgmesignjob.moc \
178     qgpgmesignkeyjob.moc \
179     qgpgmeverifydetachedjob.moc \
180     qgpgmeverifyopaquejob.moc \
181     qgpgmewkspublishjob.moc \
182     refreshkeysjob.moc \
183     signencryptjob.moc \
184     signjob.moc \
185     signkeyjob.moc \
186     specialjob.moc \
187     verifydetachedjob.moc \
188     verifyopaquejob.moc \
189     keyformailboxjob.moc \
190     wkspublishjob.moc \
191     qgpgmekeyformailboxjob.moc \
192     defaultkeygenerationjob.moc
193
194 qgpgmeincludedir = $(includedir)/qgpgme
195 qgpgmeinclude_HEADERS = $(qgpgme_headers)
196 camelcaseincludedir = $(includedir)/QGpgME
197 camelcaseinclude_HEADERS = $(camelcase_headers)
198 nodist_include_HEADERS = qgpgme_version.h
199
200 libqgpgme_la_SOURCES = $(qgpgme_sources) $(qgpgme_headers) $(private_qgpgme_headers)
201
202 AM_CPPFLAGS = -I$(top_srcdir)/lang/cpp/src -I$(top_builddir)/src \
203               @GPGME_QT_CFLAGS@ @GPG_ERROR_CFLAGS@ @LIBASSUAN_CFLAGS@ \
204               -DBUILDING_QGPGME
205
206 libqgpgme_la_LIBADD = ../../cpp/src/libgpgmepp.la ../../../src/libgpgme.la \
207                        @LIBASSUAN_LIBS@ @GPGME_QT_LIBS@
208 libqgpgme_la_LDFLAGS = -version-info \
209     @LIBQGPGME_LT_CURRENT@:@LIBQGPGME_LT_REVISION@:@LIBQGPGME_LT_AGE@
210
211 if HAVE_W32_SYSTEM
212 libsuffix=.dll.a
213 else
214 libsuffix=.so
215 endif
216
217 QGpgmeConfig.cmake: QGpgmeConfig.cmake.in
218         sed -e 's|[@]resolved_libdir@|$(libdir)|g' < "$<" > "$@"
219         sed -e 's|[@]libsuffix@|$(libsuffix)|g' < "$@" > "$@".2
220         mv "$@".2 "$@"
221
222 $(camelcase_headers): Makefile.am
223         echo -n "#include \"qgpgme/" > "$@"
224         echo -n "$@" | tr '[:upper:]' '[:lower:]' >> "$@"
225         echo ".h\"" >> "$@"
226
227 install-cmake-files: QGpgmeConfig.cmake QGpgmeConfigVersion.cmake
228         -$(INSTALL) -d $(DESTDIR)$(libdir)/cmake/Gpgmepp
229         $(INSTALL) QGpgmeConfig.cmake \
230         $(DESTDIR)$(libdir)/cmake/Gpgmepp/QGpgmeConfig.cmake
231         $(INSTALL) QGpgmeConfigVersion.cmake \
232         $(DESTDIR)$(libdir)/cmake/Gpgmepp/QGpgmeConfigVersion.cmake
233
234 uninstall-cmake-files:
235         -rm $(DESTDIR)$(libdir)/cmake/Gpgmepp/QGpgmeConfigVersion.cmake
236         -rm $(DESTDIR)$(libdir)/cmake/Gpgmepp/QGpgmeConfig.cmake
237         -rmdir $(DESTDIR)$(libdir)/cmake/Gpgmepp/
238
239 install-data-local: install-cmake-files
240
241 uninstall-local: uninstall-cmake-files
242
243 BUILT_SOURCES = $(qgpgme_moc_sources) $(camelcase_headers)
244
245 CLEANFILES = $(qgpgme_moc_sources) $(camelcase_headers) QGpgmeConfig.cmake
246
247 nodist_libqgpgme_la_SOURCES = $(qgpgme_moc_sources)
248
249 .h.moc:
250         $(MOC) `test -f '$<' || echo '$(srcdir)/'`$< -o $@