Line 0
Link Here
|
|
|
1 |
--- /cmake/modules/FindGpgme.cmake |
2 |
+++ /cmake/modules/FindGpgme.cmake |
3 |
@@ -2,23 +2,18 @@ |
4 |
# |
5 |
# Algorithm: |
6 |
# - Windows: |
7 |
-# On Windows, there's three gpgme variants: gpgme{,-glib,-qt}. |
8 |
+# On Windows, there are two gpgme variants: gpgme{,-glib}. |
9 |
# - The variant used determines the event loop integration possible: |
10 |
# - gpgme: no event loop integration possible, only synchronous operations supported |
11 |
# - gpgme-glib: glib event loop integration possible, only asynchronous operations supported |
12 |
-# - gpgme-qt: qt event loop integration possible, only asynchronous operations supported |
13 |
-# - GPGME_{VANILLA,GLIB,QT}_{FOUND,LIBRARIES} will be set for each of the above |
14 |
+# - GPGME_{VANILLA,GLIB}_{FOUND,LIBRARIES} will be set for each of the above |
15 |
# - GPGME_INCLUDES is the same for all of the above |
16 |
# - GPGME_FOUND is set if any of the above was found |
17 |
# - *nix: |
18 |
-# There's also three variants: gpgme{,-pthread,-pth}. |
19 |
-# - The variant used determines the multithreaded use possible: |
20 |
-# - gpgme: no multithreading support available |
21 |
-# - gpgme-pthread: multithreading available using POSIX threads |
22 |
-# - gpgme-pth: multithreading available using GNU PTH (cooperative multithreading) |
23 |
-# - GPGME_{VANILLA,PTH,PTHREAD}_{FOUND,LIBRARIES} will be set for each of the above |
24 |
-# - GPGME_INCLUDES is the same for all of the above |
25 |
-# - GPGME_FOUND is set if any of the above was found |
26 |
+# There is one variant: gpgme. |
27 |
+# - GPGME_VANILLA_{FOUND,LIBRARIES} |
28 |
+# - GPGME_INCLUDES |
29 |
+# - GPGME_FOUND is set if gpgme was found |
30 |
# |
31 |
# GPGME_LIBRARY_DIR - the directory where the libraries are located |
32 |
|
33 |
@@ -54,7 +49,7 @@ |
34 |
# don't require 2.6.3 but 2.6.2, we can't use it. Alex |
35 |
set( _seem_to_have_cached_gpgme false ) |
36 |
if ( GPGME_INCLUDES ) |
37 |
- if ( GPGME_VANILLA_LIBRARIES OR GPGME_QT_LIBRARIES OR GPGME_GLIB_LIBRARIES ) |
38 |
+ if ( GPGME_VANILLA_LIBRARIES OR GPGME_GLIB_LIBRARIES ) |
39 |
set( _seem_to_have_cached_gpgme true ) |
40 |
endif() |
41 |
endif() |
42 |
@@ -63,11 +58,10 @@ |
43 |
|
44 |
macro_bool_to_bool( GPGME_VANILLA_LIBRARIES GPGME_VANILLA_FOUND ) |
45 |
macro_bool_to_bool( GPGME_GLIB_LIBRARIES GPGME_GLIB_FOUND ) |
46 |
- macro_bool_to_bool( GPGME_QT_LIBRARIES GPGME_QT_FOUND ) |
47 |
# this would have been preferred: |
48 |
#set( GPGME_*_FOUND macro_bool_to_bool(GPGME_*_LIBRARIES) ) |
49 |
|
50 |
- if ( GPGME_VANILLA_FOUND OR GPGME_GLIB_FOUND OR GPGME_QT_FOUND ) |
51 |
+ if ( GPGME_VANILLA_FOUND OR GPGME_GLIB_FOUND ) |
52 |
set( GPGME_FOUND true ) |
53 |
else() |
54 |
set( GPGME_FOUND false ) |
55 |
@@ -84,7 +78,6 @@ |
56 |
set( GPGME_FOUND false ) |
57 |
set( GPGME_VANILLA_FOUND false ) |
58 |
set( GPGME_GLIB_FOUND false ) |
59 |
- set( GPGME_QT_FOUND false ) |
60 |
|
61 |
find_path( GPGME_INCLUDES gpgme.h |
62 |
${CMAKE_INCLUDE_PATH} |
63 |
@@ -103,12 +96,6 @@ |
64 |
${CMAKE_INSTALL_PREFIX}/lib |
65 |
) |
66 |
|
67 |
- find_library( _gpgme_qt_library NAMES gpgme-qt libgpgme-qt gpgme-qt-11 libgpgme-qt-11 |
68 |
- PATHS |
69 |
- ${CMAKE_LIBRARY_PATH} |
70 |
- ${CMAKE_INSTALL_PREFIX}/lib |
71 |
- ) |
72 |
- |
73 |
find_library( _gpg_error_library NAMES gpg-error libgpg-error gpg-error-0 libgpg-error-0 |
74 |
PATHS |
75 |
${CMAKE_LIBRARY_PATH} |
76 |
@@ -129,24 +116,11 @@ |
77 |
set( GPGME_FOUND true ) |
78 |
endif() |
79 |
|
80 |
- if ( _gpgme_qt_library AND _gpg_error_library ) |
81 |
- set( GPGME_QT_LIBRARIES ${_gpgme_qt_library} ${_gpg_error_library} ) |
82 |
- set( GPGME_QT_FOUND true ) |
83 |
- set( GPGME_FOUND true ) |
84 |
- endif() |
85 |
- |
86 |
endif() |
87 |
|
88 |
- # these are Unix-only: |
89 |
- set( GPGME_PTHREAD_FOUND false ) |
90 |
- set( GPGME_PTH_FOUND false ) |
91 |
- set( HAVE_GPGME_PTHREAD 0 ) |
92 |
- set( HAVE_GPGME_PTH 0 ) |
93 |
- |
94 |
macro_bool_to_01( GPGME_FOUND HAVE_GPGME ) |
95 |
macro_bool_to_01( GPGME_VANILLA_FOUND HAVE_GPGME_VANILLA ) |
96 |
macro_bool_to_01( GPGME_GLIB_FOUND HAVE_GPGME_GLIB ) |
97 |
- macro_bool_to_01( GPGME_QT_FOUND HAVE_GPGME_QT ) |
98 |
|
99 |
else() # not WIN32 |
100 |
|
101 |
@@ -156,7 +130,7 @@ |
102 |
# see WIN32 case for an explanation of what this does: |
103 |
set( _seem_to_have_cached_gpgme false ) |
104 |
if ( GPGME_INCLUDES ) |
105 |
- if ( GPGME_VANILLA_LIBRARIES OR GPGME_PTHREAD_LIBRARIES OR GPGME_PTH_LIBRARIES ) |
106 |
+ if ( GPGME_VANILLA_LIBRARIES ) |
107 |
set( _seem_to_have_cached_gpgme true ) |
108 |
endif() |
109 |
endif() |
110 |
@@ -164,10 +138,8 @@ |
111 |
if ( _seem_to_have_cached_gpgme ) |
112 |
|
113 |
macro_bool_to_bool( GPGME_VANILLA_LIBRARIES GPGME_VANILLA_FOUND ) |
114 |
- macro_bool_to_bool( GPGME_PTHREAD_LIBRARIES GPGME_PTHREAD_FOUND ) |
115 |
- macro_bool_to_bool( GPGME_PTH_LIBRARIES GPGME_PTH_FOUND ) |
116 |
|
117 |
- if ( GPGME_VANILLA_FOUND OR GPGME_PTHREAD_FOUND OR GPGME_PTH_FOUND ) |
118 |
+ if ( GPGME_VANILLA_FOUND ) |
119 |
set( GPGME_FOUND true ) |
120 |
else() |
121 |
set( GPGME_FOUND false ) |
122 |
@@ -177,8 +149,6 @@ |
123 |
|
124 |
set( GPGME_FOUND false ) |
125 |
set( GPGME_VANILLA_FOUND false ) |
126 |
- set( GPGME_PTHREAD_FOUND false ) |
127 |
- set( GPGME_PTH_FOUND false ) |
128 |
|
129 |
find_program( _GPGMECONFIG_EXECUTABLE NAMES gpgme-config ) |
130 |
|
131 |
@@ -189,8 +159,8 @@ |
132 |
|
133 |
exec_program( ${_GPGMECONFIG_EXECUTABLE} ARGS --version OUTPUT_VARIABLE GPGME_VERSION ) |
134 |
|
135 |
- set( _GPGME_MIN_VERSION "1.1.7" ) |
136 |
- if( ${GPGME_VERSION} VERSION_GREATER ${_GPGME_MIN_VERSION} ) |
137 |
+ set( _GPGME_MIN_VERSION "1.8.0" ) |
138 |
+ if( NOT ${GPGME_VERSION} VERSION_LESS ${_GPGME_MIN_VERSION} ) |
139 |
set( _GPGME_INSTALLED_VERSION_OK TRUE ) |
140 |
endif() |
141 |
|
142 |
@@ -207,24 +177,14 @@ |
143 |
set( _gpgme_config_vanilla_libs ) |
144 |
endif() |
145 |
|
146 |
- exec_program( ${_GPGMECONFIG_EXECUTABLE} ARGS --thread=pthread --libs OUTPUT_VARIABLE _gpgme_config_pthread_libs RETURN_VALUE _ret ) |
147 |
- if ( _ret ) |
148 |
- set( _gpgme_config_pthread_libs ) |
149 |
- endif() |
150 |
- |
151 |
- exec_program( ${_GPGMECONFIG_EXECUTABLE} ARGS --thread=pth --libs OUTPUT_VARIABLE _gpgme_config_pth_libs RETURN_VALUE _ret ) |
152 |
- if ( _ret ) |
153 |
- set( _gpgme_config_pth_libs ) |
154 |
- endif() |
155 |
- |
156 |
# append -lgpg-error to the list of libraries, if necessary |
157 |
- foreach ( _flavour vanilla pthread pth ) |
158 |
+ foreach ( _flavour vanilla ) |
159 |
if ( _gpgme_config_${_flavour}_libs AND NOT _gpgme_config_${_flavour}_libs MATCHES "lgpg-error" ) |
160 |
set( _gpgme_config_${_flavour}_libs "${_gpgme_config_${_flavour}_libs} -lgpg-error" ) |
161 |
endif() |
162 |
endforeach() |
163 |
|
164 |
- if ( _gpgme_config_vanilla_libs OR _gpgme_config_pthread_libs OR _gpgme_config_pth_libs ) |
165 |
+ if ( _gpgme_config_vanilla_libs ) |
166 |
|
167 |
exec_program( ${_GPGMECONFIG_EXECUTABLE} ARGS --cflags OUTPUT_VARIABLE _GPGME_CFLAGS ) |
168 |
|
169 |
@@ -233,7 +193,7 @@ |
170 |
string( REGEX REPLACE " *-I" ";" GPGME_INCLUDES "${_GPGME_CFLAGS}" ) |
171 |
endif() |
172 |
|
173 |
- foreach ( _flavour vanilla pthread pth ) |
174 |
+ foreach ( _flavour vanilla ) |
175 |
if ( _gpgme_config_${_flavour}_libs ) |
176 |
|
177 |
set( _gpgme_library_dirs ) |
178 |
@@ -291,13 +251,11 @@ |
179 |
endforeach( _flavour ) |
180 |
|
181 |
# ensure that they are cached |
182 |
- # This comment above doesn't make sense, the four following lines seem to do nothing. Alex |
183 |
+ # This comment above doesn't make sense, the two following lines seem to do nothing. Alex |
184 |
set( GPGME_INCLUDES ${GPGME_INCLUDES} ) |
185 |
set( GPGME_VANILLA_LIBRARIES ${GPGME_VANILLA_LIBRARIES} ) |
186 |
- set( GPGME_PTHREAD_LIBRARIES ${GPGME_PTHREAD_LIBRARIES} ) |
187 |
- set( GPGME_PTH_LIBRARIES ${GPGME_PTH_LIBRARIES} ) |
188 |
|
189 |
- if ( GPGME_VANILLA_FOUND OR GPGME_PTHREAD_FOUND OR GPGME_PTH_FOUND ) |
190 |
+ if ( GPGME_VANILLA_FOUND ) |
191 |
set( GPGME_FOUND true ) |
192 |
else() |
193 |
set( GPGME_FOUND false ) |
194 |
@@ -313,14 +271,10 @@ |
195 |
|
196 |
# these are Windows-only: |
197 |
set( GPGME_GLIB_FOUND false ) |
198 |
- set( GPGME_QT_FOUND false ) |
199 |
set( HAVE_GPGME_GLIB 0 ) |
200 |
- set( HAVE_GPGME_QT 0 ) |
201 |
|
202 |
macro_bool_to_01( GPGME_FOUND HAVE_GPGME ) |
203 |
macro_bool_to_01( GPGME_VANILLA_FOUND HAVE_GPGME_VANILLA ) |
204 |
- macro_bool_to_01( GPGME_PTHREAD_FOUND HAVE_GPGME_PTHREAD ) |
205 |
- macro_bool_to_01( GPGME_PTH_FOUND HAVE_GPGME_PTH ) |
206 |
|
207 |
endif() # WIN32 | Unix |
208 |
|
209 |
@@ -335,20 +289,8 @@ |
210 |
set( _gpgme_flavours "${_gpgme_flavours} Glib" ) |
211 |
endif() |
212 |
|
213 |
-if ( GPGME_QT_FOUND ) |
214 |
- set( _gpgme_flavours "${_gpgme_flavours} Qt" ) |
215 |
-endif() |
216 |
- |
217 |
-if ( GPGME_PTHREAD_FOUND ) |
218 |
- set( _gpgme_flavours "${_gpgme_flavours} pthread" ) |
219 |
-endif() |
220 |
- |
221 |
-if ( GPGME_PTH_FOUND ) |
222 |
- set( _gpgme_flavours "${_gpgme_flavours} pth" ) |
223 |
-endif() |
224 |
- |
225 |
# determine the library in one of the found flavours, can be reused e.g. by FindQgpgme.cmake, Alex |
226 |
-foreach(_currentFlavour vanilla glib qt pth pthread) |
227 |
+foreach(_currentFlavour vanilla glib) |
228 |
if(NOT GPGME_LIBRARY_DIR) |
229 |
get_filename_component(GPGME_LIBRARY_DIR "${_gpgme_${_currentFlavour}_lib}" PATH) |
230 |
endif() |
231 |
--- /cmake/modules/FindQGpgme.cmake |
232 |
+++ /cmake/modules/FindQGpgme.cmake |
233 |
@@ -12,13 +12,8 @@ |
234 |
|
235 |
if(GPGME_FOUND) |
236 |
|
237 |
- if ( WIN32 ) |
238 |
- find_library(_QGPGME_EXTRA_LIBRARY gpgme++ |
239 |
- HINTS ${GPGME_LIBRARY_DIR}) |
240 |
- else ( WIN32 ) |
241 |
- find_library(_QGPGME_EXTRA_LIBRARY gpgme++-pthread |
242 |
- HINTS ${GPGME_LIBRARY_DIR}) |
243 |
- endif() |
244 |
+ find_library(_QGPGME_EXTRA_LIBRARY gpgme++ |
245 |
+ HINTS ${GPGME_LIBRARY_DIR}) |
246 |
|
247 |
find_library(QGPGME_LIBRARY qgpgme |
248 |
HINTS ${GPGME_LIBRARY_DIR}) |
249 |
@@ -31,11 +26,7 @@ |
250 |
HINTS "${_QGPGME_PREFIX}/include" ) |
251 |
endif() |
252 |
|
253 |
- if ( WIN32 ) |
254 |
- set(QGPGME_LIBRARIES ${QGPGME_LIBRARY} ${_QGPGME_EXTRA_LIBRARY} ${GPGME_VANILLA_LIBRARIES} ${GPGME_QT_LIBRARIES}) |
255 |
- else ( WIN32 ) |
256 |
- set(QGPGME_LIBRARIES ${QGPGME_LIBRARY} ${_QGPGME_EXTRA_LIBRARY} ${GPGME_PTHREAD_LIBRARIES}) |
257 |
- endif() |
258 |
+ set(QGPGME_LIBRARIES ${QGPGME_LIBRARY} ${_QGPGME_EXTRA_LIBRARY} ${GPGME_VANILLA_LIBRARIES}) |
259 |
|
260 |
endif() |
261 |
|
262 |
--- /gpgme++/CMakeLists.txt |
263 |
+++ /gpgme++/CMakeLists.txt |
264 |
@@ -10,9 +10,9 @@ |
265 |
|
266 |
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config-gpgme++.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-gpgme++.h ) |
267 |
|
268 |
-## gpgme comes in three flavours on each of the platforms: |
269 |
-## Windows: gpgme, gpgme-glib, gpgme-qt |
270 |
-## Unix: gpgme, gpgme-pthread, gpgme-pth |
271 |
+## gpgme comes in these flavours on each of the platforms: |
272 |
+## Windows: gpgme, gpgme-glib |
273 |
+## Unix: gpgme |
274 |
## We're building corresponding gpgme++ flavours |
275 |
|
276 |
set(gpgme_LIB_SRCS |
277 |
@@ -75,47 +75,6 @@ |
278 |
install(TARGETS gpgmepp-glib EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS} ) |
279 |
endif() |
280 |
|
281 |
- |
282 |
-if ( GPGME_QT_FOUND ) |
283 |
- add_library( gpgmepp-qt ${LIBRARY_TYPE} ${gpgme_LIB_SRCS} context_qt.cpp ) |
284 |
- target_link_libraries( gpgmepp-qt ${GPGME_QT_LIBRARIES} ) |
285 |
- if(WIN32) |
286 |
- target_link_libraries( gpgmepp-qt ${GPGME_VANILLA_LIBRARIES} ) |
287 |
- endif() |
288 |
- set_target_properties( gpgmepp-qt PROPERTIES |
289 |
- VERSION ${_gpgmepp_version} |
290 |
- SOVERSION ${_gpgmepp_soversion} |
291 |
- OUTPUT_NAME gpgme++-qt DEFINE_SYMBOL gpgmepp_EXPORTS |
292 |
- ) |
293 |
- get_target_property( GPGMEPP_QT_LIBRARY gpgmepp LOCATION ) |
294 |
- install(TARGETS gpgmepp-qt EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS} ) |
295 |
-endif() |
296 |
- |
297 |
- |
298 |
-if ( GPGME_PTHREAD_FOUND ) |
299 |
- add_library( gpgmepp-pthread ${LIBRARY_TYPE} ${gpgme_LIB_SRCS} context_vanilla.cpp ) |
300 |
- target_link_libraries( gpgmepp-pthread ${GPGME_PTHREAD_LIBRARIES} ) |
301 |
- set_target_properties( gpgmepp-pthread PROPERTIES |
302 |
- VERSION ${_gpgmepp_version} |
303 |
- SOVERSION ${_gpgmepp_soversion} |
304 |
- OUTPUT_NAME gpgme++-pthread DEFINE_SYMBOL gpgmepp_EXPORTS |
305 |
- ) |
306 |
- get_target_property( GPGMEPP_PTHREAD_LIBRARY gpgmepp LOCATION ) |
307 |
- install(TARGETS gpgmepp-pthread EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS} ) |
308 |
-endif() |
309 |
- |
310 |
-if ( GPGME_PTH_FOUND ) |
311 |
- add_library( gpgmepp-pth ${LIBRARY_TYPE} ${gpgme_LIB_SRCS} context_vanilla.cpp ) |
312 |
- target_link_libraries( gpgmepp-pth ${GPGME_PTH_LIBRARIES} ) |
313 |
- set_target_properties( gpgmepp-pth PROPERTIES |
314 |
- VERSION ${_gpgmepp_version} |
315 |
- SOVERSION ${_gpgmepp_soversion} |
316 |
- OUTPUT_NAME gpgme++-pth DEFINE_SYMBOL gpgmepp_EXPORTS |
317 |
- ) |
318 |
- get_target_property( GPGMEPP_PTH_LIBRARY gpgmepp LOCATION ) |
319 |
- install(TARGETS gpgmepp-pth EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS} ) |
320 |
-endif() |
321 |
- |
322 |
# this writes way too much, but do we care? |
323 |
EXPORT_LIBRARY_DEPENDENCIES( ${CMAKE_CURRENT_BINARY_DIR}/GpgmeppLibraryDepends.cmake ) |
324 |
|
325 |
--- /gpgme++/GpgmeppConfig.cmake.in |
326 |
+++ /gpgme++/GpgmeppConfig.cmake.in |
327 |
@@ -7,21 +7,6 @@ |
328 |
set( GPGMEPP_VANILLA_LIBRARIES "@GPGMEPP_VANILLA_LIBRARY@" ) |
329 |
endif() |
330 |
|
331 |
-set( GPGMEPP_PTHREAD_FOUND @HAVE_GPGME_PTHREAD@ ) |
332 |
-if ( GPGMEPP_PTHREAD_FOUND ) |
333 |
- set( GPGMEPP_PTHREAD_LIBRARIES "@GPGMEPP_PTHREAD_LIBRARY@" ) |
334 |
-endif() |
335 |
- |
336 |
-set( GPGMEPP_PTH_FOUND @HAVE_GPGME_PTH@ ) |
337 |
-if ( GPGMEPP_PTH_FOUND ) |
338 |
- set( GPGMEPP_PTH_LIBRARIES "@GPGMEPP_PTH_LIBRARY@" ) |
339 |
-endif() |
340 |
- |
341 |
-set( GPGMEPP_QT_FOUND @HAVE_GPGME_QT@ ) |
342 |
-if ( GPGMEPP_QT_FOUND ) |
343 |
- set( GPGMEPP_QT_LIBRARIES "@GPGMEPP_QT_LIBRARY@" ) |
344 |
-endif() |
345 |
- |
346 |
set( GPGMEPP_GLIB_FOUND @HAVE_GPGME_GLIB@ ) |
347 |
if ( GPGMEPP_GLIB_FOUND ) |
348 |
set( GPGMEPP_GLIB_LIBRARIES "@GPGMEPP_GLIB_LIBRARY@" ) |
349 |
--- /gpgme++/context_qt.cpp |
350 |
+++ /gpgme++/context_qt.cpp |
351 |
@@ -1,43 +0,0 @@ |
352 |
-/* |
353 |
- context_qt.cpp - wraps a gpgme key context, gpgme-qt-specific functions |
354 |
- Copyright (C) 2007 Klarälvdalens Datakonsult AB |
355 |
- |
356 |
- This file is part of GPGME++. |
357 |
- |
358 |
- GPGME++ is free software; you can redistribute it and/or |
359 |
- modify it under the terms of the GNU Library General Public |
360 |
- License as published by the Free Software Foundation; either |
361 |
- version 2 of the License, or (at your option) any later version. |
362 |
- |
363 |
- GPGME++ is distributed in the hope that it will be useful, |
364 |
- but WITHOUT ANY WARRANTY; without even the implied warranty of |
365 |
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
366 |
- GNU Library General Public License for more details. |
367 |
- |
368 |
- You should have received a copy of the GNU Library General Public License |
369 |
- along with GPGME++; see the file COPYING.LIB. If not, write to the |
370 |
- Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
371 |
- Boston, MA 02110-1301, USA. |
372 |
-*/ |
373 |
- |
374 |
-#include <config-gpgme++.h> |
375 |
- |
376 |
-#include <gpgme++/global.h> |
377 |
- |
378 |
-#ifdef HAVE_GPGME_GET_FDPTR |
379 |
-extern "C" QIODevice * gpgme_get_fdptr( int ); |
380 |
-#endif |
381 |
- |
382 |
-GIOChannel * GpgME::getGIOChannel( int ) { |
383 |
- return 0; |
384 |
-} |
385 |
- |
386 |
-QIODevice * GpgME::getQIODevice( int fd ) { |
387 |
-#ifdef HAVE_GPGME_GET_FDPTR |
388 |
- return gpgme_get_fdptr( fd ); |
389 |
-#else |
390 |
- (void)fd; |
391 |
- return 0; |
392 |
-#endif |
393 |
-} |
394 |
- |
395 |
--- /qgpgme/CMakeLists.txt |
396 |
+++ /qgpgme/CMakeLists.txt |
397 |
@@ -6,8 +6,7 @@ |
398 |
|
399 |
if ( WIN32 AND GPGME_VANILLA_FOUND ) |
400 |
|
401 |
- # on Windows, we require gpgme(-vanilla), which is thread-safe, |
402 |
- # and we don't provide gpgme-qt support |
403 |
+ # on Windows, we require gpgme(-vanilla), which is thread-safe |
404 |
|
405 |
set( _any_gpgme_found true ) |
406 |
set( _qgpgme_libgpgme gpgmepp ) |
407 |
@@ -15,14 +14,12 @@ |
408 |
|
409 |
endif() |
410 |
|
411 |
-if ( NOT WIN32 AND GPGME_PTHREAD_FOUND ) |
412 |
+if ( NOT WIN32 AND GPGME_VANILLA_FOUND ) |
413 |
|
414 |
- # on Unix, we requrie gpgme-pthread (for convenience, since vanilla |
415 |
- # gpgme isn't thread-aware, and we don't want to restrict clients |
416 |
- # of qgpgme to non-threaded useage of gpgme) |
417 |
+ # on Unix, we require gpgme(-vanilla), which is thread-safe |
418 |
|
419 |
set( _any_gpgme_found true ) |
420 |
- set( _qgpgme_libgpgme gpgmepp-pthread ) |
421 |
+ set( _qgpgme_libgpgme gpgmepp ) |
422 |
set( _qgpgme_extra_src eventloopinteractor.cpp eventloopinteractor_unix.cpp ) |
423 |
set( _qgpgme_extra_headers eventloopinteractor.h ) |
424 |
|
425 |
--- /qgpgme/tests/CMakeLists.txt |
426 |
+++ /qgpgme/tests/CMakeLists.txt |
427 |
@@ -1,11 +1,7 @@ |
428 |
-if ( WIN32 AND GPGME_VANILLA_FOUND ) |
429 |
+if ( GPGME_VANILLA_FOUND ) |
430 |
set( _qgpgme_libgpgme gpgmepp ) |
431 |
endif() |
432 |
|
433 |
-if ( NOT WIN32 AND GPGME_PTHREAD_FOUND ) |
434 |
- set( _qgpgme_libgpgme gpgmepp-pthread ) |
435 |
-endif() |
436 |
- |
437 |
set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} ) |
438 |
include_directories( ${GPGME_INCLUDES} ) |
439 |
include_directories( ${Boost_INCLUDE_DIR} ) |