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
|
@ -40,17 +40,28 @@ include(CPack)
|
|||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake;${CMAKE_CURRENT_SOURCE_DIR}/setsu/cmake")
|
||||
|
||||
# configure nintendo switch toolchain
|
||||
if(CHIAKI_ENABLE_SWITCH AND CHIAKI_ENABLE_SWITCH_LINUX)
|
||||
# CHIAKI_ENABLE_SWITCH_LINUX is a special testing version
|
||||
# the aim is to troubleshoot nitendo switch chiaki verison
|
||||
# from a x86 linux os
|
||||
add_definitions(-DCHIAKI_ENABLE_SWITCH_LINUX)
|
||||
set(CMAKE_BUILD_TYPE Debug)
|
||||
elseif(CHIAKI_ENABLE_SWITCH)
|
||||
add_definitions(-D__SWITCH__)
|
||||
if(CHIAKI_ENABLE_SWITCH)
|
||||
# load switch.cmake toolchain form ./cmake folder
|
||||
# include(switch)
|
||||
# to compile borealis third party
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
# TODO check if android ... or other versions are enabled
|
||||
# force mbedtls as crypto lib
|
||||
set(CHIAKI_LIB_ENABLE_MBEDTLS ON)
|
||||
|
||||
if(CHIAKI_SWITCH_ENABLE_LINUX)
|
||||
# CHIAKI_SWITCH_ENABLE_LINUX is a special testing version
|
||||
# the aim is to troubleshoot nitendo switch chiaki verison
|
||||
# from a x86 linux os
|
||||
add_definitions(-DCHIAKI_SWITCH_ENABLE_LINUX)
|
||||
add_definitions(-DBOREALIS_RESOURCES="./switch/res/")
|
||||
set(CMAKE_BUILD_TYPE Debug)
|
||||
add_definitions(-DDEBUG_OPENGL)
|
||||
else()
|
||||
add_definitions(-D__SWITCH__)
|
||||
# use symbolic links to load font ..
|
||||
add_definitions(-DBOREALIS_RESOURCES="romfs:/")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(CHIAKI_USE_SYSTEM_JERASURE)
|
||||
|
@ -120,6 +131,5 @@ if(CHIAKI_ENABLE_ANDROID)
|
|||
endif()
|
||||
|
||||
if(CHIAKI_ENABLE_SWITCH)
|
||||
#TODO
|
||||
#add_subdirectory(switch)
|
||||
add_subdirectory(switch)
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue