mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-14 18:57:07 -07:00
Add Nintendo Switch Borealis GUI (#349)
This commit is contained in:
parent
e83cb04049
commit
f7c83e8416
34 changed files with 3470 additions and 124 deletions
46
switch/CMakeLists.txt
Normal file
46
switch/CMakeLists.txt
Normal file
|
@ -0,0 +1,46 @@
|
|||
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
|
||||
find_package(FFMPEG REQUIRED COMPONENTS avcodec avutil swscale)
|
||||
find_library(SDL2 SDL2)
|
||||
find_library(SWRESAMPLE swresample)
|
||||
|
||||
# find -type f | grep -P '\.(h|cpp)$' | sed 's#\./#\t\t#g'
|
||||
add_executable(chiaki WIN32
|
||||
src/discoverymanager.cpp
|
||||
src/settings.cpp
|
||||
src/io.cpp
|
||||
src/host.cpp
|
||||
src/main.cpp
|
||||
src/gui.cpp)
|
||||
|
||||
target_include_directories(chiaki PRIVATE include)
|
||||
|
||||
target_link_libraries(chiaki
|
||||
chiaki-lib
|
||||
borealis
|
||||
${SDL2}
|
||||
FFMPEG::avcodec
|
||||
FFMPEG::avutil
|
||||
FFMPEG::swscale
|
||||
${SWRESAMPLE}
|
||||
${SWSCALE})
|
||||
|
||||
# OS links
|
||||
if(CHIAKI_SWITCH_ENABLE_LINUX)
|
||||
target_link_libraries(chiaki dl)
|
||||
else()
|
||||
# libnx is forced by the switch toolchain
|
||||
find_library(Z z)
|
||||
find_library(GLAPI glapi)
|
||||
find_library(DRM_NOUVEAU drm_nouveau)
|
||||
target_link_libraries(chiaki ${Z} ${GLAPI} ${DRM_NOUVEAU})
|
||||
endif()
|
||||
|
||||
install(TARGETS chiaki
|
||||
RUNTIME DESTINATION bin
|
||||
BUNDLE DESTINATION bin)
|
||||
|
||||
if(CHIAKI_ENABLE_SWITCH AND NOT CHIAKI_SWITCH_ENABLE_LINUX)
|
||||
add_nro_target(chiaki "chiaki" "Chiaki team" "${CHIAKI_VERSION}" "${CMAKE_SOURCE_DIR}/switch/res/icon.jpg" "${CMAKE_SOURCE_DIR}/switch/res")
|
||||
endif()
|
Loading…
Add table
Add a link
Reference in a new issue