mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-12-02 02:35:14 +00:00
Input methods seperatly added in CMakeLists
This commit is contained in:
1 parent
3134046bae
commit
85cc4da449
6 files changed
+14
-17
No files matched your search
+7
-3
@@ -9,7 +9,7 @@ set(MOONLIGHT_PATCH_VERSION 0)
|
||||
set(MOONLIGHT_VERSION ${MOONLIGHT_MAJOR_VERSION}.${MOONLIGHT_MINOR_VERSION}.${MOONLIGHT_PATCH_VERSION})
|
||||
|
||||
aux_source_directory(./src SRC_LIST)
|
||||
aux_source_directory(./src/input SRC_LIST)
|
||||
list(APPEND SRC_LIST ./src/input/evdev.c ./src/input/mapping.c ./src/input/udev.c)
|
||||
|
||||
set(MOONLIGHT_DEFINITIONS)
|
||||
|
||||
@@ -25,7 +25,7 @@ pkg_check_modules(UDEV REQUIRED libudev)
|
||||
pkg_check_modules(SDL sdl2>=2.0.4)
|
||||
pkg_check_modules(AVCODEC libavcodec)
|
||||
pkg_check_modules(AVUTIL libavutil)
|
||||
pkg_check_modules(XLIB x11-xcb)
|
||||
pkg_check_modules(XLIB x11)
|
||||
pkg_check_modules(LIBVA vdpau)
|
||||
pkg_check_modules(PULSE libpulse-simple)
|
||||
pkg_check_modules(CEC libcec>=3.0.0)
|
||||
@@ -61,7 +61,7 @@ endif()
|
||||
if (SOFTWARE_FOUND)
|
||||
list(APPEND SRC_LIST ./src/video/ffmpeg.c)
|
||||
if (SDL_FOUND)
|
||||
list(APPEND SRC_LIST ./src/video/sdl.c ./src/audio/sdl.c)
|
||||
list(APPEND SRC_LIST ./src/video/sdl.c ./src/audio/sdl.c ./src/input/sdl.c)
|
||||
list(APPEND MOONLIGHT_DEFINITIONS HAVE_SDL)
|
||||
list(APPEND MOONLIGHT_OPTIONS SDL)
|
||||
endif()
|
||||
@@ -94,6 +94,10 @@ if (PULSE_FOUND)
|
||||
list(APPEND MOONLIGHT_OPTIONS PULSE)
|
||||
endif()
|
||||
|
||||
if (CEC_FOUND)
|
||||
list(APPEND SRC_LIST ./src/input/cec.c)
|
||||
endif()
|
||||
|
||||
include_directories("${PROJECT_BINARY_DIR}")
|
||||
|
||||
add_subdirectory(libgamestream)
|
||||
|
||||
Reference in new issue
Block a user