blob: f699c27a18928632656b0fe045d081cab54a1f79 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
# crêpe
This repository contains:
|folder|content|
|-|-|
|`lib/`|third-party libraries as git submodules|
|`mwe/`|minimal working examples and standalone proof-of-concepts (isolated from the engine)|
|`src/crepe/`|game engine source code|
|`src/test/`|unit tests|
|`src/example/`|standalone examples or proof-of-concepts using game engine internals|
## Compilation
This repository uses CMake (the makefile in the root of this repository is for
running auxiliary tasks only). See [src/readme.md](src/readme.md) for detailed
building instructions.
## Code style
Please read [contributing.md](./contributing.md).
## Libraries
This project uses the following libraries
|Name|Version|
|-|-:|
|`SDL2`|2.30.9|
|`SDL2_image`|2.8.2|
|`SDL_ttf`|2.22.0|
|`SoLoud`|20200207|
|Google Test (`GTest`)|1.15.2|
|Berkeley DB (`libdb`)|5.3.21|
> [!NOTE]
> Most of these libraries are likely available from your package manager if you
> are using Linux or MinGW. Make sure your entire distribution is up-to-date if
> you are not using a rolling release distribution.
The sources for all of the above libraries are also included in this repository
as git submodules, which may be used if your distro's package manager does not
provide (recent enough versions of) them. To build any of the libraries
manually, make sure the submodules are initialized by running:
```
$ git submodule update --init --recursive --depth 1
```
Then, follow these steps for each library you want to install:
1. Change into the library folder (run **one** of these):
```
$ cd lib/googletest
$ cd lib/sdl2
$ cd lib/soloud/contrib
$ cd lib/sdl_image
$ cd lib/sdl_ttf
```
2. Use CMake to configure the build, run the build and install (run **all** of
these):
```
$ cmake -B build -G Ninja
$ cmake --build build
# cmake --install build
```
## Tooling
- TODO
## Documentation
API documentation is done using Doxygen. To generate the docs, run
```
$ make doxygen
```
|