mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-21 21:55:38 +00:00
Updated the CMakeLists.txt files to be able to generate an NSIS installer for Windows.
Also some updates to the documentation and information files.
This commit is contained in:
parent
fc482fbab8
commit
04d4658fc9
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -39,6 +39,7 @@ install_manifest.txt
|
|||
_CPack_Packages
|
||||
emulationstation-de*.deb
|
||||
emulationstation-de*.rpm
|
||||
emulationstation-de*.exe
|
||||
|
||||
# TODO
|
||||
TODO.md
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
cmake_minimum_required(VERSION 3.10)
|
||||
cmake_minimum_required(VERSION 3.13)
|
||||
project(emulationstation-de)
|
||||
|
||||
# Set this to ON to show verbose compiler output (e.g. compiler flags, include directories etc.)
|
||||
set(CMAKE_VERBOSE_MAKEFILE OFF CACHE BOOL "Show verbose compiler output" FORCE)
|
||||
|
||||
# Add local find modules to CMAKE path.
|
||||
LIST(APPEND CMAKE_MODULE_PATH
|
||||
list(APPEND CMAKE_MODULE_PATH
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/CMake/Utils
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/CMake/Packages)
|
||||
|
||||
|
@ -165,56 +165,46 @@ set(COMMON_INCLUDE_DIRS
|
|||
${SDL2_INCLUDE_DIR}
|
||||
${VLC_INCLUDE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/external
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/es-core/src
|
||||
)
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/es-core/src)
|
||||
|
||||
if(WIN32)
|
||||
set(COMMON_INCLUDE_DIRS
|
||||
${COMMON_INCLUDE_DIRS}
|
||||
${WIN32_INCLUDE_DIR})
|
||||
set(COMMON_INCLUDE_DIRS ${COMMON_INCLUDE_DIRS} ${WIN32_INCLUDE_DIR})
|
||||
endif()
|
||||
|
||||
# Add libCEC include directory.
|
||||
if(DEFINED libCEC_FOUND)
|
||||
LIST(APPEND COMMON_INCLUDE_DIRS
|
||||
${libCEC_INCLUDE_DIR})
|
||||
list(APPEND COMMON_INCLUDE_DIRS ${libCEC_INCLUDE_DIR})
|
||||
endif()
|
||||
|
||||
# Add ALSA for Linux include directory.
|
||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||
LIST(APPEND COMMON_INCLUDE_DIRS
|
||||
${ALSA_INCLUDE_DIRS})
|
||||
list(APPEND COMMON_INCLUDE_DIRS ${ALSA_INCLUDE_DIRS})
|
||||
endif()
|
||||
|
||||
if(DEFINED BCMHOST)
|
||||
LIST(APPEND COMMON_INCLUDE_DIRS
|
||||
list(APPEND COMMON_INCLUDE_DIRS
|
||||
"${CMAKE_FIND_ROOT_PATH}/opt/vc/include"
|
||||
"${CMAKE_FIND_ROOT_PATH}/opt/vc/include/interface/vcos"
|
||||
"${CMAKE_FIND_ROOT_PATH}/opt/vc/include/interface/vmcs_host/linux"
|
||||
"${CMAKE_FIND_ROOT_PATH}/opt/vc/include/interface/vcos/pthreads")
|
||||
# Add Vero4k include directory.
|
||||
elseif(DEFINED VERO4K)
|
||||
LIST(APPEND COMMON_INCLUDE_DIRS
|
||||
"${CMAKE_FIND_ROOT_PATH}/opt/vero3/include")
|
||||
list(APPEND COMMON_INCLUDE_DIRS "${CMAKE_FIND_ROOT_PATH}/opt/vero3/include")
|
||||
else()
|
||||
# Add OpenGL include directory.
|
||||
if(${GLSystem} MATCHES "Desktop OpenGL")
|
||||
LIST(APPEND COMMON_INCLUDE_DIRS
|
||||
${OPENGL_INCLUDE_DIR})
|
||||
list(APPEND COMMON_INCLUDE_DIRS ${OPENGL_INCLUDE_DIR})
|
||||
else()
|
||||
# Add OpenGL ES include directory.
|
||||
LIST(APPEND COMMON_INCLUDE_DIRS
|
||||
${OPENGLES_INCLUDE_DIR})
|
||||
list(APPEND COMMON_INCLUDE_DIRS ${OPENGLES_INCLUDE_DIR})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Define libraries and directories.
|
||||
if(DEFINED BCMHOST)
|
||||
link_directories(
|
||||
"${CMAKE_FIND_ROOT_PATH}/opt/vc/lib")
|
||||
link_directories("${CMAKE_FIND_ROOT_PATH}/opt/vc/lib")
|
||||
elseif(DEFINED VERO4K)
|
||||
link_directories(
|
||||
"${CMAKE_FIND_ROOT_PATH}/opt/vero3/lib")
|
||||
link_directories("${CMAKE_FIND_ROOT_PATH}/opt/vero3/lib")
|
||||
endif()
|
||||
|
||||
if (NOT WIN32)
|
||||
|
@ -243,41 +233,25 @@ endif()
|
|||
# Add libCEC libraries.
|
||||
if(DEFINED libCEC_FOUND)
|
||||
if(DEFINED BCMHOST)
|
||||
LIST(APPEND COMMON_LIBRARIES
|
||||
vchiq_arm)
|
||||
list(APPEND COMMON_LIBRARIES vchiq_arm)
|
||||
endif()
|
||||
LIST(APPEND COMMON_LIBRARIES
|
||||
dl
|
||||
${libCEC_LIBRARIES})
|
||||
list(APPEND COMMON_LIBRARIES dl ${libCEC_LIBRARIES})
|
||||
endif()
|
||||
|
||||
# Add ALSA for Linux libraries.
|
||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||
LIST(APPEND COMMON_LIBRARIES
|
||||
${ALSA_LIBRARY})
|
||||
list(APPEND COMMON_LIBRARIES ${ALSA_LIBRARY})
|
||||
endif()
|
||||
|
||||
if(DEFINED BCMHOST)
|
||||
LIST(APPEND COMMON_LIBRARIES
|
||||
bcm_host
|
||||
brcmEGL
|
||||
${OPENGLES_LIBRARIES})
|
||||
list(APPEND COMMON_LIBRARIES bcm_host brcmEGL ${OPENGLES_LIBRARIES})
|
||||
elseif(DEFINED VERO4K)
|
||||
LIST(APPEND COMMON_LIBRARIES
|
||||
EGL
|
||||
${OPENGLES_LIBRARIES})
|
||||
list(APPEND COMMON_LIBRARIES EGL ${OPENGLES_LIBRARIES})
|
||||
else()
|
||||
if(MSVC)
|
||||
LIST(APPEND COMMON_LIBRARIES
|
||||
winmm)
|
||||
endif()
|
||||
if(${GLSystem} MATCHES "Desktop OpenGL")
|
||||
LIST(APPEND COMMON_LIBRARIES
|
||||
${OPENGL_LIBRARIES})
|
||||
list(APPEND COMMON_LIBRARIES ${OPENGL_LIBRARIES})
|
||||
else()
|
||||
LIST(APPEND COMMON_LIBRARIES
|
||||
EGL
|
||||
${OPENGLES_LIBRARIES})
|
||||
list(APPEND COMMON_LIBRARIES EGL ${OPENGLES_LIBRARIES})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
|
47
INSTALL.md
47
INSTALL.md
|
@ -177,7 +177,7 @@ sudo apt-get install rpm
|
|||
|
||||
### On Windows:
|
||||
|
||||
This is a strange legacy operating system. However it's still popular, so we need to support it for the time being.
|
||||
This is a strange legacy operating system. However it's still popular, so we need to support it.
|
||||
|
||||
I did a brief evaluation of the Microsoft Visual C++ compiler (MSVC) but as far as I'm concerned it's an abomination so I won't cover it here and it won't be supported.
|
||||
|
||||
|
@ -197,13 +197,13 @@ Make a copy of `mingw64/bin/mingw32-make` to `make` just for convenience and mak
|
|||
|
||||
I won't get into the details on how to configure Git, but there are many resources available online to support with this. The `Git Bash` shell is very useful though as it's somewhat reproducing a Unix environment using MinGW/MSYS.
|
||||
|
||||
Install your editor of choice. As for VSCodium it's unfortunately broken or crippled under Windows, making some important extensions impossible to install. VSCode works fine, but make sure to disable all surveillance functionality (telemetry).
|
||||
Install your editor of choice. As for VSCodium it's unfortunately broken or crippled under Windows, making some important extensions impossible to install. VSCode can however be used instead.
|
||||
|
||||
It's strongly recommended to set line breaks to linefeed (Unix-style) directly in the editor, although it can also be configured in Git for conversion during commit. The source code for EmulationStation-DE only uses Unix-style line breaks.
|
||||
It's strongly recommended to set line breaks to Unix-style (linefeed only) directly in the editor, although it can also be configured in Git for conversion during commit. The source code for EmulationStation-DE only uses Unix-style line breaks.
|
||||
|
||||
**Enable pretty printing for GDB:**
|
||||
|
||||
This is useful for displaying std::string values for example.
|
||||
This is useful for displaying `std::string` values for example.
|
||||
|
||||
Adjust your paths accordingly, the below are just examples of course.
|
||||
|
||||
|
@ -225,7 +225,7 @@ If using VSCode, add the following line to launch.json:
|
|||
|
||||
An equivalent setup should be possible on other code editors as well.
|
||||
|
||||
Note that most GDB builds for Windows have broken Python support so that pretty printing won't work. The MinGW installation recommended in the previous step seems to work fine though.
|
||||
Note that most GDB builds for Windows have broken Python support so that pretty printing won't work. The MinGW installation recommended in the previous step works fine though.
|
||||
|
||||
**Download the dependency packages:**
|
||||
|
||||
|
@ -326,11 +326,15 @@ The files from the MinGW installation must correspond to the version used to com
|
|||
|
||||
For a release build:
|
||||
|
||||
```
|
||||
cmake -G "MinGW Makefiles" -DWIN32_INCLUDE_DIR=../include .
|
||||
```
|
||||
|
||||
Or for a debug build:
|
||||
|
||||
```
|
||||
cmake -G "MinGW Makefiles" -DWIN32_INCLUDE_DIR=../include -DCMAKE_BUILD_TYPE=Debug .
|
||||
```
|
||||
|
||||
For some reason defining the '../include' path doesn't work when running CMake from PowerShell (and no, changing to backslash doesn't help). Instead use Bash, by running from a `Git Bash` shell.
|
||||
|
||||
|
@ -343,6 +347,26 @@ Note that compilation time is much longer than on Unix, and linking time is exce
|
|||
A worthwhile endeavour could be to setup a cross-compilation environment using WLS/WLS2 (Linux), but I have not tried it.
|
||||
|
||||
|
||||
**Creating an NSIS installer:**
|
||||
|
||||
To create an NSIS installer (Nullsoft Scriptable Install System) you need to first install the NSIS creation tool:
|
||||
|
||||
[NSIS](https://nsis.sourceforge.io/Download)
|
||||
|
||||
Simply install the application using it's installer.
|
||||
|
||||
After the installation has been completed, go to the emulationstation-de directory and run cpack to generate the NSIS installer:
|
||||
|
||||
```
|
||||
$ cpack
|
||||
CPack: Create package using NSIS
|
||||
CPack: Install projects
|
||||
CPack: - Run preinstall target for: emulationstation-de
|
||||
CPack: - Install project: emulationstation-de []
|
||||
CPack: Create package
|
||||
CPack: - package: C:/Programming/emulationstation-de/emulationstation-de-1.0.0-win64.exe generated.
|
||||
```
|
||||
|
||||
|
||||
Configuring EmulationStation-DE
|
||||
===============================
|
||||
|
@ -477,6 +501,17 @@ Here's an overview of the file layout:
|
|||
retroarch -L "~/my configs/retroarch/cores/snes9x_libretro.so" %ROM% -->
|
||||
<command>retroarch -L ~/.config/retroarch/cores/snes9x_libretro.so %ROM%</command>
|
||||
|
||||
<!-- This is an example for Windows. The .exe extension is optional and both forward slashes and backslashes are allowed as
|
||||
directory separators. As there is no standardized installation directory structure for this operating system, the %EMUPATH%
|
||||
variable is used here to find the cores relative to the RetroArch binary. This binary must be in the PATH environmental variable
|
||||
or otherwise the complete path to the retroarch.exe file needs to be defined. Batch scripts (.bat) are also supported. -->
|
||||
<command>retroarch.exe -L %EMUPATH%\cores\snes9x_libretro.dll %ROM%</command>
|
||||
|
||||
<!-- Another example for Windows. As can be seen here, the absolut path to the emulator has been defined, and there are spaces
|
||||
in the directory name, so it needs to be surrounded by quotation marks. As well the quotation marks are needed around the core
|
||||
configuration as the %EMUPATH% will expand to the path of the emulator binary, which will of course also include the spaces. -->
|
||||
<command>"C:\My Games\RetroArch\retroarch.exe" -L "%EMUPATH%\cores\snes9x_libretro.dll" %ROM%</command>
|
||||
|
||||
<!-- The platform(s) to use when scraping. You can see the full list of accepted platforms in src/PlatformIds.cpp.
|
||||
It's case sensitive, but everything is lowercase. This tag is optional.
|
||||
You can use multiple platforms too, delimited with any of the whitespace characters (", \r\n\t"), e.g.: "megadrive, genesis" -->
|
||||
|
@ -496,6 +531,8 @@ The following variables are expanded by ES for the `command` tag:
|
|||
|
||||
`%ROM_RAW%` - Replaced with the unescaped, absolute path to the selected ROM. If your emulator is picky about paths, you might want to use this instead of %ROM%, but enclosed in quotes.
|
||||
|
||||
`%EMUPATH%` - Replaced with the path to the emulator binary. This is expanded either using the PATH environmental variable of the operating system, or if an absolute emulator path is defined, this will be used instead. This variable is mostly useful to define the emulator core path for Windows, as this operating system does not have a standardized program installation directory structure.
|
||||
|
||||
For the `path` tag, the following variable is expanded by ES:
|
||||
|
||||
`%ROMPATH%` - Replaced with the path defined for the setting ROMDirectory in `es_settings.cfg`.
|
||||
|
|
9
NEWS.md
9
NEWS.md
|
@ -12,8 +12,11 @@ v1.0.0
|
|||
* Gamelist sorting now working as expected and is persistent throughout the application session
|
||||
* Full navigation sound support, configurable per theme
|
||||
* New default theme rbsimple-DE bundled with the software, this theme is largely based on recalbox-multi by the Recalbox community
|
||||
* Added extensive es_systems.cfg templates for Unix and Windows
|
||||
* Updated the application to compile and work on Microsoft Windows
|
||||
* Seamless (almost) launch of games without showing the desktop when starting and returning from RetroArch and other emulators
|
||||
* Per-game launchstring override, so that different cores or emulators can be used on a per-game basis (saved to gamelist.xml)
|
||||
* Per-game launch command override, so that different cores or emulators can be used on a per-game basis (saved to gamelist.xml)
|
||||
* Core location can be defined relative to the emulator binary using the %EMUPATH% varible in es_systems.cfg (mostly useful for Windows)
|
||||
* Help system updated and expanded to the complete application (previously it was only partially implemented)
|
||||
* GUI-configurable option to sort favorite games on the top of the game lists (favorites marked with stars)
|
||||
* Added new component GuiComplexTextEditPopup to handle changes to configuration file entries and similar
|
||||
|
@ -24,8 +27,8 @@ v1.0.0
|
|||
* Refactoring, cleanup and documentation of the source code, removal of deprecated files etc.
|
||||
* All required fonts bundled with the application, no dependencies on the OS to provide them any longer
|
||||
* Made pugixml an external dependency instead of bundling it
|
||||
* Updated the cmake/cpack install and package build script to work as expected (can now generate .deb and .rpm installation packages)
|
||||
* Added support for Clang/LLVM, made the application build with no errors or warnings using this compiler
|
||||
* Updated the CMake/CPack install and package build script to work as expected (can now generate .deb, .rpm and NSIS installation packages)
|
||||
* Added support for Clang/LLVM, made the application build with no errors or warnings using this compiler (Unix only)
|
||||
* License files included for all the libraries and resources that are bundled with the application
|
||||
* Updated the MAME ROM index files to include ROMs up to MAME version 0.221 (and created scripts to easily generate these index files in the future)
|
||||
|
||||
|
|
|
@ -100,25 +100,29 @@ set(ES_SOURCES
|
|||
${CMAKE_CURRENT_SOURCE_DIR}/src/views/UIModeController.cpp
|
||||
)
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
#---------------------------------------------------------------------------------------------------
|
||||
# Define OS specific sources and headers.
|
||||
if(WIN32)
|
||||
LIST(APPEND ES_SOURCES
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src/EmulationStation.rc
|
||||
)
|
||||
LIST(APPEND ES_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/src/EmulationStation.rc)
|
||||
endif()
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Define target.
|
||||
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)
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Set up CPack install for `make install`.
|
||||
|
||||
install(TARGETS emulationstation
|
||||
RUNTIME
|
||||
# Set up CPack for installation and package generation.
|
||||
if(WIN32)
|
||||
install(TARGETS emulationstation RUNTIME DESTINATION .)
|
||||
install(FILES ../FreeImage.dll ../libcrypto-1_1-x64.dll ../libcurl-x64.dll ../libfreetype.dll
|
||||
../libgcc_s_seh-1.dll ../libpugixml.dll ../libssl-1_1-x64.dll ../libstdc++-6.dll
|
||||
../libvlc.dll ../libvlccore.dll ../libwinpthread-1.dll ../SDL2.dll DESTINATION .)
|
||||
install(FILES ../LICENSE DESTINATION .)
|
||||
install(DIRECTORY ${CMAKE_SOURCE_DIR}/LICENSES DESTINATION .)
|
||||
install(DIRECTORY ${CMAKE_SOURCE_DIR}/themes DESTINATION .)
|
||||
install(DIRECTORY ${CMAKE_SOURCE_DIR}/resources DESTINATION .)
|
||||
else()
|
||||
install(TARGETS emulationstation RUNTIME
|
||||
DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
|
||||
install(DIRECTORY ${CMAKE_SOURCE_DIR}/LICENSES
|
||||
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/emulationstation)
|
||||
|
@ -126,39 +130,61 @@ install(DIRECTORY ${CMAKE_SOURCE_DIR}/themes
|
|||
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/emulationstation)
|
||||
install(DIRECTORY ${CMAKE_SOURCE_DIR}/resources
|
||||
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/emulationstation)
|
||||
endif()
|
||||
|
||||
INCLUDE(InstallRequiredSystemLibraries)
|
||||
include(InstallRequiredSystemLibraries)
|
||||
|
||||
SET(CPACK_PACKAGE_NAME "emulationstation-de")
|
||||
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "An emulator front-end with controller navigation and theming support.")
|
||||
SET(CPACK_PACKAGE_DESCRIPTION "EmulationStation Desktop Edition is a fast, feature rich front-end for browsing and launching games from your multi-platform retro game collection. It's intended to be used in conjunction with emulators such as the RetroArch cores.")
|
||||
#---------------------------------------------------------------------------------------------------
|
||||
# CPack settings.
|
||||
set(CPACK_PACKAGE_NAME "emulationstation-de")
|
||||
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "An emulator front-end with controller navigation and theming support.")
|
||||
set(CPACK_PACKAGE_DESCRIPTION "EmulationStation Desktop Edition is a fast and flexible front-end for browsing and launching games from your multi-platform retro game collection. It's intended to be used in conjunction with emulators such as the RetroArch cores.")
|
||||
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE")
|
||||
|
||||
SET(CPACK_RESOURCE_FILE LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE")
|
||||
#SET(CPACK_RESOURCE_FILE README "${CMAKE_CURRENT_SOURCE_DIR}/README.md")
|
||||
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Leon Styhre <leon@leonstyhre.com>")
|
||||
set(CPACK_DEBIAN_PACKAGE_HOMEPAGE "https://gitlab.com/leonstyhre/emulationstation-de")
|
||||
set(CPACK_DEBIAN_PACKAGE_SECTION "misc")
|
||||
set(CPACK_DEBIAN_PACKAGE_PRIORITY "optional")
|
||||
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
|
||||
#set(CPACK_DEBIAN_PACKAGE_DEPENDS "libc6, libsdl2-2.0-0, libfreeimage3, libfreetype6, libvlc5, libcurl4, libpugixml1v5, libasound2")
|
||||
set(CPACK_DEBIAN_PACKAGE_BUILDS_DEPENDS "debhelper (>= 8.0.0), cmake, g++ (>= 4.8), libsdl2-dev, libfreeimage-dev, libfreetype6-dev, libcurl4-openssl-dev, libpugixml-dev, rapidjson-dev, libasound2-dev, libvlc-dev, libgl1-mesa-dev")
|
||||
|
||||
SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "Leon Styhre <leon@leonstyhre.com>")
|
||||
SET(CPACK_DEBIAN_PACKAGE_HOMEPAGE "https://gitlab.com/leonstyhre/emulationstation-de")
|
||||
SET(CPACK_DEBIAN_PACKAGE_SECTION "misc")
|
||||
SET(CPACK_DEBIAN_PACKAGE_PRIORITY "optional")
|
||||
SET(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
|
||||
#SET(CPACK_DEBIAN_PACKAGE_DEPENDS "libc6, libsdl2-2.0-0, libfreeimage3, libfreetype6, libvlc5, libcurl4, libpugixml1v5, libasound2")
|
||||
SET(CPACK_DEBIAN_PACKAGE_BUILDS_DEPENDS "debhelper (>= 8.0.0), cmake, g++ (>= 4.8), libsdl2-dev, libfreeimage-dev, libfreetype6-dev, libcurl4-openssl-dev, libpugixml-dev, rapidjson-dev, libasound2-dev, libvlc-dev, libgl1-mesa-dev")
|
||||
set(CPACK_RPM_PACKAGE_DESCRIPTION ${CPACK_PACKAGE_DESCRIPTION})
|
||||
set(CPACK_RPM_PACKAGE_REQUIRES "libc6, libsdl2-2.0-0, libfreeimage3, libfreetype6, libvlc5, libcurl4, libpugixml1v5, libasound2")
|
||||
set(CPACK_RPM_PACKAGE_LICENSE "MIT")
|
||||
|
||||
SET(CPACK_RPM_PACKAGE_DESCRIPTION ${CPACK_PACKAGE_DESCRIPTION})
|
||||
SET(CPACK_RPM_PACKAGE_REQUIRES "libc6, libsdl2-2.0-0, libfreeimage3, libfreetype6, libvlc5, libcurl4, libpugixml1v5, libasound2")
|
||||
SET(CPACK_RPM_PACKAGE_LICENSE "MIT")
|
||||
set(CPACK_NSIS_INSTALL_ROOT "$PROGRAMFILES64")
|
||||
set(CPACK_NSIS_EXECUTABLES_DIRECTORY ".")
|
||||
set(CPACK_NSIS_MUI_ICON "${CMAKE_CURRENT_SOURCE_DIR}/src/es_icon.ico")
|
||||
set(CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL ON)
|
||||
set(CPACK_NSIS_DISPLAY_NAME "EmulationStation Desktop Edition")
|
||||
set(CPACK_NSIS_INSTALLED_ICON_NAME "${CMAKE_CURRENT_SOURCE_DIR}/es-app/src/es_icon.ico")
|
||||
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)
|
||||
|
||||
SET(CPACK_PACKAGE_VENDOR "https://gitlab.com/leonstyhre/emulationstation-de")
|
||||
SET(CPACK_PACKAGE_VERSION "1.0.0")
|
||||
SET(CPACK_PACKAGE_VERSION_MAJOR "1")
|
||||
SET(CPACK_PACKAGE_VERSION_MINOR "0")
|
||||
SET(CPACK_PACKAGE_VERSION_PATCH "0")
|
||||
SET(CPACK_PACKAGE_INSTALL_DIRECTORY "emulationstation_${CMAKE_PACKAGE_VERSION}")
|
||||
SET(CPACK_PACKAGE_EXECUTABLES "emulationstation" "emulationstation")
|
||||
set(CPACK_PACKAGE_VENDOR "Leon Styhre")
|
||||
set(CPACK_PACKAGE_VERSION "1.0.0")
|
||||
set(CPACK_PACKAGE_VERSION_MAJOR "1")
|
||||
set(CPACK_PACKAGE_VERSION_MINOR "0")
|
||||
set(CPACK_PACKAGE_VERSION_PATCH "0")
|
||||
|
||||
SET(CPACK_RPM_FILE_NAME "emulationstation-de-${CPACK_PACKAGE_VERSION}.rpm")
|
||||
SET(CPACK_DEBIAN_FILE_NAME "emulationstation-de-${CPACK_PACKAGE_VERSION}.deb")
|
||||
#SET(CPACK_GENERATOR "RPM")
|
||||
SET(CPACK_GENERATOR "DEB")
|
||||
if(WIN32)
|
||||
set(CPACK_PACKAGE_INSTALL_DIRECTORY "EmulationStation")
|
||||
set(CPACK_PACKAGE_EXECUTABLES "EmulationStation" "EmulationStation")
|
||||
else()
|
||||
set(CPACK_PACKAGE_INSTALL_DIRECTORY "emulationstation_${CMAKE_PACKAGE_VERSION}")
|
||||
set(CPACK_PACKAGE_EXECUTABLES "emulationstation" "emulationstation")
|
||||
endif()
|
||||
|
||||
INCLUDE(CPack)
|
||||
set(CPACK_RPM_FILE_NAME "emulationstation-de-${CPACK_PACKAGE_VERSION}.rpm")
|
||||
set(CPACK_DEBIAN_FILE_NAME "emulationstation-de-${CPACK_PACKAGE_VERSION}.deb")
|
||||
|
||||
if(WIN32)
|
||||
set(CPACK_GENERATOR "NSIS")
|
||||
else()
|
||||
#set(CPACK_GENERATOR "RPM")
|
||||
set(CPACK_GENERATOR "DEB")
|
||||
endif()
|
||||
|
||||
include(CPack)
|
||||
|
|
Loading…
Reference in a new issue