2010-11-01 16:47:02 +01:00
|
|
|
add_subdirectory(AudioCommon)
|
|
|
|
add_subdirectory(Common)
|
|
|
|
add_subdirectory(Core)
|
|
|
|
add_subdirectory(DiscIO)
|
|
|
|
add_subdirectory(InputCommon)
|
2014-10-04 21:12:15 +02:00
|
|
|
add_subdirectory(UICommon)
|
2010-11-01 16:47:02 +01:00
|
|
|
add_subdirectory(VideoCommon)
|
2013-09-11 05:12:54 +02:00
|
|
|
add_subdirectory(VideoBackends)
|
2014-09-14 21:03:07 +02:00
|
|
|
|
2018-10-24 10:14:50 +02:00
|
|
|
if(ENABLE_NOGUI)
|
|
|
|
add_subdirectory(DolphinNoGUI)
|
|
|
|
endif()
|
|
|
|
|
2021-12-03 22:40:19 +01:00
|
|
|
if(ENABLE_CLI_TOOL)
|
|
|
|
add_subdirectory(DolphinTool)
|
|
|
|
endif()
|
|
|
|
|
2018-07-07 00:40:15 +02:00
|
|
|
if(ENABLE_QT)
|
|
|
|
add_subdirectory(DolphinQt)
|
2015-11-27 09:33:07 +01:00
|
|
|
endif()
|
2019-01-18 15:31:14 +01:00
|
|
|
|
2019-05-08 21:17:30 +02:00
|
|
|
if (APPLE OR WIN32)
|
2019-02-25 23:08:03 +01:00
|
|
|
add_subdirectory(UpdaterCommon)
|
2019-05-08 21:17:30 +02:00
|
|
|
endif()
|
|
|
|
|
2022-03-15 23:40:13 +01:00
|
|
|
if (APPLE AND ENABLE_AUTOUPDATE)
|
2019-01-18 15:31:14 +01:00
|
|
|
add_subdirectory(MacUpdater)
|
|
|
|
endif()
|
2019-05-08 21:17:30 +02:00
|
|
|
|
2022-03-15 23:40:13 +01:00
|
|
|
if (WIN32 AND ENABLE_AUTOUPDATE)
|
2019-05-08 21:17:30 +02:00
|
|
|
add_subdirectory(WinUpdater)
|
|
|
|
endif()
|
2024-08-01 18:31:11 +02:00
|
|
|
|
|
|
|
if (APPLE AND ENABLE_QT)
|
|
|
|
set(DOLPHIN_MAC_BUNDLE "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Dolphin.app")
|
|
|
|
|
|
|
|
add_custom_target(build_final_bundle ALL
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E remove_directory
|
|
|
|
${DOLPHIN_MAC_BUNDLE}
|
|
|
|
|
|
|
|
COMMAND cp -R
|
|
|
|
${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/DolphinQt.app
|
|
|
|
${DOLPHIN_MAC_BUNDLE}
|
|
|
|
|
|
|
|
# HACK: The Updater does not support setting the executable bit on new files,
|
|
|
|
# so don't use the new executable name, and instead continue to use "Dolphin".
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E rename
|
|
|
|
${DOLPHIN_MAC_BUNDLE}/Contents/MacOS/DolphinQt
|
|
|
|
${DOLPHIN_MAC_BUNDLE}/Contents/MacOS/Dolphin
|
|
|
|
|
|
|
|
COMMAND plutil
|
|
|
|
-replace CFBundleExecutable -string Dolphin
|
|
|
|
${DOLPHIN_MAC_BUNDLE}/Contents/Info.plist
|
|
|
|
|
|
|
|
DEPENDS dolphin-emu)
|
|
|
|
|
|
|
|
if (ENABLE_AUTOUPDATE)
|
|
|
|
add_dependencies(build_final_bundle MacUpdater)
|
|
|
|
|
|
|
|
add_custom_command(TARGET build_final_bundle
|
|
|
|
POST_BUILD
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E make_directory
|
|
|
|
"${DOLPHIN_MAC_BUNDLE}/Contents/Helpers"
|
|
|
|
|
|
|
|
COMMAND cp -R
|
|
|
|
"$<TARGET_BUNDLE_DIR:MacUpdater>"
|
|
|
|
"${DOLPHIN_MAC_BUNDLE}/Contents/Helpers/Dolphin Updater.app")
|
|
|
|
|
|
|
|
if (MACOS_CODE_SIGNING)
|
|
|
|
add_custom_command(TARGET build_final_bundle
|
|
|
|
POST_BUILD
|
|
|
|
COMMAND "${CMAKE_SOURCE_DIR}/Tools/mac-codesign.sh"
|
|
|
|
"-t"
|
|
|
|
"${MACOS_CODE_SIGNING_IDENTITY}"
|
|
|
|
"${DOLPHIN_MAC_BUNDLE}/Contents/Helpers/Dolphin Updater.app")
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (MACOS_CODE_SIGNING)
|
|
|
|
add_custom_command(TARGET build_final_bundle
|
|
|
|
POST_BUILD
|
|
|
|
COMMAND "${CMAKE_SOURCE_DIR}/Tools/mac-codesign.sh"
|
|
|
|
"-t"
|
|
|
|
"-e" "${CMAKE_SOURCE_DIR}/Source/Core/DolphinQt/DolphinEmu$<$<CONFIG:Debug>:Debug>.entitlements"
|
|
|
|
"${MACOS_CODE_SIGNING_IDENTITY}"
|
|
|
|
"${DOLPHIN_MAC_BUNDLE}")
|
|
|
|
endif()
|
|
|
|
endif()
|