1
0
mirror of synced 2025-02-02 20:37:25 +01:00
jujube/docs/Compiling.md

26 lines
1015 B
Markdown
Raw Normal View History

# Compiling jujube
jujube uses the meson build system.
2020-02-09 14:07:54 +01:00
Only time will tell if this turned out to be a wise choice, I wanted to try something other than CMake.
2020-02-09 14:07:54 +01:00
jujube needs a *very* up to date C++ compiler for I'm using stuff like `std::filesystem` which is, at the time of writing, *easily* availble only on the last few versions of your favorite compiler
## Linux
### Dependancies
- **SFML 2.5.1** : You will most likely need to build SFML yourself, and with the same compiler as the one you will use for jujube because if you just get precompiled binaries for SFML from your package manager you *will* have compatibility problems. [Here's](https://www.sfml-dev.org/tutorials/2.5/compile-with-cmake.php) their docs.
- **meson** : Installation explained [here](https://mesonbuild.com/Quick-guide.html)
### Building
2020-02-09 14:07:54 +01:00
let's say you downloaded the source code in a folder called `jujube` and you decided to compile with `gcc-9`
```bash
$ cd jujube
$ CXX=gcc-9 meson build
$ cd build
$ ninja
2020-02-09 14:07:54 +01:00
```
And that's it !