2021-08-24 16:32:15 +00:00
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
#
|
|
|
|
# EmulationStation Desktop Edition
|
|
|
|
# CMakeLists.txt (es-app)
|
|
|
|
#
|
|
|
|
# CMake configuration for es-app.
|
|
|
|
# Also contains the application packaging configuration.
|
|
|
|
#
|
|
|
|
|
2020-06-24 15:38:41 +00:00
|
|
|
project("emulationstation-de")
|
2014-06-25 16:29:58 +00:00
|
|
|
|
|
|
|
set(ES_HEADERS
|
2021-09-19 16:53:20 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/CollectionSystemsManager.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/EmulationStation.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/FileData.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/FileFilterIndex.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/FileSorts.h
|
2022-01-15 13:12:56 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/GamelistFileParser.h
|
2021-09-19 16:53:20 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/MediaViewer.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/MetaData.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/MiximageGenerator.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/PlatformId.h
|
2022-01-17 17:43:29 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/Screensaver.h
|
2021-09-19 16:53:20 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/SystemData.h
|
2022-01-17 20:53:23 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/UIModeController.h
|
2021-09-19 16:53:20 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/VolumeControl.h
|
2020-08-19 20:30:10 +00:00
|
|
|
|
2021-09-19 16:53:20 +00:00
|
|
|
# GUIs
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/guis/GuiAlternativeEmulators.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/guis/GuiCollectionSystemsOptions.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/guis/GuiGamelistFilter.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/guis/GuiGamelistOptions.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/guis/GuiLaunchScreen.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/guis/GuiMediaViewerOptions.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/guis/GuiMenu.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/guis/GuiMetaDataEd.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/guis/GuiOfflineGenerator.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/guis/GuiScraperMenu.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/guis/GuiScraperMulti.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/guis/GuiScraperSearch.h
|
2022-01-16 10:10:32 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/guis/GuiScraperSingle.h
|
2021-09-19 16:53:20 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/guis/GuiScreensaverOptions.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/guis/GuiSettings.h
|
2020-08-19 20:30:10 +00:00
|
|
|
|
2021-09-19 16:53:20 +00:00
|
|
|
# Scrapers
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/scrapers/GamesDBJSONScraper.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/scrapers/GamesDBJSONScraperResources.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/scrapers/Scraper.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/scrapers/ScreenScraper.h
|
2020-08-19 20:30:10 +00:00
|
|
|
|
2021-09-19 16:53:20 +00:00
|
|
|
# Views
|
2022-01-15 12:38:09 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/views/gamelist/BasicGamelistView.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/views/gamelist/DetailedGamelistView.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/views/gamelist/GridGamelistView.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/views/gamelist/IGamelistView.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/views/gamelist/ISimpleGamelistView.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/views/gamelist/VideoGamelistView.h
|
2021-09-19 16:53:20 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/views/SystemView.h
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/views/ViewController.h
|
2014-06-25 16:29:58 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(ES_SOURCES
|
2021-09-19 16:53:20 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/CollectionSystemsManager.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/FileData.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/FileFilterIndex.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/FileSorts.cpp
|
2022-01-15 13:12:56 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/GamelistFileParser.cpp
|
2021-09-19 16:53:20 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/main.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/MediaViewer.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/MetaData.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/MiximageGenerator.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/PlatformId.cpp
|
2022-01-17 17:43:29 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/Screensaver.cpp
|
2021-09-19 16:53:20 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/SystemData.cpp
|
2022-01-17 20:53:23 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/UIModeController.cpp
|
2021-09-19 16:53:20 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/VolumeControl.cpp
|
2020-08-19 20:30:10 +00:00
|
|
|
|
2021-09-19 16:53:20 +00:00
|
|
|
# GUIs
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/guis/GuiAlternativeEmulators.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/guis/GuiCollectionSystemsOptions.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/guis/GuiGamelistFilter.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/guis/GuiGamelistOptions.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/guis/GuiLaunchScreen.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/guis/GuiMenu.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/guis/GuiMediaViewerOptions.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/guis/GuiMetaDataEd.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/guis/GuiOfflineGenerator.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/guis/GuiScraperMenu.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/guis/GuiScraperMulti.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/guis/GuiScraperSearch.cpp
|
2022-01-16 10:10:32 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/guis/GuiScraperSingle.cpp
|
2021-09-19 16:53:20 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/guis/GuiScreensaverOptions.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/guis/GuiSettings.cpp
|
2020-08-19 20:30:10 +00:00
|
|
|
|
2021-09-19 16:53:20 +00:00
|
|
|
# Scrapers
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/scrapers/GamesDBJSONScraper.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/scrapers/GamesDBJSONScraperResources.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/scrapers/Scraper.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/scrapers/ScreenScraper.cpp
|
2020-08-19 20:30:10 +00:00
|
|
|
|
2021-09-19 16:53:20 +00:00
|
|
|
# Views
|
2022-01-15 12:38:09 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/views/gamelist/BasicGamelistView.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/views/gamelist/DetailedGamelistView.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/views/gamelist/GridGamelistView.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/views/gamelist/IGamelistView.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/views/gamelist/ISimpleGamelistView.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/views/gamelist/VideoGamelistView.cpp
|
2021-09-19 16:53:20 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/views/SystemView.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/views/ViewController.cpp
|
2014-06-25 16:29:58 +00:00
|
|
|
)
|
|
|
|
|
2020-07-03 18:23:51 +00:00
|
|
|
if(WIN32)
|
2020-08-19 20:30:10 +00:00
|
|
|
LIST(APPEND ES_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/assets/EmulationStation.rc)
|
2014-06-25 16:29:58 +00:00
|
|
|
endif()
|
|
|
|
|
2021-01-21 20:44:51 +00:00
|
|
|
#---------------------------------------------------------------------------------------------------
|
|
|
|
# OS-specific installation and package generation setup.
|
|
|
|
|
2020-06-24 15:38:41 +00:00
|
|
|
# Define target.
|
2020-08-19 20:30:10 +00:00
|
|
|
if(APPLE OR WIN32)
|
|
|
|
include_directories(${COMMON_INCLUDE_DIRS} ${CMAKE_CURRENT_SOURCE_DIR}/src)
|
|
|
|
add_executable(EmulationStation ${ES_SOURCES} ${ES_HEADERS})
|
|
|
|
target_link_libraries(EmulationStation ${COMMON_LIBRARIES} es-core)
|
2020-12-20 12:13:12 +00:00
|
|
|
set_target_properties(EmulationStation PROPERTIES INSTALL_RPATH_USE_LINK_PATH TRUE)
|
2020-08-19 20:30:10 +00:00
|
|
|
else()
|
|
|
|
include_directories(${COMMON_INCLUDE_DIRS} ${CMAKE_CURRENT_SOURCE_DIR}/src)
|
|
|
|
add_executable(emulationstation ${ES_SOURCES} ${ES_HEADERS})
|
2022-01-06 22:19:37 +00:00
|
|
|
target_link_libraries(emulationstation ${COMMON_LIBRARIES} ${CMAKE_DL_LIBS} es-core)
|
2020-11-26 19:03:37 +00:00
|
|
|
set_target_properties(emulationstation PROPERTIES INSTALL_RPATH_USE_LINK_PATH TRUE)
|
2020-08-19 20:30:10 +00:00
|
|
|
endif()
|
2014-06-25 16:29:58 +00:00
|
|
|
|
2020-08-19 20:30:10 +00:00
|
|
|
# Setup for installation and package generation.
|
2020-07-07 19:33:33 +00:00
|
|
|
if(WIN32)
|
2020-08-23 19:27:01 +00:00
|
|
|
install(TARGETS EmulationStation RUNTIME DESTINATION .)
|
2021-09-19 16:53:20 +00:00
|
|
|
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
|
|
|
install(FILES ../avcodec-58.dll
|
|
|
|
../avfilter-7.dll
|
|
|
|
../avformat-58.dll
|
|
|
|
../avutil-56.dll
|
|
|
|
../postproc-55.dll
|
|
|
|
../swresample-3.dll
|
|
|
|
../swscale-5.dll
|
|
|
|
../FreeImage.dll
|
|
|
|
../freetype.dll
|
|
|
|
../glew32.dll
|
|
|
|
../libcrypto-1_1-x64.dll
|
|
|
|
../libcurl-x64.dll
|
|
|
|
../libssl-1_1-x64.dll
|
|
|
|
../MSVCP140.dll
|
|
|
|
../pugixml.dll
|
2022-01-06 23:29:31 +00:00
|
|
|
../rlottie.dll
|
2021-09-19 16:53:20 +00:00
|
|
|
../SDL2.dll
|
|
|
|
../VCOMP140.DLL
|
|
|
|
../VCRUNTIME140.dll
|
|
|
|
../VCRUNTIME140_1.dll
|
|
|
|
DESTINATION .)
|
2020-12-28 22:23:01 +00:00
|
|
|
else()
|
2021-09-19 16:53:20 +00:00
|
|
|
install(FILES ../avcodec-58.dll
|
|
|
|
../avfilter-7.dll
|
|
|
|
../avformat-58.dll
|
|
|
|
../avutil-56.dll
|
|
|
|
../postproc-55.dll
|
|
|
|
../swresample-3.dll
|
|
|
|
../swscale-5.dll
|
|
|
|
../FreeImage.dll
|
|
|
|
../glew32.dll
|
|
|
|
../libcrypto-1_1-x64.dll
|
|
|
|
../libcurl-x64.dll
|
|
|
|
../libfreetype.dll
|
|
|
|
../libpugixml.dll
|
2022-01-06 23:29:31 +00:00
|
|
|
../librlottie.dll
|
2021-09-19 16:53:20 +00:00
|
|
|
../libssl-1_1-x64.dll
|
|
|
|
../SDL2.dll
|
|
|
|
../vcomp140.dll
|
|
|
|
DESTINATION .)
|
2020-12-28 22:23:01 +00:00
|
|
|
endif()
|
2022-01-02 12:13:01 +00:00
|
|
|
|
2020-07-07 19:33:33 +00:00
|
|
|
install(FILES ../LICENSE DESTINATION .)
|
2020-08-19 20:50:45 +00:00
|
|
|
install(DIRECTORY ${CMAKE_SOURCE_DIR}/licenses DESTINATION .)
|
2020-07-07 19:33:33 +00:00
|
|
|
install(DIRECTORY ${CMAKE_SOURCE_DIR}/themes DESTINATION .)
|
|
|
|
install(DIRECTORY ${CMAKE_SOURCE_DIR}/resources DESTINATION .)
|
2020-08-19 20:30:10 +00:00
|
|
|
elseif(APPLE)
|
2020-08-21 19:58:12 +00:00
|
|
|
# For completely unknown reasons, when generating a Bundle using cpack, an extra 'Resources'
|
|
|
|
# directory is added to the target path. Simply adding the two dots as a prefix fixes the
|
|
|
|
# problem, but doing so would break 'make install' which was actually behaving correctly.
|
|
|
|
# So an extra 'Resources' directory was added to the CMAKE_INSTALL_PREFIX variable as well
|
|
|
|
# to compensate for this. It's a bad solution to the problem and there must surely be a
|
|
|
|
# better way to fix this.
|
2021-09-19 16:53:20 +00:00
|
|
|
install(TARGETS EmulationStation RUNTIME DESTINATION ../MacOS)
|
|
|
|
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/assets/EmulationStation-DE.icns DESTINATION ../Resources)
|
|
|
|
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/assets/EmulationStation-DE_Info.plist DESTINATION .. RENAME Info.plist)
|
2020-08-23 09:35:02 +00:00
|
|
|
|
2021-09-19 16:53:20 +00:00
|
|
|
set(APPLE_DYLIB_PERMISSIONS OWNER_WRITE OWNER_READ OWNER_EXECUTE
|
|
|
|
GROUP_READ GROUP_EXECUTE
|
|
|
|
WORLD_READ WORLD_EXECUTE)
|
2020-11-27 16:50:28 +00:00
|
|
|
|
2021-06-26 10:06:24 +00:00
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/libavcodec.58.dylib
|
2021-09-19 16:53:20 +00:00
|
|
|
PERMISSIONS ${APPLE_DYLIB_PERMISSIONS} DESTINATION ../MacOS)
|
2021-06-26 10:06:24 +00:00
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/libavfilter.7.dylib
|
2021-09-19 16:53:20 +00:00
|
|
|
PERMISSIONS ${APPLE_DYLIB_PERMISSIONS} DESTINATION ../MacOS)
|
2021-06-26 10:06:24 +00:00
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/libavformat.58.dylib
|
2021-09-19 16:53:20 +00:00
|
|
|
PERMISSIONS ${APPLE_DYLIB_PERMISSIONS} DESTINATION ../MacOS)
|
2021-06-26 10:06:24 +00:00
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/libavutil.56.dylib
|
2021-09-19 16:53:20 +00:00
|
|
|
PERMISSIONS ${APPLE_DYLIB_PERMISSIONS} DESTINATION ../MacOS)
|
2021-06-26 10:06:24 +00:00
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/libpostproc.55.dylib
|
2021-09-19 16:53:20 +00:00
|
|
|
PERMISSIONS ${APPLE_DYLIB_PERMISSIONS} DESTINATION ../MacOS)
|
2021-06-26 10:06:24 +00:00
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/libswresample.3.dylib
|
2021-09-19 16:53:20 +00:00
|
|
|
PERMISSIONS ${APPLE_DYLIB_PERMISSIONS} DESTINATION ../MacOS)
|
2021-06-26 10:06:24 +00:00
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/libswscale.5.dylib
|
2021-09-19 16:53:20 +00:00
|
|
|
PERMISSIONS ${APPLE_DYLIB_PERMISSIONS} DESTINATION ../MacOS)
|
2021-06-26 10:06:24 +00:00
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/libfdk-aac.2.dylib
|
2021-09-19 16:53:20 +00:00
|
|
|
PERMISSIONS ${APPLE_DYLIB_PERMISSIONS} DESTINATION ../MacOS)
|
2021-11-30 21:14:18 +00:00
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/libvorbis.0.4.9.dylib
|
2021-09-19 16:53:20 +00:00
|
|
|
PERMISSIONS ${APPLE_DYLIB_PERMISSIONS} DESTINATION ../MacOS)
|
2021-11-30 21:14:18 +00:00
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/libvorbisenc.2.0.12.dylib
|
2021-09-19 16:53:20 +00:00
|
|
|
PERMISSIONS ${APPLE_DYLIB_PERMISSIONS} DESTINATION ../MacOS)
|
2021-11-30 21:14:18 +00:00
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/libfreetype.6.dylib
|
2021-09-19 16:53:20 +00:00
|
|
|
PERMISSIONS ${APPLE_DYLIB_PERMISSIONS} DESTINATION ../MacOS)
|
2021-11-30 21:14:18 +00:00
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/libSDL2-2.0.dylib
|
2021-09-19 16:53:20 +00:00
|
|
|
PERMISSIONS ${APPLE_DYLIB_PERMISSIONS} DESTINATION ../MacOS)
|
|
|
|
|
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/LICENSE DESTINATION ../Resources)
|
|
|
|
install(DIRECTORY ${CMAKE_SOURCE_DIR}/resources DESTINATION ../Resources)
|
|
|
|
install(DIRECTORY ${CMAKE_SOURCE_DIR}/themes DESTINATION ../Resources)
|
|
|
|
install(DIRECTORY ${CMAKE_SOURCE_DIR}/licenses DESTINATION ../Resources)
|
2020-07-07 19:33:33 +00:00
|
|
|
else()
|
2021-09-19 16:53:20 +00:00
|
|
|
install(TARGETS emulationstation RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
|
|
|
|
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
2021-04-02 10:38:31 +00:00
|
|
|
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/assets/emulationstation.6.gz
|
2021-09-19 16:53:20 +00:00
|
|
|
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/man/man6)
|
2021-04-02 10:38:31 +00:00
|
|
|
else()
|
|
|
|
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/assets/emulationstation.6.gz
|
2021-09-19 16:53:20 +00:00
|
|
|
DESTINATION ${CMAKE_INSTALL_PREFIX}/man/man6)
|
2021-04-02 10:38:31 +00:00
|
|
|
endif()
|
2020-07-12 14:23:49 +00:00
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/LICENSE
|
2021-09-19 16:53:20 +00:00
|
|
|
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/emulationstation)
|
2021-11-21 18:38:38 +00:00
|
|
|
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/assets/org.es_de.emulationstation-de.desktop
|
2021-09-19 16:53:20 +00:00
|
|
|
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications)
|
2020-08-19 20:30:10 +00:00
|
|
|
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/assets/emulationstation.svg
|
2021-09-19 16:53:20 +00:00
|
|
|
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/pixmaps)
|
2021-11-21 18:38:38 +00:00
|
|
|
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/assets/org.es_de.emulationstation-de.appdata.xml
|
|
|
|
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/metainfo)
|
2020-08-19 20:50:45 +00:00
|
|
|
install(DIRECTORY ${CMAKE_SOURCE_DIR}/licenses
|
2021-09-19 16:53:20 +00:00
|
|
|
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/emulationstation)
|
2020-07-07 19:33:33 +00:00
|
|
|
install(DIRECTORY ${CMAKE_SOURCE_DIR}/themes
|
2021-09-19 16:53:20 +00:00
|
|
|
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/emulationstation)
|
2020-07-07 19:33:33 +00:00
|
|
|
install(DIRECTORY ${CMAKE_SOURCE_DIR}/resources
|
2021-09-19 16:53:20 +00:00
|
|
|
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/emulationstation)
|
2020-07-07 19:33:33 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
include(InstallRequiredSystemLibraries)
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------------------------------
|
2020-08-19 20:30:10 +00:00
|
|
|
# General CPack settings.
|
2021-01-21 20:44:51 +00:00
|
|
|
|
2020-07-07 19:33:33 +00:00
|
|
|
set(CPACK_PACKAGE_NAME "emulationstation-de")
|
2021-08-12 10:03:11 +00:00
|
|
|
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Emulator frontend")
|
|
|
|
set(CPACK_PACKAGE_DESCRIPTION "EmulationStation Desktop Edition (ES-DE) is a frontend for browsing and launching games from your multi-platform game collection.
|
2021-05-04 15:03:18 +00:00
|
|
|
|
|
|
|
It's intended to be used in conjunction with emulators such as the RetroArch cores.")
|
2020-09-17 19:49:40 +00:00
|
|
|
if(APPLE)
|
2020-11-30 17:58:55 +00:00
|
|
|
# Shorter line length license file to be able to fit inside the drag-and-drop installer window without introducing extra line breaks.
|
|
|
|
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/assets/EmulationStation-DE_LICENSE_macOS")
|
|
|
|
elseif(WIN32)
|
|
|
|
# The installer window looks a bit different on Windows so a specific file for this OS is required.
|
|
|
|
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/assets/EmulationStation-DE_LICENSE_Windows")
|
2020-09-17 19:49:40 +00:00
|
|
|
else()
|
2020-11-30 17:58:55 +00:00
|
|
|
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE")
|
2020-09-17 19:49:40 +00:00
|
|
|
endif()
|
2020-07-07 19:33:33 +00:00
|
|
|
set(CPACK_PACKAGE_VENDOR "Leon Styhre")
|
|
|
|
|
2020-08-19 20:30:10 +00:00
|
|
|
# Update this when there has been a new release.
|
2021-12-29 14:54:26 +00:00
|
|
|
set(CPACK_PACKAGE_VERSION "1.3.0-alpha")
|
2020-08-19 20:30:10 +00:00
|
|
|
|
2021-03-27 10:13:43 +00:00
|
|
|
# Use the shorter x64 descriptor if on the x86_64/AMD64 architecture.
|
|
|
|
if(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL x86_64 OR CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL AMD64)
|
|
|
|
set(CPU_ARCHITECTURE "x64")
|
|
|
|
else()
|
|
|
|
set(CPU_ARCHITECTURE "${CMAKE_HOST_SYSTEM_PROCESSOR}")
|
|
|
|
endif()
|
|
|
|
|
2020-08-19 20:30:10 +00:00
|
|
|
# Settings per operating system and generator type.
|
|
|
|
if(APPLE)
|
2020-08-21 19:58:12 +00:00
|
|
|
set(CPACK_GENERATOR "Bundle")
|
2021-09-19 16:53:20 +00:00
|
|
|
if(CMAKE_OSX_DEPLOYMENT_TARGET VERSION_LESS 10.14)
|
2021-04-07 16:32:22 +00:00
|
|
|
set(CPACK_PACKAGE_FILE_NAME "EmulationStation-DE-${CPACK_PACKAGE_VERSION}-${CPU_ARCHITECTURE}_legacy")
|
|
|
|
set(CPACK_DMG_VOLUME_NAME "EmulationStation Desktop Edition ${CPACK_PACKAGE_VERSION}_legacy")
|
|
|
|
else()
|
|
|
|
set(CPACK_PACKAGE_FILE_NAME "EmulationStation-DE-${CPACK_PACKAGE_VERSION}-${CPU_ARCHITECTURE}")
|
|
|
|
set(CPACK_DMG_VOLUME_NAME "EmulationStation Desktop Edition ${CPACK_PACKAGE_VERSION}")
|
|
|
|
endif()
|
2020-08-21 19:58:12 +00:00
|
|
|
set(CPACK_PACKAGE_ICON "${CMAKE_CURRENT_SOURCE_DIR}/assets/EmulationStation-DE.icns")
|
|
|
|
set(CPACK_DMG_DS_STORE "${CMAKE_CURRENT_SOURCE_DIR}/assets/EmulationStation-DE_DS_Store")
|
2020-08-23 09:35:02 +00:00
|
|
|
set(CPACK_BUNDLE_NAME "EmulationStation Desktop Edition")
|
2020-08-21 19:58:12 +00:00
|
|
|
set(CPACK_BUNDLE_ICON "${CMAKE_CURRENT_SOURCE_DIR}/assets/EmulationStation-DE.icns")
|
|
|
|
set(CPACK_BUNDLE_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/assets/EmulationStation-DE_Info.plist")
|
2021-05-13 17:33:07 +00:00
|
|
|
if(MACOS_CODESIGN_IDENTITY)
|
|
|
|
set(CPACK_BUNDLE_APPLE_CERT_APP "Developer ID Application: ${MACOS_CODESIGN_IDENTITY}")
|
2021-09-19 16:53:20 +00:00
|
|
|
if(CMAKE_OSX_DEPLOYMENT_TARGET VERSION_GREATER 10.13)
|
2021-05-13 17:33:07 +00:00
|
|
|
set(CPACK_BUNDLE_APPLE_CODESIGN_PARAMETER "--deep --force --options runtime")
|
|
|
|
endif()
|
|
|
|
endif()
|
2020-08-19 20:30:10 +00:00
|
|
|
elseif(WIN32)
|
|
|
|
set(CPACK_GENERATOR "NSIS")
|
2021-03-27 10:13:43 +00:00
|
|
|
set(CPACK_PACKAGE_FILE_NAME "EmulationStation-DE-${CPACK_PACKAGE_VERSION}-${CPU_ARCHITECTURE}")
|
2020-11-30 17:58:55 +00:00
|
|
|
set(CPACK_PACKAGE_INSTALL_DIRECTORY "EmulationStation-DE")
|
2020-07-07 19:33:33 +00:00
|
|
|
set(CPACK_PACKAGE_EXECUTABLES "EmulationStation" "EmulationStation")
|
2020-08-19 20:30:10 +00:00
|
|
|
set(CPACK_NSIS_INSTALL_ROOT "$PROGRAMFILES64")
|
|
|
|
set(CPACK_NSIS_EXECUTABLES_DIRECTORY ".")
|
|
|
|
set(CPACK_NSIS_MUI_ICON "${CMAKE_CURRENT_SOURCE_DIR}/assets/EmulationStation.ico")
|
|
|
|
set(CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL ON)
|
2020-12-30 14:13:44 +00:00
|
|
|
set(CPACK_NSIS_DISPLAY_NAME "EmulationStation Desktop Edition ${CPACK_PACKAGE_VERSION}")
|
|
|
|
set(CPACK_NSIS_PACKAGE_NAME "EmulationStation Desktop Edition")
|
2020-11-30 17:58:55 +00:00
|
|
|
set(CPACK_NSIS_INSTALLED_ICON_NAME "EmulationStation.exe")
|
2020-08-19 20:30:10 +00:00
|
|
|
set(CPACK_NSIS_WELCOME_TITLE "EmulationStation Desktop Edition Installer")
|
|
|
|
set(CPACK_NSIS_FINISH_TITLE "EmulationStation Desktop Edition Installation Completed")
|
|
|
|
set(CPACK_NSIS_MANIFEST_DPI_AWARE ON)
|
2021-04-03 14:44:57 +00:00
|
|
|
set(CPACK_NSIS_MENU_LINKS "https://es-de.org" "ES-DE Website" "https://es-de.org/#Donations" "Please Donate")
|
2020-07-07 19:33:33 +00:00
|
|
|
else()
|
|
|
|
set(CPACK_PACKAGE_INSTALL_DIRECTORY "emulationstation_${CMAKE_PACKAGE_VERSION}")
|
|
|
|
set(CPACK_PACKAGE_EXECUTABLES "emulationstation" "emulationstation")
|
2021-09-19 16:53:20 +00:00
|
|
|
if(LINUX_CPACK_GENERATOR STREQUAL "DEB")
|
2021-05-04 15:09:19 +00:00
|
|
|
set(CPACK_GENERATOR "DEB")
|
|
|
|
endif()
|
2021-03-27 10:13:43 +00:00
|
|
|
set(CPACK_DEBIAN_FILE_NAME "emulationstation-de-${CPACK_PACKAGE_VERSION}-${CPU_ARCHITECTURE}.deb")
|
2021-12-13 16:15:24 +00:00
|
|
|
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Leon Styhre <info@es-de.org>")
|
2021-03-14 10:20:44 +00:00
|
|
|
set(CPACK_DEBIAN_PACKAGE_HOMEPAGE "https://es-de.org")
|
2021-05-04 15:03:18 +00:00
|
|
|
set(CPACK_DEBIAN_PACKAGE_SECTION "games")
|
2020-08-19 20:30:10 +00:00
|
|
|
set(CPACK_DEBIAN_PACKAGE_PRIORITY "optional")
|
|
|
|
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
|
2021-09-19 16:53:20 +00:00
|
|
|
if(LINUX_CPACK_GENERATOR STREQUAL "RPM")
|
2021-05-04 15:09:19 +00:00
|
|
|
set(CPACK_GENERATOR "RPM")
|
|
|
|
endif()
|
2021-03-27 10:13:43 +00:00
|
|
|
set(CPACK_RPM_FILE_NAME "emulationstation-de-${CPACK_PACKAGE_VERSION}-${CPU_ARCHITECTURE}.rpm")
|
2020-08-19 20:30:10 +00:00
|
|
|
set(CPACK_RPM_PACKAGE_DESCRIPTION ${CPACK_PACKAGE_DESCRIPTION})
|
|
|
|
set(CPACK_RPM_PACKAGE_LICENSE "MIT")
|
2020-11-29 10:18:39 +00:00
|
|
|
list(APPEND CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION "${CMAKE_INSTALL_PREFIX}")
|
|
|
|
list(APPEND CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION "${CMAKE_INSTALL_PREFIX}/bin")
|
|
|
|
list(APPEND CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION "${CMAKE_INSTALL_PREFIX}/share")
|
2021-04-02 11:05:24 +00:00
|
|
|
list(APPEND CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION "${CMAKE_INSTALL_PREFIX}/share/man")
|
|
|
|
list(APPEND CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION "${CMAKE_INSTALL_PREFIX}/share/man/man6")
|
2021-11-21 19:04:28 +00:00
|
|
|
list(APPEND CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION "${CMAKE_INSTALL_PREFIX}/share/metainfo")
|
2021-04-02 11:05:24 +00:00
|
|
|
list(APPEND CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION "${CMAKE_INSTALL_PREFIX}/share/pixmaps")
|
2020-11-29 10:18:39 +00:00
|
|
|
list(APPEND CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION "${CMAKE_INSTALL_PREFIX}/share/applications")
|
2020-07-07 19:33:33 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
include(CPack)
|