Xavier Del Campo Romero
880d53d88a
Now that speed-dreams-data is available as a submodule, this allows the build system to choose it for in-tree builds. Therefore, CMake will perform in the following order: 1. Do not search the speed-dreams-data package if SD_ASSUME_DATADIR is set. 2. Otherwise, do an in-tree build if the submodule has been updated. 3. Otherwise, search for the speed-dreams-data package on standard locations and CMAKE_PREFIX_PATH and/or CMAKE_FIND_ROOT_PATH. 4. Otherwise, return an error message. SD_HAS_DATADIR was rendered redundant, so it has been removed. However, SD_DATADIR_INSTALL_PREFIX was introduced because it would not equal SD_DATADIR_ABS for in-tree builds, where an installed version of the speed-dreams-data package is not required. In-tree builds now allow to generate NSIS installers with both code and data. |
||
---|---|---|
.forgejo/workflows | ||
cmake | ||
cpack | ||
doc | ||
packaging | ||
speed-dreams-data@9749171cef | ||
src | ||
.gitignore | ||
.gitmodules | ||
CHANGES.txt | ||
CMakeLists.txt | ||
INSTALL.txt | ||
LICENSE | ||
README.md | ||
TODO.txt | ||
unix64.cppcheck | ||
win64.cppcheck |
Speed Dreams
Speed Dreams is a free and open source motorsport simulator. Originally a fork of the TORCS project, it has evolved into a higher level of maturity, featuring realistic physics with tens of high-quality cars and tracks to choose from.
This repository only contains the engine source code. End users are expected to download the pre-built packages listed below.
The assets repository is located on https://forge.a-lec.org/speed-dreams/speed-dreams-data/
Pre-built packages
Speed Dreams binaries are available for the following platforms:
- Debian/Ubuntu (TODO)
- Microsoft Windows (TODO)
Building from source
Speed Dreams can be built from source using the conventional build process in CMake projects:
cmake -B build
cmake --build build/ # Optionally, add -j8 or any other number for faster builds
This assumes the
speed-dreams-data
package is already installed on a well-known location. If not, use the
CMAKE_PREFIX_PATH
variable to indicate CMake where to locate an installed version of the
speed-dreams-data
package:
cmake -B build -DCMAKE_PREFIX_PATH=<path-to-speed-dreams-data>
And then build the project as usual.
If the
speed-dreams-data
package is not found, the game should still be able to build, but it would not be able to run.
Dependencies
Debian/Ubuntu
sudo apt install git cmake build-essential libopenscenegraph-dev libcurl4-gnutls-dev libsdl2-dev libsdl2-mixer-dev librhash-dev libenet-dev libpng-dev libjpeg-dev zlib1g-dev libminizip-dev libopenal-dev libplib-dev libexpat1-dev libcjson-dev openjdk-17-jdk openjdk-17-jre
The version for the
openjdk-*
packages might change among distributions.
License
By default, Speed Dreams code is licensed under the GPLv2-or-later license,
as specified by the LICENSE
file, whereas non-functional data
is licensed under the Free Art License by default.
However, some sections of the code and some other assets are distributed under various free (as in freedom) licenses. Please read their license files located in their respective directories for further reference.
Trademark disclaimer
Windows is a registered trademark of Microsoft Corporation.
Ubuntu is a registered trademark of Canonical Ltd.