File tree Expand file tree Collapse file tree
cmake/compile_definitions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -89,21 +89,19 @@ endif()
8989if (LIBDRM_FOUND)
9090 include_directories (SYSTEM ${LIBDRM_INCLUDE_DIRS} )
9191 list (APPEND PLATFORM_LIBRARIES ${LIBDRM_LIBRARIES} )
92+ if (${SUNSHINE_ENABLE_DRM} )
93+ add_compile_definitions (SUNSHINE_BUILD_DRM )
94+ list (APPEND PLATFORM_TARGET_FILES
95+ "${CMAKE_SOURCE_DIR } /src/platform/linux/kmsgrab.cpp" )
96+ list (APPEND SUNSHINE_DEFINITIONS EGL_NO_X11=1)
97+ endif ()
9298endif ()
9399
94- # drm
95- if (${SUNSHINE_ENABLE_DRM} )
100+ # Capabilities
101+ if (LINUX )
96102 find_package (LIBCAP REQUIRED )
97- else ()
98- set (LIBCAP_FOUND OFF )
99- endif ()
100- if (LIBDRM_FOUND AND LIBCAP_FOUND)
101- add_compile_definitions (SUNSHINE_BUILD_DRM )
102103 include_directories (SYSTEM ${LIBCAP_INCLUDE_DIRS} )
103104 list (APPEND PLATFORM_LIBRARIES ${LIBCAP_LIBRARIES} )
104- list (APPEND PLATFORM_TARGET_FILES
105- "${CMAKE_SOURCE_DIR } /src/platform/linux/kmsgrab.cpp" )
106- list (APPEND SUNSHINE_DEFINITIONS EGL_NO_X11=1)
107105endif ()
108106
109107# evdev
You can’t perform that action at this time.
0 commit comments