mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-05-27 18:59:47 -05:00
SAF for save files is a huge can of worms because they're managed in a more complicated way than asking the user to select an existing file, so I won't be touching save files for now.
19 lines
528 B
CMake
19 lines
528 B
CMake
set(LIBMGBA_ONLY ON)
|
|
set(USE_LZMA ON)
|
|
add_subdirectory(mgba EXCLUDE_FROM_ALL)
|
|
dolphin_disable_warnings(mgba)
|
|
|
|
target_compile_definitions(mgba PUBLIC HAVE_CRC32 ENABLE_VFS ENABLE_DIRECTORIES)
|
|
target_link_libraries(mgba ZLIB::ZLIB)
|
|
|
|
if(NOT MSVC)
|
|
target_compile_options(mgba PRIVATE -Wno-unused-parameter -Wno-unused-result -Wno-unused-variable)
|
|
endif()
|
|
|
|
if(ANDROID)
|
|
target_compile_definitions(mgba PUBLIC ENABLE_VFS_FD)
|
|
target_compile_definitions(mgba PRIVATE -Dfutimes=futimens)
|
|
endif()
|
|
|
|
add_library(mGBA::mgba ALIAS mgba)
|