Commit 4565d18a authored by Milan Crha's avatar Milan Crha

Add an optionally built evolution-dbus-session tool

The tool runs an isolated D-Bus session, but it also passes D-Bus
messages between the "parent" D-Bus session and the isolated
D-Bus session. It can be used for example by Flatpak applications
to run an isolated D-Bus session for recent evolution-data-server
D-Bus services, while still being able to talk to requested
D-Bus interfaces from the "parent" D-Bus session.

Its build can be enabled with -DENABLE_DBUS_SESSION_TOOL=ON CMake
command argument.
parent 6022b2b7
......@@ -31,6 +31,7 @@ set(PROJECT_DISTCONFIGURE_PARAMS
-DENABLE_VALA_BINDINGS=ON
-DENABLE_INSTALLED_TESTS=ON
-DENABLE_GTK_DOC=ON
-DENABLE_DBUS_SESSION_TOOL=ON
-DWITH_PRIVATE_DOCS=ON
)
......@@ -992,6 +993,12 @@ if(ENABLE_VALA_BINDINGS)
endif(ENABLE_VALA_BINDINGS)
# ******************************
# D-Bus session tool, a Flatpak helper
# ******************************
add_printable_option(ENABLE_DBUS_SESSION_TOOL "Build evolution-dbus-session tool" OFF)
# Generate the ${PROJECT_NAME}-config.h file
CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/config.h.in ${CMAKE_BINARY_DIR}/${PROJECT_NAME}-config.h)
......
add_subdirectory(addressbook-export)
add_subdirectory(list-sources)
if(ENABLE_DBUS_SESSION_TOOL)
add_subdirectory(evolution-dbus-session)
endif(ENABLE_DBUS_SESSION_TOOL)
set(SOURCES
evolution-dbus-session.c
)
add_executable(evolution-dbus-session
${SOURCES}
)
target_compile_definitions(evolution-dbus-session PRIVATE
-DG_LOG_DOMAIN=\"evolution-dbus-session\"
)
target_compile_options(edataserver PUBLIC
${GNOME_PLATFORM_CFLAGS}
)
target_include_directories(evolution-dbus-session PUBLIC
${CMAKE_BINARY_DIR}
${CMAKE_BINARY_DIR}/src
${CMAKE_SOURCE_DIR}/src
${CMAKE_CURRENT_BINARY_DIR}
${GNOME_PLATFORM_INCLUDE_DIRS}
)
target_link_libraries(evolution-dbus-session
${GNOME_PLATFORM_LDFLAGS}
)
install(TARGETS evolution-dbus-session
DESTINATION ${privlibexecdir}
)
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment