-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Updating the 'Building Lampray' doc internetisaiah (#113)
Since you're currently storing docs using the repo Wiki, feel free to simply copy+paste my edits and dismiss this PR. ### Changes - I removed `docs` from the `.gitignore` so I could store my files there. - I added `docs/building.md` which is an update to the existing building doc. This includes: - Adding explicit minimum recommended for each dependency. - Reformatting dependencies into a simple table. - Separating each stem into it's own line for better reading. --------- Co-authored-by: Charles Hollingworth <[email protected]>
- Loading branch information
1 parent
af4af84
commit 51413c5
Showing
12 changed files
with
510 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,8 +25,6 @@ ipch | |
*.VC.db | ||
*.VC.VC.opendb | ||
|
||
docs*/ | ||
|
||
## Commonly used CMake directories | ||
build*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
# Building from source | ||
|
||
> Learn how to build Lampray from source. When you're finished, you'll be able to [mod your games using Lampray](./managing-mods.md). | ||
## Step 1: Clone the repository | ||
|
||
To clone the Lampray repository into your home directory, run the following command: | ||
|
||
``` | ||
git clone [email protected]:CHollingworth/Lampray.git ~ | ||
``` | ||
|
||
## Step 2: Install dependencies | ||
|
||
Lampray requires the following: | ||
|
||
| Type | Name | | ||
|-------------|----------------------| | ||
| Build Tool | C++ | | ||
| Build Tool | CMake | | ||
| Build Tool | GCC | | ||
| Build Tool | ninja-build | | ||
| Library | libcurl4-openssl-dev | | ||
| Library | pkg-config | | ||
| Library | SDL2 | | ||
| System Tool | 7-Zip | | ||
| System Tool | Zenity | | ||
|
||
> **Note:** In most cases, Lampray can find your 7-zip installation. However, if it's located in a non-standard location, you'll need to [manually set the path to 7-Zip](./customizing-lampray.md#setting-the-path-to-7-zip). | ||
You can either these dependencies manually or use the included setup script. To use the setup script, run the following command: | ||
|
||
```bash | ||
~/Lampray/setup.sh | ||
``` | ||
|
||
If your setup is successful, you'll see the following output: | ||
|
||
```bash | ||
==> 💁 [ASDF] Done ✅ | ||
``` | ||
|
||
## Step 3: Build from source | ||
|
||
You can build Lampray by [using the Lampray build script](#build-script-recommended) or by [manually running commands](#manual). | ||
|
||
### Build script (recommended) | ||
|
||
To build Lampray using the included build script, run the following command: | ||
|
||
```bash | ||
~/Lampray/build.sh | ||
``` | ||
|
||
If your build is successful, you'll see the following output: | ||
|
||
``` | ||
📦 Build complete | ||
``` | ||
|
||
Finally, launch Lampray. | ||
|
||
```bash | ||
~/Lampray/Build/Lampray | ||
``` | ||
|
||
### Manual | ||
|
||
To generate and configure Lampray's build files manually, run the following command: | ||
|
||
```bash | ||
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=ninja -G Ninja -S ./ -B ./Build | ||
``` | ||
|
||
Open the newly created `Build` directory. | ||
|
||
```bash | ||
cd Build | ||
``` | ||
|
||
Build the Lampray executable. | ||
|
||
```bash | ||
ninja | ||
``` | ||
|
||
Finally, launch Lampray. | ||
|
||
```bash | ||
~/Lampray/Build/Lampray | ||
``` |
Oops, something went wrong.