mirror of
https://github.com/nesbox/TIC-80.git
synced 2026-04-18 22:42:27 +00:00
* Initial Nintendo Switch Port * Switch: Enable CRT shader * Switch: Some QOL changes - hack: make the menu accessible with "+" - Invert Controller buttons A/B X/Y - Enable network log only for debug builds - Enable touchscreen mouse emulation Also add myself to the credits in README --------- Co-authored-by: Vadim Grigoruk <grigoruk@gmail.com>
46 lines
1.2 KiB
CMake
46 lines
1.2 KiB
CMake
################################
|
|
# SCHEME (S7)
|
|
################################
|
|
|
|
option(BUILD_WITH_SCHEME "Scheme Enabled" ${BUILD_WITH_ALL})
|
|
message("BUILD_WITH_SCHEME: ${BUILD_WITH_SCHEME}")
|
|
|
|
if(BUILD_WITH_SCHEME)
|
|
|
|
set(SCHEME_DIR ${THIRDPARTY_DIR}/s7)
|
|
set(SCHEME_SRC ${SCHEME_DIR}/s7.c)
|
|
|
|
list(APPEND SCHEME_SRC ${CMAKE_SOURCE_DIR}/src/api/scheme.c)
|
|
|
|
add_library(scheme ${TIC_RUNTIME} ${SCHEME_SRC})
|
|
|
|
if(NOT BUILD_STATIC)
|
|
set_target_properties(scheme PROPERTIES PREFIX "")
|
|
else()
|
|
target_compile_definitions(scheme INTERFACE TIC_BUILD_WITH_SCHEME=1)
|
|
endif()
|
|
|
|
target_link_libraries(scheme PRIVATE runtime)
|
|
|
|
set_target_properties(scheme PROPERTIES LINKER_LANGUAGE CXX)
|
|
target_include_directories(scheme
|
|
PUBLIC ${SCHEME_DIR}
|
|
PRIVATE
|
|
${CMAKE_SOURCE_DIR}/include
|
|
${CMAKE_SOURCE_DIR}/src
|
|
)
|
|
|
|
if (NINTENDO_3DS)
|
|
target_compile_definitions(scheme PRIVATE S7_N3DS)
|
|
endif()
|
|
|
|
if (NINTENDO_SWITCH)
|
|
target_compile_definitions(scheme PRIVATE S7_SWITCH)
|
|
endif()
|
|
|
|
if (BAREMETALPI)
|
|
target_compile_definitions(scheme PRIVATE S7_BAREMETALPI)
|
|
endif()
|
|
|
|
|
|
endif() |