aboutsummaryrefslogtreecommitdiff
path: root/gpgme-vala/CMakeLists.txt
diff options
context:
space:
mode:
authorfiaxh <git@mx.ax.lt>2017-03-12 02:49:53 +0100
committerfiaxh <git@mx.ax.lt>2017-03-12 02:52:43 +0100
commit7e1ecb34cb1eca2b74949c7ddc2ad52fb02e3a77 (patch)
tree1a7a479efffafcf5098798fd5ce8d815bf4503a9 /gpgme-vala/CMakeLists.txt
parent63fffcddce49e231e82ee60aef4a23a16caa931e (diff)
downloaddino-7e1ecb34cb1eca2b74949c7ddc2ad52fb02e3a77.tar.gz
dino-7e1ecb34cb1eca2b74949c7ddc2ad52fb02e3a77.zip
Move PGP support into plugin
Diffstat (limited to 'gpgme-vala/CMakeLists.txt')
-rw-r--r--gpgme-vala/CMakeLists.txt58
1 files changed, 0 insertions, 58 deletions
diff --git a/gpgme-vala/CMakeLists.txt b/gpgme-vala/CMakeLists.txt
deleted file mode 100644
index 98f6e72d..00000000
--- a/gpgme-vala/CMakeLists.txt
+++ /dev/null
@@ -1,58 +0,0 @@
-find_package(Vala REQUIRED)
-find_package(PkgConfig REQUIRED)
-find_package(GPGME REQUIRED)
-include(${VALA_USE_FILE})
-
-set(GPGME_VALA_PACKAGES
- gee-0.8
- glib-2.0
-)
-
-pkg_check_modules(GPGME_VALA REQUIRED ${GPGME_VALA_PACKAGES})
-
-vala_precompile(GPGME_VALA_C
-SOURCES
- "src/gpgme_helper.vala"
-CUSTOM_VAPIS
- "${CMAKE_CURRENT_SOURCE_DIR}/vapi/gpgme.vapi"
- "${CMAKE_CURRENT_SOURCE_DIR}/vapi/gpgme_public.vapi"
- "${CMAKE_CURRENT_SOURCE_DIR}/vapi/gpg-error.vapi"
-PACKAGES
- ${GPGME_VALA_PACKAGES}
-GENERATE_VAPI
- gpgme-vala
-GENERATE_HEADER
- gpgme-vala
-OPTIONS
- ${GLOBAL_DEBUG_FLAGS}
- --thread
-)
-
-set(CFLAGS ${VALA_CFLAGS} ${GPGME_VALA_CFLAGS} ${GPGME_CFLAGS} -I${CMAKE_CURRENT_SOURCE_DIR}/src)
-add_definitions(${CFLAGS})
-add_library(gpgme-vala SHARED ${GPGME_VALA_C} src/gpgme_fix.c)
-target_link_libraries(gpgme-vala ${GPGME_VALA_LIBRARIES} ${GPGME_LIBRARIES})
-
-add_custom_command(OUTPUT "${CMAKE_BINARY_DIR}/exports/gpgme_fix.h"
-COMMAND
- cp "${CMAKE_CURRENT_SOURCE_DIR}/src/gpgme_fix.h" "${CMAKE_BINARY_DIR}/exports/gpgme_fix.h"
-DEPENDS
- "${CMAKE_CURRENT_SOURCE_DIR}/src/gpgme_fix.h"
-COMMENT
- Copy header file gpgme_fix.h
-)
-
-add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/exports/gpgme.vapi
-COMMAND
- cat "${CMAKE_BINARY_DIR}/exports/gpgme-vala.vapi" "${CMAKE_CURRENT_SOURCE_DIR}/vapi/gpgme_public.vapi" > "${CMAKE_BINARY_DIR}/exports/gpgme.vapi"
-DEPENDS
- ${CMAKE_BINARY_DIR}/exports/gpgme-vala.vapi
- ${CMAKE_CURRENT_SOURCE_DIR}/vapi/gpgme_public.vapi
-)
-
-add_custom_target(gpgme-vapi
-DEPENDS
- ${CMAKE_BINARY_DIR}/exports/gpgme_fix.h
- ${CMAKE_BINARY_DIR}/exports/gpgme.vapi
-)
-