File tree 2 files changed +44
-3
lines changed
2 files changed +44
-3
lines changed Original file line number Diff line number Diff line change @@ -44,9 +44,14 @@ cd ../../bin/Release
44
44
45
45
### Windows
46
46
47
- TBD.
48
- Build works on VS2019. CMake generation, but it will complain about SDL2 due to poorly setup sdl2-config.cmake.
49
- You'll need to setup the paths to SDL2 by hand.
47
+ Double click on build_Visual_Studio_16_2019_x64.bat
48
+
49
+ If you want to use another target edit the beginning of the bat script, or manually:
50
+
51
+ 1 . Point CMake source to %bety_repo_path%
52
+ 1 . Point CMake generation path to %bety_repo_path%/build
53
+
54
+ Build tested on VS2019.
50
55
51
56
### Python scripts
52
57
Original file line number Diff line number Diff line change
1
+
2
+ @ echo off
3
+ SETLOCAL
4
+
5
+ set GENERATOR = " Visual Studio 16 2019"
6
+ set PLATFORM = x64
7
+
8
+ set CMAKE_BIN_x86 = " C:\Program Files (x86)\CMake\bin\cmake.exe"
9
+ set CMAKE_BIN_x64 = " C:\Program Files\CMake\bin\cmake.exe"
10
+ IF EXIST %CMAKE_BIN_x64% (
11
+ echo CMake 64-bit detected
12
+ set CMAKE_BIN = %CMAKE_BIN_x64%
13
+ ) ELSE (
14
+ IF EXIST %CMAKE_BIN_x86% (
15
+ echo CMake 32-bit detected
16
+ set CMAKE_BIN = %CMAKE_BIN_x86%
17
+ ) ELSE (
18
+ echo Cannot detect either %CMAKE_BIN_x86% or
19
+ echo %CMAKE_BIN_x64% make sure CMake is installed
20
+ EXIT /B 1
21
+ )
22
+ )
23
+ echo Using CMake at %CMAKE_BIN%
24
+
25
+ mkdir build
26
+ cd build
27
+ echo --- Building betsy ---
28
+ %CMAKE_BIN% -G %GENERATOR% -A %PLATFORM% ..
29
+ %CMAKE_BIN% --build . --config Debug
30
+ %CMAKE_BIN% --build . --target install --config Debug
31
+ %CMAKE_BIN% --build . --config Release
32
+ %CMAKE_BIN% --build . --target install --config Release
33
+
34
+ echo Done!
35
+
36
+ ENDLOCAL
You can’t perform that action at this time.
0 commit comments