[evolution-data-server] Build vala bindings of libedataserverui only if it's built as well
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Build vala bindings of libedataserverui only if it's built as well
- Date: Thu, 22 Dec 2016 10:38:31 +0000 (UTC)
commit 6ee4217087e25e0c60cd4807c789b492d8d3234f
Author: Milan Crha <mcrha redhat com>
Date: Thu Dec 22 11:38:02 2016 +0100
Build vala bindings of libedataserverui only if it's built as well
src/vala/CMakeLists.txt | 61 ++++++++++++++++++++++++++--------------------
1 files changed, 34 insertions(+), 27 deletions(-)
---
diff --git a/src/vala/CMakeLists.txt b/src/vala/CMakeLists.txt
index 06a2312..60e6e40 100644
--- a/src/vala/CMakeLists.txt
+++ b/src/vala/CMakeLists.txt
@@ -5,10 +5,15 @@ set(valafiles
${CMAKE_CURRENT_BINARY_DIR}/libebook-${API_VERSION}.vapi
${CMAKE_CURRENT_SOURCE_DIR}/libebook-contacts-${API_VERSION}.deps
${CMAKE_CURRENT_BINARY_DIR}/libebook-contacts-${API_VERSION}.vapi
- ${CMAKE_CURRENT_SOURCE_DIR}/libedataserverui-${API_VERSION}.deps
- ${CMAKE_CURRENT_BINARY_DIR}/libedataserverui-${API_VERSION}.vapi
)
+if(HAVE_GTK)
+ list(APPEND valafiles
+ ${CMAKE_CURRENT_SOURCE_DIR}/libedataserverui-${API_VERSION}.deps
+ ${CMAKE_CURRENT_BINARY_DIR}/libedataserverui-${API_VERSION}.vapi
+ )
+endif(HAVE_GTK)
+
add_custom_target(vala ALL)
# ***********************************
@@ -72,31 +77,33 @@ add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/libedataserver-${API_VERSI
# libedataserverui
# ***********************************
-set(gir_fullname ${CMAKE_BINARY_DIR}/src/libedataserverui/EDataServerUI-${API_VERSION}.gir)
-gir_girfilename_to_target(gir_deps EDataServerUI-${API_VERSION}.gir)
-
-add_dependencies(vala ${gir_deps})
-
-add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/libedataserverui-${API_VERSION}.vapi
- COMMAND ${VAPIGEN}
- --vapidir=${CMAKE_CURRENT_SOURCE_DIR}
- --vapidir=${CMAKE_CURRENT_BINARY_DIR}
- --girdir=${CMAKE_BINARY_DIR}/src/camel
- --girdir=${CMAKE_BINARY_DIR}/src/libedataserver
- --pkg libedataserver-${API_VERSION}
- --pkg gio-2.0
- --pkg gtk+-3.0
- --pkg libxml-2.0
- --pkg libsoup-2.4
- --pkg posix
- --library libedataserverui-${API_VERSION}
- --metadatadir=${CMAKE_CURRENT_SOURCE_DIR}
- ${gir_fullname}
- DEPENDS libedataserverui-${API_VERSION}.deps
- ${CMAKE_CURRENT_BINARY_DIR}/libedataserver-${API_VERSION}.vapi
- ${gir_fullname}
- ${gir_deps}
-)
+if(HAVE_GTK)
+ set(gir_fullname ${CMAKE_BINARY_DIR}/src/libedataserverui/EDataServerUI-${API_VERSION}.gir)
+ gir_girfilename_to_target(gir_deps EDataServerUI-${API_VERSION}.gir)
+
+ add_dependencies(vala ${gir_deps})
+
+ add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/libedataserverui-${API_VERSION}.vapi
+ COMMAND ${VAPIGEN}
+ --vapidir=${CMAKE_CURRENT_SOURCE_DIR}
+ --vapidir=${CMAKE_CURRENT_BINARY_DIR}
+ --girdir=${CMAKE_BINARY_DIR}/src/camel
+ --girdir=${CMAKE_BINARY_DIR}/src/libedataserver
+ --pkg libedataserver-${API_VERSION}
+ --pkg gio-2.0
+ --pkg gtk+-3.0
+ --pkg libxml-2.0
+ --pkg libsoup-2.4
+ --pkg posix
+ --library libedataserverui-${API_VERSION}
+ --metadatadir=${CMAKE_CURRENT_SOURCE_DIR}
+ ${gir_fullname}
+ DEPENDS libedataserverui-${API_VERSION}.deps
+ ${CMAKE_CURRENT_BINARY_DIR}/libedataserver-${API_VERSION}.vapi
+ ${gir_fullname}
+ ${gir_deps}
+ )
+endif(HAVE_GTK)
# ***********************************
# libebook-contacts
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]