pandemonium_engine_docs/05_engine_development/01_compiling/getting_source.md

52 lines
2.1 KiB
Markdown
Raw Normal View History

2023-01-12 20:49:14 +01:00
# Getting the source
2024-03-16 20:56:52 +01:00
## Downloading the Pandemonium source code
2023-01-12 20:47:54 +01:00
Before `getting into the SCons build system ( doc_introduction_to_the_buildsystem )`
2024-03-16 20:56:52 +01:00
and compiling Pandemonium, you need to actually download the Pandemonium source code.
The source code is available on `GitHub ( https://github.com/Relintai/pandemonium_engine )`
and while you can manually download it via the website, in general you want to
2023-01-12 19:43:03 +01:00
do it via the `git` version control system.
If you are compiling in order to make contributions or pull requests, you should
2023-01-12 20:47:54 +01:00
follow the instructions from the `Pull Request workflow ( doc_pr_workflow )`.
2023-01-12 19:43:03 +01:00
If you don't know much about `git` yet, there are a great number of
2023-01-12 20:39:50 +01:00
`tutorials ( https://git-scm.com/book )` available on various websites.
2023-01-12 19:43:03 +01:00
In general, you need to install `git` and/or one of the various GUI clients.
2024-03-16 20:56:52 +01:00
Afterwards, to get the latest development version of the Pandemonium source code
2023-01-12 19:43:03 +01:00
(the unstable `master` branch), you can use `git clone`.
2023-01-12 19:43:03 +01:00
If you are using the `git` command line client, this is done by entering
the following in a terminal:
2023-01-12 22:00:14 +01:00
```
git clone https://github.com/Relintai/pandemonium_engine.git
# You can add the --depth 1 argument to omit the commit history.
# Faster, but not all Git operations (like blame) will work.
2023-01-12 22:00:14 +01:00
```
For any stable release, visit the `release page ( https://github.com/Relintai/pandemonium_engine/releases )`
and click on the link for the release you want.
You can then download and extract the source from the download link on the page.
2023-01-12 19:43:03 +01:00
With `git`, you can also clone a stable release by specifying its branch or tag
2023-01-12 22:00:14 +01:00
after the `--branch` (or just `-b`) argument:
2023-01-12 22:00:14 +01:00
```
# Clone the continuously maintained stable branch (`3.x` as of writing).
git clone https://github.com/Relintai/pandemonium_engine.git -b 3.x
# Clone the `3.2.3-stable` tag. This is a fixed revision that will never change.
git clone https://github.com/Relintai/pandemonium_engine.git -b 3.2.3-stable
2023-01-12 22:00:14 +01:00
```
2023-01-12 19:43:03 +01:00
There are also generally branches besides `master` for each major version.
2024-03-16 20:56:52 +01:00
After downloading the Pandemonium source code,
you can `continue to compiling Pandemonium ( doc_introduction_to_the_buildsystem )`.