Skip to content

Commit

Permalink
build: glob linking input/server
Browse files Browse the repository at this point in the history
  • Loading branch information
Hazer committed Jun 1, 2024
1 parent 5f9089a commit 2fc2042
Showing 1 changed file with 10 additions and 31 deletions.
41 changes: 10 additions & 31 deletions cmake/compile_definitions/common.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ list(APPEND PLATFORM_TARGET_FILES ${NVENC_SOURCES})
configure_file("${CMAKE_SOURCE_DIR}/src/version.h.in" version.h @ONLY)
include_directories("${CMAKE_CURRENT_BINARY_DIR}") # required for importing version.h

file(GLOB_RECURSE INPUT_SOURCES
${CMAKE_SOURCE_DIR}/src/input/*.h
${CMAKE_SOURCE_DIR}/src/input/*.cpp)

file(GLOB_RECURSE SERVER_SOURCES
${CMAKE_SOURCE_DIR}/src/server/*.h
${CMAKE_SOURCE_DIR}/src/server/*.cpp)

set(SUNSHINE_TARGET_FILES
"${CMAKE_SOURCE_DIR}/third-party/nanors/rs.c"
"${CMAKE_SOURCE_DIR}/third-party/nanors/rs.h"
Expand All @@ -56,37 +64,6 @@ set(SUNSHINE_TARGET_FILES
"${CMAKE_SOURCE_DIR}/third-party/moonlight-common-c/src/RtspParser.c"
"${CMAKE_SOURCE_DIR}/third-party/moonlight-common-c/src/Video.h"
"${CMAKE_SOURCE_DIR}/third-party/tray/src/tray.h"
"${CMAKE_SOURCE_DIR}/src/input/common.cpp"
"${CMAKE_SOURCE_DIR}/src/input/common.h"
"${CMAKE_SOURCE_DIR}/src/input/gamepad.cpp"
"${CMAKE_SOURCE_DIR}/src/input/gamepad.h"
"${CMAKE_SOURCE_DIR}/src/input/keyboard.cpp"
"${CMAKE_SOURCE_DIR}/src/input/keyboard.h"
"${CMAKE_SOURCE_DIR}/src/input/init.h"
"${CMAKE_SOURCE_DIR}/src/input/mouse.cpp"
"${CMAKE_SOURCE_DIR}/src/input/mouse.h"
"${CMAKE_SOURCE_DIR}/src/input/pen.cpp"
"${CMAKE_SOURCE_DIR}/src/input/pen.h"
"${CMAKE_SOURCE_DIR}/src/input/platform_input.cpp"
"${CMAKE_SOURCE_DIR}/src/input/platform_input.h"
"${CMAKE_SOURCE_DIR}/src/input/processor.cpp"
"${CMAKE_SOURCE_DIR}/src/input/processor.h"
"${CMAKE_SOURCE_DIR}/src/input/touch.cpp"
"${CMAKE_SOURCE_DIR}/src/input/touch.h"
"${CMAKE_SOURCE_DIR}/src/server/confighttp.cpp"
"${CMAKE_SOURCE_DIR}/src/server/confighttp.h"
"${CMAKE_SOURCE_DIR}/src/server/crypto.cpp"
"${CMAKE_SOURCE_DIR}/src/server/crypto.h"
"${CMAKE_SOURCE_DIR}/src/server/httpcommon.cpp"
"${CMAKE_SOURCE_DIR}/src/server/httpcommon.h"
"${CMAKE_SOURCE_DIR}/src/server/network.cpp"
"${CMAKE_SOURCE_DIR}/src/server/network.h"
"${CMAKE_SOURCE_DIR}/src/server/nvhttp.cpp"
"${CMAKE_SOURCE_DIR}/src/server/nvhttp.h"
"${CMAKE_SOURCE_DIR}/src/server/rtsp.cpp"
"${CMAKE_SOURCE_DIR}/src/server/rtsp.h"
"${CMAKE_SOURCE_DIR}/src/server/upnp.cpp"
"${CMAKE_SOURCE_DIR}/src/server/upnp.h"
"${CMAKE_SOURCE_DIR}/src/cbs.cpp"
"${CMAKE_SOURCE_DIR}/src/utility.h"
"${CMAKE_SOURCE_DIR}/src/uuid.h"
Expand Down Expand Up @@ -123,6 +100,8 @@ set(SUNSHINE_TARGET_FILES
"${CMAKE_SOURCE_DIR}/src/round_robin.h"
"${CMAKE_SOURCE_DIR}/src/stat_trackers.h"
"${CMAKE_SOURCE_DIR}/src/stat_trackers.cpp"
${INPUT_SOURCES}
${SERVER_SOURCES}
${PLATFORM_TARGET_FILES})

if(NOT SUNSHINE_ASSETS_DIR_DEF)
Expand Down

0 comments on commit 2fc2042

Please sign in to comment.