[evolution-data-server/wip/mcrha/libical-glib] Add (disabled) vala binding definitions for libebackend
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/wip/mcrha/libical-glib] Add (disabled) vala binding definitions for libebackend
- Date: Thu, 25 Apr 2019 16:13:55 +0000 (UTC)
commit 56d8d6f9596f6a05257fe2cb8b04ce7dfc6763b5
Author: Milan Crha <mcrha redhat com>
Date: Thu Apr 25 18:14:49 2019 +0200
Add (disabled) vala binding definitions for libebackend
src/vala/CMakeLists.txt | 45 ++++++++++++++++++++++++-------------------
src/vala/libebackend-1.2.deps | 4 ++++
2 files changed, 29 insertions(+), 20 deletions(-)
---
diff --git a/src/vala/CMakeLists.txt b/src/vala/CMakeLists.txt
index d8e45f9e6..e72965fc9 100644
--- a/src/vala/CMakeLists.txt
+++ b/src/vala/CMakeLists.txt
@@ -1,5 +1,6 @@
# disabled until some issues are fixed;
# when fixed, then remove the conditions below and build the vala bindings unconditionally
+set(ENABLE_EBACKEND 0)
set(ENABLE_DATACAL 0)
set(ENABLE_DATABOOK 0)
@@ -16,6 +17,13 @@ set(valafiles
${CMAKE_CURRENT_BINARY_DIR}/libecal-${CAL_API_VERSION}.vapi
)
+if(ENABLE_EBACKEND)
+ list(APPEND valafiles
+ ${CMAKE_CURRENT_SOURCE_DIR}/libebackend-${API_VERSION}.deps
+ ${CMAKE_CURRENT_BINARY_DIR}/libebackend-${API_VERSION}.vapi
+ )
+endif(ENABLE_EBACKEND)
+
if(ENABLE_DATACAL)
list(APPEND valafiles
${CMAKE_CURRENT_SOURCE_DIR}/libedata-cal-${CAL_API_VERSION}.deps
@@ -131,68 +139,65 @@ if(HAVE_GTK)
endif(HAVE_GTK)
# ***********************************
-# libebook-contacts
+# libebackend
# ***********************************
-set(gir_fullname ${CMAKE_BINARY_DIR}/src/addressbook/libebook-contacts/EBookContacts-${API_VERSION}.gir)
-gir_girfilename_to_target(gir_deps EBookContacts-${API_VERSION}.gir)
+set(gir_fullname ${CMAKE_BINARY_DIR}/src/libebackend/EBackend-${API_VERSION}.gir)
+gir_girfilename_to_target(gir_deps EBackend-${API_VERSION}.gir)
add_dependencies(vala ${gir_deps})
-add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/libebook-contacts-${API_VERSION}.vapi
+add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/libebackend-${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
+ --girdir=${CMAKE_BINARY_DIR}/src/libebackend
--girdir=${SHARE_INSTALL_PREFIX}/gir-1.0
--pkg libedataserver-${API_VERSION}
--pkg gio-2.0
--pkg libxml-2.0
--pkg libsoup-2.4
--pkg posix
- --library libebook-contacts-${API_VERSION}
+ --library libebackend-${API_VERSION}
--metadatadir=${CMAKE_CURRENT_SOURCE_DIR}
${gir_fullname}
- ${CMAKE_CURRENT_SOURCE_DIR}/libebook-contacts-${API_VERSION}-custom.vala
- DEPENDS libebook-contacts-${API_VERSION}.deps
- libebook-contacts-${API_VERSION}-custom.vala
+ DEPENDS libebackend-${API_VERSION}.deps
${CMAKE_CURRENT_BINARY_DIR}/libedataserver-${API_VERSION}.vapi
+ ${CMAKE_CURRENT_BINARY_DIR}/libebackend-${API_VERSION}.vapi
${gir_fullname}
${gir_deps}
)
# ***********************************
-# libedata-book
+# libebook-contacts
# ***********************************
-set(gir_fullname ${CMAKE_BINARY_DIR}/src/addressbook/libedata-book/EDataBook-${API_VERSION}.gir)
-gir_girfilename_to_target(gir_deps EDataBook-${API_VERSION}.gir)
+set(gir_fullname ${CMAKE_BINARY_DIR}/src/addressbook/libebook-contacts/EBookContacts-${API_VERSION}.gir)
+gir_girfilename_to_target(gir_deps EBookContacts-${API_VERSION}.gir)
add_dependencies(vala ${gir_deps})
-add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/libedata-book-${API_VERSION}.vapi
+add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/libebook-contacts-${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
- --girdir=${CMAKE_BINARY_DIR}/src/addressbook/libebook
- --girdir=${CMAKE_BINARY_DIR}/src/addressbook/libebook-contacts
+ --girdir=${SHARE_INSTALL_PREFIX}/gir-1.0
--pkg libedataserver-${API_VERSION}
- --pkg libebook-${API_VERSION}
- --pkg libebook-contacts-${API_VERSION}
--pkg gio-2.0
--pkg libxml-2.0
--pkg libsoup-2.4
--pkg posix
- --library libedata-book-${API_VERSION}
+ --library libebook-contacts-${API_VERSION}
--metadatadir=${CMAKE_CURRENT_SOURCE_DIR}
${gir_fullname}
- DEPENDS libedata-book-${API_VERSION}.deps
+ ${CMAKE_CURRENT_SOURCE_DIR}/libebook-contacts-${API_VERSION}-custom.vala
+ DEPENDS libebook-contacts-${API_VERSION}.deps
+ libebook-contacts-${API_VERSION}-custom.vala
${CMAKE_CURRENT_BINARY_DIR}/libedataserver-${API_VERSION}.vapi
- ${CMAKE_CURRENT_BINARY_DIR}/libebook-${API_VERSION}.vapi
- ${CMAKE_CURRENT_BINARY_DIR}/libebook-contacts-${API_VERSION}.vapi
${gir_fullname}
${gir_deps}
)
diff --git a/src/vala/libebackend-1.2.deps b/src/vala/libebackend-1.2.deps
new file mode 100644
index 000000000..1f2b7da5d
--- /dev/null
+++ b/src/vala/libebackend-1.2.deps
@@ -0,0 +1,4 @@
+libedataserver-1.2
+libsoup-2.4
+libxml-2.0
+gio-2.0
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]