mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-03-13 07:14:34 +00:00
build(cmake): add prep/init.cmake (#2375)
Co-authored-by: James Le Cuirot <chewi@aura-online.co.uk>
This commit is contained in:
parent
1ed22ab3b2
commit
59ce8deb97
@ -29,6 +29,9 @@ include(${CMAKE_MODULE_PATH}/prep/build_version.cmake)
|
|||||||
# cmake build flags
|
# cmake build flags
|
||||||
include(${CMAKE_MODULE_PATH}/prep/options.cmake)
|
include(${CMAKE_MODULE_PATH}/prep/options.cmake)
|
||||||
|
|
||||||
|
# initial prep
|
||||||
|
include(${CMAKE_MODULE_PATH}/prep/init.cmake)
|
||||||
|
|
||||||
# configure special package files, such as sunshine.desktop, Flatpak manifest, Portfile , etc.
|
# configure special package files, such as sunshine.desktop, Flatpak manifest, Portfile , etc.
|
||||||
include(${CMAKE_MODULE_PATH}/prep/special_package_configuration.cmake)
|
include(${CMAKE_MODULE_PATH}/prep/special_package_configuration.cmake)
|
||||||
|
|
||||||
|
@ -8,10 +8,6 @@ if(${SUNSHINE_BUILD_APPIMAGE})
|
|||||||
string(REPLACE "${CMAKE_INSTALL_PREFIX}" ".${CMAKE_INSTALL_PREFIX}" SUNSHINE_ASSETS_DIR_DEF ${SUNSHINE_ASSETS_DIR})
|
string(REPLACE "${CMAKE_INSTALL_PREFIX}" ".${CMAKE_INSTALL_PREFIX}" SUNSHINE_ASSETS_DIR_DEF ${SUNSHINE_ASSETS_DIR})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT DEFINED SUNSHINE_EXECUTABLE_PATH)
|
|
||||||
set(SUNSHINE_EXECUTABLE_PATH "sunshine")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# cuda
|
# cuda
|
||||||
set(CUDA_FOUND OFF)
|
set(CUDA_FOUND OFF)
|
||||||
if(${SUNSHINE_ENABLE_CUDA})
|
if(${SUNSHINE_ENABLE_CUDA})
|
||||||
|
9
cmake/prep/init.cmake
Normal file
9
cmake/prep/init.cmake
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
if (WIN32)
|
||||||
|
elseif (APPLE)
|
||||||
|
elseif (UNIX)
|
||||||
|
include(GNUInstallDirs)
|
||||||
|
|
||||||
|
if(NOT DEFINED SUNSHINE_EXECUTABLE_PATH)
|
||||||
|
set(SUNSHINE_EXECUTABLE_PATH "sunshine")
|
||||||
|
endif()
|
||||||
|
endif ()
|
@ -6,8 +6,6 @@ if (APPLE)
|
|||||||
configure_file(packaging/macos/sunshine.rb sunshine.rb @ONLY)
|
configure_file(packaging/macos/sunshine.rb sunshine.rb @ONLY)
|
||||||
endif()
|
endif()
|
||||||
elseif (UNIX)
|
elseif (UNIX)
|
||||||
include(GNUInstallDirs) # this needs to be included prior to configuring the desktop files
|
|
||||||
|
|
||||||
# configure the .desktop file
|
# configure the .desktop file
|
||||||
if(${SUNSHINE_BUILD_APPIMAGE})
|
if(${SUNSHINE_BUILD_APPIMAGE})
|
||||||
configure_file(packaging/linux/AppImage/sunshine.desktop sunshine.desktop @ONLY)
|
configure_file(packaging/linux/AppImage/sunshine.desktop sunshine.desktop @ONLY)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user