summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorentin Noël <corentin.noel@collabora.com>2023-01-09 17:37:45 +0100
committerMilan Crha <mcrha@redhat.com>2023-01-09 17:40:21 +0100
commitf40ec49577ecf36f9788c43a7adbf374fcb0a7c7 (patch)
treec1d9efe74cb3984051c7bd024487bffafa5b5c44
parent32d3c54c6c68e2d50b652bf4bfc9204b97ae9f33 (diff)
downloadevolution-data-server-f40ec49577ecf36f9788c43a7adbf374fcb0a7c7.tar.gz
I#445 - libedataserverui4: (almost) empty GIR/VAPI file
Closes https://gitlab.gnome.org/GNOME/evolution-data-server/-/issues/445
-rw-r--r--src/libedataserverui/CMakeLists.txt14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/libedataserverui/CMakeLists.txt b/src/libedataserverui/CMakeLists.txt
index c2d250c0e..f780e1810 100644
--- a/src/libedataserverui/CMakeLists.txt
+++ b/src/libedataserverui/CMakeLists.txt
@@ -272,17 +272,27 @@ install(FILES ${HEADERS}
)
# create libedataserverui4/... in the build dir, thus .gir can find it
-file(COPY ${HEADERS}
+file(COPY ${HEADERS} ${SOURCES}
DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/libedataserverui${UI_VERSION}/
)
-set(gir_sources ${SOURCES} ${HEADERS})
+set(INSTALLED_GIR_SOURCES)
+foreach(_item IN LISTS HEADERS SOURCES)
+ if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${_item}")
+ list(APPEND INSTALLED_GIR_SOURCES "${CMAKE_CURRENT_BINARY_DIR}/libedataserverui${UI_VERSION}/${_item}")
+ else()
+ list(APPEND INSTALLED_GIR_SOURCES "${_item}")
+ endif()
+endforeach()
+
+set(gir_sources ${INSTALLED_GIR_SOURCES})
set(gir_identifies_prefixes E)
set(gir_includes GObject-2.0 Gio-2.0 Gtk-4.0 Soup-3.0)
set(gir_cflags
-DLIBEDATASERVERUI_COMPILATION
-I${CMAKE_BINARY_DIR}/src/calendar
-I${CMAKE_SOURCE_DIR}/src/calendar
+ -I${CMAKE_CURRENT_BINARY_DIR}/libedataserverui${UI_VERSION}
-I${CMAKE_CURRENT_BINARY_DIR}
)
set(gir_libdirs