21
|
1 Build libsdl |
22
|
2 ============ |
21
|
3 |
|
4 Version: 2.0.9 |
|
5 Date: 20181113 |
|
6 |
|
7 Download |
|
8 -------- |
|
9 |
22
|
10 - http://libsdl.org/release/SDL2-2.0.9.zip |
21
|
11 |
|
12 Dependencies |
|
13 ------------ |
|
14 |
22
|
15 - [CMake](https://cmake.org). |
21
|
16 |
|
17 Configure |
|
18 --------- |
|
19 |
|
20 ### Visual Studio (debug) |
|
21 |
|
22 mkdir build |
|
23 cd build |
|
24 cmake .. |
|
25 -DCMAKE_BUILD_TYPE=Debug |
|
26 -DCMAKE_INSTALL_PREFIX=C:/pkg/vs/debug |
|
27 -DBUILD_SHARED_LIBS=True |
|
28 -G"NMake Makefiles" |
|
29 |
|
30 ### Visual Studio (release) |
|
31 |
|
32 mkdir build |
|
33 cd build |
|
34 cmake .. |
|
35 -DCMAKE_BUILD_TYPE=Release |
|
36 -DCMAKE_INSTALL_PREFIX=C:/pkg/vs/release |
|
37 -DBUILD_SHARED_LIBS=True |
|
38 -G"NMake Makefiles" |
|
39 |
|
40 Build |
|
41 ----- |
|
42 |
|
43 ### Visual Studio |
|
44 |
|
45 nmake |
22
|
46 nmake install |