Skip to content

Commit

Permalink
platform: Add COG_PLATFORM_HEADLESS cmake option
Browse files Browse the repository at this point in the history
This CMake option allows build Cog with/without the headless platform.
The headless platform has dependency with WPEBackend-FDO not desiderable
when you are not interested on that backend for example for the case of
the DRM with the WPEBacked-RDK.

Related to: c638d13
Signed-off-by: Pablo Saavedra <[email protected]>
(cherry picked from commit 98f39d5)
  • Loading branch information
psaavedra authored and aperezdc committed Sep 7, 2021
1 parent 3846ceb commit 5d52dd2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ option(COG_DBUS_SYSTEM_BUS "Expose remote control interface on system bus" OFF)
set(COG_DBUS_OWN_USER "" CACHE STRING
"Additional user allowed to own the well-known name on the system bus")

option(COG_PLATFORM_HEADLESS "Build the headless platform module" ON)
option(COG_PLATFORM_FDO "Build the FDO platform module" ON)
option(COG_PLATFORM_DRM "Build the DRM platform module" ON)
option(COG_PLATFORM_X11 "Build the X11 platform module" OFF)
Expand Down Expand Up @@ -215,7 +216,9 @@ if (BUILD_DOCS)
add_subdirectory(docs)
endif ()

add_subdirectory(platform/headless)
if (COG_PLATFORM_HEADLESS)
add_subdirectory(platform/headless)
endif ()
if (COG_PLATFORM_FDO)
add_subdirectory(platform/fdo)
endif ()
Expand Down

0 comments on commit 5d52dd2

Please sign in to comment.