File tree Expand file tree Collapse file tree 4 files changed +20
-1
lines changed
Expand file tree Collapse file tree 4 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 2222[submodule "ext/speexdsp "]
2323 path = ext/speexdsp
2424 url = https://github.com/xiph/speexdsp.git
25+ [submodule "ext/SDL "]
26+ path = ext/SDL
27+ url = https://github.com/libsdl-org/SDL.git
Original file line number Diff line number Diff line change @@ -54,7 +54,9 @@ add_executable(emu
5454 ${CMAKE_CURRENT_BINARY_DIR} /version.c
5555)
5656target_link_libraries (emu
57- PRIVATE common ui imgui-docking imgui-toggle speex-resampler )
57+ PRIVATE common ui
58+ imgui-docking imgui-toggle speex-resampler
59+ SDL3::SDL3 )
5860
5961target_compile_definitions (emu PUBLIC CHIPS_USE_UI )
6062
Original file line number Diff line number Diff line change @@ -38,3 +38,16 @@ target_compile_definitions(speex-resampler PUBLIC
3838 RANDOM_PREFIX=x65_
3939 FLOATING_POINT
4040)
41+
42+ # SDL3 options (keep the vendor build minimal)
43+ set (SDL_SHARED OFF CACHE BOOL "" FORCE )
44+ set (SDL_STATIC ON CACHE BOOL "" FORCE )
45+ set (SDL_DISABLE_INSTALL ON CACHE BOOL "" FORCE )
46+ set (SDL_TESTS OFF CACHE BOOL "" FORCE )
47+ set (SDL_EXAMPLES OFF CACHE BOOL "" FORCE )
48+ set (SDL_TEST_LIBRARY OFF CACHE BOOL "" FORCE )
49+ # don't need to show windows
50+ set (SDL_UNIX_CONSOLE_BUILD ON CACHE BOOL "" FORCE )
51+ set (SDL_VIDEO OFF CACHE BOOL "" FORCE )
52+ set (SDL_AUDIO OFF CACHE BOOL "" FORCE )
53+ add_subdirectory (SDL EXCLUDE_FROM_ALL )
You can’t perform that action at this time.
0 commit comments