mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-28 01:18:31 +00:00
cmake: Build the IPC irrespectively of the service or not
This commit is contained in:
parent
63701511eb
commit
986cde6750
|
@ -194,7 +194,8 @@ cmake_dependent_option(XRT_HAVE_DBUS "Enable dbus support (for BLE support)" ON
|
|||
cmake_dependent_option(XRT_FEATURE_COMPOSITOR_MAIN "Build main compositor host functionality" ON "XRT_HAVE_VULKAN; XRT_HAVE_WAYLAND OR XRT_HAVE_XCB OR ANDROID OR WIN32" OFF)
|
||||
cmake_dependent_option(XRT_HAVE_LIBBSD "Enable libbsd support" ON "LIBBSD_FOUND" OFF)
|
||||
cmake_dependent_option(XRT_FEATURE_OPENXR "Build OpenXR runtime target" ON "XRT_FEATURE_COMPOSITOR_MAIN" OFF)
|
||||
cmake_dependent_option(XRT_FEATURE_SERVICE "Enable separate service module for OpenXR runtime" ON "NOT WIN32 AND XRT_FEATURE_OPENXR" OFF)
|
||||
cmake_dependent_option(XRT_FEATURE_IPC "Enable the build of the IPC layer" ON "NOT WIN32" OFF)
|
||||
cmake_dependent_option(XRT_FEATURE_SERVICE "Enable separate service module for OpenXR runtime" ON "XRT_FEATURE_IPC AND XRT_FEATURE_OPENXR" OFF)
|
||||
cmake_dependent_option(XRT_HAVE_SYSTEMD "Enable systemd support (for socket activation of service)" ON "Systemd_FOUND AND XRT_FEATURE_SERVICE" OFF)
|
||||
cmake_dependent_option(XRT_INSTALL_SYSTEMD_UNIT_FILES "Install user unit files for systemd socket activation on installation" ON "XRT_HAVE_SYSTEMD" OFF)
|
||||
cmake_dependent_option(XRT_INSTALL_ABSOLUTE_SYSTEMD_UNIT_FILES "Use an absolute path to monado-system in installed user unit files for systemd socket activation" ON "XRT_INSTALL_SYSTEMD_UNIT_FILES" OFF)
|
||||
|
@ -418,6 +419,7 @@ message(STATUS "# KIMERA: ${XRT_HAVE_KIMERA_SLAM}")
|
|||
message(STATUS "# BASALT: ${XRT_HAVE_BASALT_SLAM}")
|
||||
message(STATUS "# SLAM: ${XRT_HAVE_SLAM}")
|
||||
message(STATUS "#")
|
||||
message(STATUS "# FEATURE_IPC: ${XRT_FEATURE_IPC}")
|
||||
message(STATUS "# FEATURE_COMPOSITOR_MAIN: ${XRT_FEATURE_COMPOSITOR_MAIN}")
|
||||
message(STATUS "# FEATURE_SERVICE: ${XRT_FEATURE_SERVICE}")
|
||||
message(STATUS "# FEATURE_OPENXR: ${XRT_FEATURE_OPENXR}")
|
||||
|
@ -457,3 +459,6 @@ message(STATUS "#####----- Config -----#####")
|
|||
if(XRT_FEATURE_SERVICE AND NOT XRT_FEATURE_OPENXR)
|
||||
message(FATAL_ERROR "XRT_FEATURE_SERVICE requires XRT_FEATURE_OPENXR to be enabled")
|
||||
endif()
|
||||
if(XRT_FEATURE_SERVICE AND NOT XRT_FEATURE_IPC)
|
||||
message(FATAL_ERROR "XRT_FEATURE_SERVICE requires XRT_FEATURE_IPC to be enabled")
|
||||
endif()
|
||||
|
|
|
@ -8,6 +8,6 @@ add_subdirectory(compositor)
|
|||
add_subdirectory(state_trackers)
|
||||
add_subdirectory(targets)
|
||||
|
||||
if(XRT_FEATURE_SERVICE)
|
||||
if(XRT_FEATURE_IPC)
|
||||
add_subdirectory(ipc)
|
||||
endif()
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright 2020, Collabora, Ltd.
|
||||
// Copyright 2020-2021, Collabora, Ltd.
|
||||
// SPDX-License-Identifier: BSL-1.0
|
||||
/*!
|
||||
* @file
|
||||
|
@ -9,6 +9,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#cmakedefine XRT_FEATURE_IPC
|
||||
|
||||
#cmakedefine XRT_FEATURE_COMPOSITOR_MAIN
|
||||
|
||||
#cmakedefine XRT_FEATURE_SERVICE
|
||||
|
|
Loading…
Reference in a new issue