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