Qt/Cpp: Add version headers
[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     gpgme_backend_debug.cpp
37
38 qgpgme_headers= \
39     adduseridjob.h \
40     changeexpiryjob.h \
41     changeownertrustjob.h \
42     changepasswdjob.h \
43     dataprovider.h \
44     decryptjob.h \
45     decryptverifyjob.h \
46     downloadjob.h \
47     encryptjob.h \
48     exportjob.h \
49     hierarchicalkeylistjob.h \
50     job.h \
51     multideletejob.h \
52     protocol.h \
53     qgpgme_export.h \
54     qgpgmenewcryptoconfig.h \
55     signjob.h \
56     signkeyjob.h \
57     signencryptjob.h \
58     verifyopaquejob.h \
59     refreshkeysjob.h \
60     cryptoconfig.h \
61     deletejob.h \
62     importfromkeyserverjob.h \
63     importjob.h \
64     keygenerationjob.h \
65     keylistjob.h \
66     listallkeysjob.h \
67     verifydetachedjob.h
68
69 private_qgpgme_headers = \
70     qgpgme_export.h \
71     abstractimportjob.h \
72     protocol_p.h \
73     qgpgmeadduseridjob.h \
74     qgpgmebackend.h \
75     qgpgmechangeexpiryjob.h \
76     qgpgmechangeownertrustjob.h \
77     qgpgmechangepasswdjob.h \
78     qgpgmedecryptjob.h \
79     qgpgmedecryptverifyjob.h \
80     qgpgmedeletejob.h \
81     qgpgmedownloadjob.h \
82     qgpgmeencryptjob.h \
83     qgpgmeexportjob.h \
84     qgpgmeimportfromkeyserverjob.h \
85     qgpgmeimportjob.h \
86     qgpgmekeygenerationjob.h \
87     qgpgmekeylistjob.h \
88     qgpgmelistallkeysjob.h \
89     qgpgmerefreshkeysjob.h \
90     qgpgmesecretkeyexportjob.h \
91     qgpgmesignencryptjob.h \
92     qgpgmesignjob.h \
93     qgpgmesignkeyjob.h \
94     qgpgmeverifydetachedjob.h \
95     qgpgmeverifyopaquejob.h \
96     specialjob.h \
97     threadedjobmixin.h
98
99 qgpgme_moc_sources = \
100     abstractimportjob.moc \
101     adduseridjob.moc \
102     changeexpiryjob.moc \
103     changeownertrustjob.moc \
104     changepasswdjob.moc \
105     decryptjob.moc \
106     decryptverifyjob.moc \
107     deletejob.moc \
108     downloadjob.moc \
109     encryptjob.moc \
110     exportjob.moc \
111     hierarchicalkeylistjob.moc \
112     importfromkeyserverjob.moc \
113     importjob.moc \
114     job.moc \
115     keygenerationjob.moc \
116     keylistjob.moc \
117     listallkeysjob.moc \
118     multideletejob.moc \
119     qgpgmeadduseridjob.moc \
120     qgpgmechangeexpiryjob.moc \
121     qgpgmechangeownertrustjob.moc \
122     qgpgmechangepasswdjob.moc \
123     qgpgmedecryptjob.moc \
124     qgpgmedecryptverifyjob.moc \
125     qgpgmedeletejob.moc \
126     qgpgmedownloadjob.moc \
127     qgpgmeencryptjob.moc \
128     qgpgmeexportjob.moc \
129     qgpgmeimportfromkeyserverjob.moc \
130     qgpgmeimportjob.moc \
131     qgpgmekeygenerationjob.moc \
132     qgpgmekeylistjob.moc \
133     qgpgmelistallkeysjob.moc \
134     qgpgmerefreshkeysjob.moc \
135     qgpgmesecretkeyexportjob.moc \
136     qgpgmesignencryptjob.moc \
137     qgpgmesignjob.moc \
138     qgpgmesignkeyjob.moc \
139     qgpgmeverifydetachedjob.moc \
140     qgpgmeverifyopaquejob.moc \
141     refreshkeysjob.moc \
142     signencryptjob.moc \
143     signjob.moc \
144     signkeyjob.moc \
145     specialjob.moc \
146     verifydetachedjob.moc \
147     verifyopaquejob.moc
148
149 qgpgmeincludedir = $(includedir)/qgpgme
150 qgpgmeinclude_HEADERS = $(qgpgme_headers)
151 nodist_include_HEADERS = qgpgme_version.h
152
153 libqgpgme_la_SOURCES = $(qgpgme_sources) $(qgpgme_headers) $(private_qgpgme_headers)
154
155 AM_CPPFLAGS = @GPGME_QT_CFLAGS@ @GPG_ERROR_CFLAGS@ @LIBASSUAN_CFLAGS@ \
156               -DBUILDING_QGPGME -I$(top_srcdir)/lang/cpp/src
157
158 libqgpgme_la_LIBADD = ../../cpp/src/libgpgmepp.la ../../../src/libgpgme.la \
159                        @LIBASSUAN_LIBS@ @GPGME_QT_LIBS@
160 libqgpgme_la_LDFLAGS = -version-info \
161     @LIBQGPGME_LT_CURRENT@:@LIBQGPGME_LT_REVISION@:@LIBQGPGME_LT_AGE@
162
163 if HAVE_W32_SYSTEM
164 libsuffix=.dll.a
165 else
166 libsuffix=.so
167 endif
168
169 QGpgmeConfig.cmake: QGpgmeConfig.cmake.in
170         sed -e 's|[@]resolved_libdir@|$(libdir)|g' < "$<" > "$@"
171         sed -e 's|[@]libsuffix@|$(libsuffix)|g' < "$@" > "$@".2
172         mv "$@".2 "$@"
173
174 install-cmake-files: QGpgmeConfig.cmake QGpgmeConfigVersion.cmake
175         -$(INSTALL) -d $(DESTDIR)$(libdir)/cmake/Gpgmepp
176         $(INSTALL) QGpgmeConfig.cmake \
177         $(DESTDIR)$(libdir)/cmake/Gpgmepp/QGpgmeConfig.cmake
178         $(INSTALL) QGpgmeConfigVersion.cmake \
179         $(DESTDIR)$(libdir)/cmake/Gpgmepp/QGpgmeConfigVersion.cmake
180
181 uninstall-cmake-files:
182         -rm $(DESTDIR)$(libdir)/cmake/Gpgmepp/QGpgmeConfigVersion.cmake
183         -rm $(DESTDIR)$(libdir)/cmake/Gpgmepp/QGpgmeConfig.cmake
184         -rmdir $(DESTDIR)$(libdir)/cmake/Gpgmepp/
185
186 install-data-local: install-cmake-files
187
188 uninstall-local: uninstall-cmake-files
189
190 BUILT_SOURCES = $(qgpgme_moc_sources)
191
192 CLEANFILES = $(qgpgme_moc_sources) QGpgmeConfig.cmake
193
194 nodist_libqgpgme_la_SOURCES = $(qgpgme_moc_sources)
195
196 .h.moc:
197         $(MOC) `test -f '$<' || echo '$(srcdir)/'`$< -o $@