aboutsummaryrefslogtreecommitdiff
path: root/gpgme-vala
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2017-03-11 23:20:25 +0100
committerMarvin W <git@larma.de>2017-03-11 23:58:34 +0100
commitcd6b904e970291a63551d0f1d80bbd550e778ec8 (patch)
tree21842cccc9115462e4cd6cd23e37e8cca9e14523 /gpgme-vala
parent083df7e73775d8f81e380f12f6d63c2012a6b617 (diff)
downloaddino-cd6b904e970291a63551d0f1d80bbd550e778ec8.tar.gz
dino-cd6b904e970291a63551d0f1d80bbd550e778ec8.zip
CMake: merge created header+vapi files into a single directory
Diffstat (limited to 'gpgme-vala')
-rw-r--r--gpgme-vala/CMakeLists.txt20
1 files changed, 15 insertions, 5 deletions
diff --git a/gpgme-vala/CMakeLists.txt b/gpgme-vala/CMakeLists.txt
index a510d293..98f6e72d 100644
--- a/gpgme-vala/CMakeLists.txt
+++ b/gpgme-vala/CMakeLists.txt
@@ -24,7 +24,7 @@ GENERATE_VAPI
GENERATE_HEADER
gpgme-vala
OPTIONS
- -g
+ ${GLOBAL_DEBUG_FLAGS}
--thread
)
@@ -33,16 +33,26 @@ 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}/gpgme-vala/gpgme.vapi
+add_custom_command(OUTPUT "${CMAKE_BINARY_DIR}/exports/gpgme_fix.h"
COMMAND
- cat "${CMAKE_BINARY_DIR}/gpgme-vala/gpgme-vala.vapi" "${CMAKE_CURRENT_SOURCE_DIR}/vapi/gpgme_public.vapi" > "${CMAKE_BINARY_DIR}/gpgme-vala/gpgme.vapi"
+ cp "${CMAKE_CURRENT_SOURCE_DIR}/src/gpgme_fix.h" "${CMAKE_BINARY_DIR}/exports/gpgme_fix.h"
DEPENDS
- ${CMAKE_BINARY_DIR}/gpgme-vala/gpgme-vala.vapi
+ "${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}/gpgme-vala/gpgme.vapi
+ ${CMAKE_BINARY_DIR}/exports/gpgme_fix.h
+ ${CMAKE_BINARY_DIR}/exports/gpgme.vapi
)