Xavier Del Campo Romero
2e250d0b91
The existing scripts for Debian and NSIS packaging were too complex and dealt unnecessarily with lower level details that should be already handled by CMake and CPack. - Packaging-related scripts have been moved to the new cpack/ directory. There, CPack variables common to all generators are defined in cpack/common.cmake, and then generator-specific variables are defined independently (e.g.: cpack/debian.cmake and cpack/nsis.cmake). - Packaging is now optionally done at a second stage, by running `cpack -G <generator>` on the build directory. This removes the requirement to branch based on the system name, and instead all CPack variables are assigned unconditionally. - Since now only one version of the game is packaged, there is no need to maintain the complex scripts in packaging/ and packaging/windows that used to deal with all variants (e.g.: "wip-cars-and-tracks", "hq-cars-and-tracks", etc.). - The use of CPACK_NSIS_EXTRA_INSTALL_COMMANDS, CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS and CPACK_NSIS_CREATE_ICONS_EXTRA should not be required, let alone modifying the HKLM registry manually, since CPack already provides everything required to set up the installer, the uninstaller and shortcuts. - $INSTDIR is not required, since NSIS would already prepend the target installation directory. - PROJECT_VERSION_METADATA is not a standard CMake variable. CMAKE_PROJECT_VERSION_TWEAK is instead meant for this purpose. [1] - OPTION_PACKAGING and OPTION_ALL_IN_ONE_PACKAGING were removed since packaging will always be available, yet optional. Packagers must then run CPack on a second stage, as described above. - Outdated comments were removed to avoid confusion. TODO: - Add shortcut to track editor on NSIS. - dmg packaging was not revamped because of lacking compatible hardware, but still it has been moved to cpack/dmg.cmake. - Windows portable packaging (OPTION_PORTABLE_PACKAGING) has been left out since it required 7z and relied on several hacks to work. Furthermore, portable versions of the game were already not released on the latest release, either. [2] [1]: https://cmake.org/cmake/help/latest/variable/CMAKE_PROJECT_VERSION_TWEAK.html [2]: https://sourceforge.net/projects/speed-dreams/files/2.3.0/ |
||
---|---|---|
.. | ||
checks.cmake | ||
CMakeLists.txt | ||
config.h.in.cmake | ||
customthirdparty.cmake | ||
doxygenconfig.in.cmake | ||
FindcJSON.cmake | ||
FindENET.cmake | ||
FindGLM.cmake | ||
Findminizip.cmake | ||
FindOGG.cmake | ||
FindPLIB.cmake | ||
Findrhash.cmake | ||
FindSDL2.cmake | ||
FindSDL2_mixer.cmake | ||
FindSOLID.cmake | ||
FindSQLITE3.cmake | ||
FindTinyGLTF.cmake | ||
FindVORBIS.cmake | ||
FindVORBISFILE.cmake | ||
fixbundle.cmake.in | ||
install.cmake | ||
internaldeps.cmake | ||
macros.cmake | ||
options.cmake | ||
prerelease.cmake | ||
prereleaseutils.cmake | ||
robot.cmake | ||
robot.def.in.cmake | ||
speed-dreams-2.rc.in.cmake | ||
splitargn.cmake | ||
thirdpartydeps.cmake | ||
uninstall.cmake |