File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,41 @@ spry examples/jump
55
55
spry examples/boxes
56
56
```
57
57
58
+ ## Building from source
59
+
60
+ Requires CMake and one of the following C/C++ compilers depending on the
61
+ platform:
62
+
63
+ - Visual Studio for Windows
64
+ - Clang for Linux
65
+ - Emscripten for web browsers
66
+
67
+ Other compilers might work, but they haven't been tested.
68
+
69
+ In the command line:
70
+
71
+ ``` sh
72
+ mkdir build
73
+ cd build
74
+ cmake .. # This command probably looks different
75
+ cmake --build .
76
+ ```
77
+
78
+ The first ` cmake ` command might need extra flags depending on the environment.
79
+ For example, the command below generates a release build for a Linux machine
80
+ that has both ` gcc ` and ` clang ` installed, since CMake would likely choose
81
+ ` gcc ` over ` clang ` :
82
+
83
+ ``` sh
84
+ cmake -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DCMAKE_BUILD_TYPE=Release ..
85
+ ```
86
+
87
+ This command should be used when building for web browsers:
88
+
89
+ ``` sh
90
+ emcmake cmake -DCMAKE_BUILD_TYPE=Release ..
91
+ ```
92
+
58
93
## Shoutouts
59
94
60
95
Special thanks to:
You can’t perform that action at this time.
0 commit comments