2021-12-31 11:15:50 +01:00
|
|
|
# Compiling
|
2021-12-30 01:48:17 +01:00
|
|
|
|
2021-12-31 11:15:50 +01:00
|
|
|
In other words, how to create a new F.E.I.S. executable from the source code.
|
2021-12-30 01:48:17 +01:00
|
|
|
|
2022-04-11 01:25:24 +02:00
|
|
|
0. (If not done already) Set up you work environment by following
|
|
|
|
[the Setup Steps](docs/Setup.md)
|
2021-12-30 01:48:17 +01:00
|
|
|
0. `cd` into the root of your local copy of F.E.I.S.'s source code
|
|
|
|
|
|
|
|
```console
|
|
|
|
$ cd F.E.I.S./
|
|
|
|
```
|
|
|
|
|
2022-03-16 02:10:18 +01:00
|
|
|
0. Setup a build directory called `build`
|
2021-12-30 01:48:17 +01:00
|
|
|
|
|
|
|
```console
|
|
|
|
$ meson setup build
|
|
|
|
```
|
|
|
|
|
2022-04-11 01:25:24 +02:00
|
|
|
If you want to compile the unit tests as well, pass in `-D tests=true`.
|
|
|
|
You can also set this option later by doing :
|
|
|
|
|
|
|
|
```console
|
|
|
|
$ meson configure build -D tests=true
|
|
|
|
```
|
|
|
|
|
2022-03-16 02:10:18 +01:00
|
|
|
0. Compile in that directory
|
2021-12-30 01:48:17 +01:00
|
|
|
|
|
|
|
```console
|
|
|
|
$ meson compile -C build
|
|
|
|
```
|
|
|
|
|
2021-12-31 11:15:50 +01:00
|
|
|
0. Setup the assets
|
2021-12-30 01:48:17 +01:00
|
|
|
|
|
|
|
```console
|
|
|
|
$ ln -s ../assets build/assets
|
|
|
|
```
|