Recover 16 modified and 6 previously untracked integration files. All 22 source SHA-256s match the pre-publication StarletOS snapshot. Add handoff instructions, byte-preserving attributes and private backup exclusion. This commit publishes existing behavior; it does not claim a new full build or hardware qualification. The two preceding local commits and staged files were screened before publication.
38 lines
1.6 KiB
CMake
38 lines
1.6 KiB
CMake
enable_testing()
|
|
add_custom_target(unittests)
|
|
add_custom_command(TARGET unittests POST_BUILD COMMAND ${CMAKE_CTEST_COMMAND} "--output-on-failure")
|
|
|
|
string(APPEND CMAKE_RUNTIME_OUTPUT_DIRECTORY "/Tests")
|
|
|
|
add_executable(tests EXCLUDE_FROM_ALL UnitTestsMain.cpp StubHost.cpp)
|
|
set_target_properties(tests PROPERTIES FOLDER Tests)
|
|
target_link_libraries(tests PRIVATE fmt::fmt gtest::gtest core uicommon)
|
|
add_test(NAME tests COMMAND tests)
|
|
add_custom_command(TARGET tests POST_BUILD
|
|
COMMAND ${CMAKE_COMMAND} -E remove_directory "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Sys"
|
|
COMMAND ${CMAKE_COMMAND} -E copy_directory "${CMAKE_SOURCE_DIR}/Data/Sys" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Sys"
|
|
)
|
|
add_dependencies(unittests tests)
|
|
|
|
# Runs a real Starlet ELF through the fork's CPU and SRAM bus without NAND or a frontend.
|
|
add_executable(StarletBootstrapProbe EXCLUDE_FROM_ALL
|
|
${CMAKE_SOURCE_DIR}/Tools/StarletBootstrapProbe/StarletBootstrapProbe.cpp StubHost.cpp)
|
|
target_link_libraries(StarletBootstrapProbe PRIVATE fmt::fmt core uicommon)
|
|
|
|
macro(add_dolphin_test target)
|
|
add_library(${target} OBJECT ${ARGN})
|
|
target_link_libraries(${target} PUBLIC fmt::fmt gtest::gtest PRIVATE core uicommon)
|
|
target_link_libraries(tests PRIVATE ${target})
|
|
endmacro()
|
|
|
|
add_subdirectory(Common)
|
|
add_subdirectory(Core)
|
|
add_subdirectory(VideoCommon)
|
|
|
|
# Opt-in local trace qualification; never starts a console or accesses a NAND dump.
|
|
if(WIN32 AND _M_X86_64)
|
|
add_executable(TraceProbeP1 EXCLUDE_FROM_ALL
|
|
${CMAKE_SOURCE_DIR}/Tools/PerformanceTrace/TraceProbeP1.cpp StubHost.cpp)
|
|
target_link_libraries(TraceProbeP1 PRIVATE fmt::fmt core uicommon)
|
|
endif()
|