forked from misakamm/xege
-
Notifications
You must be signed in to change notification settings - Fork 47
/
build_commands.bat
82 lines (63 loc) · 3.9 KB
/
build_commands.bat
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
79
80
81
82
:: 以下命令用于将各版本库文件方便地输出到 build\lib 中
:: MinGW
cmake -G "MinGW Makefiles" -S . -B build\MinGW -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY="%CD%\build\lib\MinGW" -DCMAKE_BUILD_TYPE=Release
cmake --build build\MinGW -j
:: Visual Studio 2008 32bit
:: FIXME: UNTESTED
cmake -G "Visual Studio 9 2008" -A Win32 -S . -B build\vs2008 -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE="%CD%\build\lib\vs2008"
cmake --build build\vs2008 --config Release -j
:: Visual Studio 2008 64bit
:: FIXME: UNTESTED
cmake -G "Visual Studio 9 2008" -A x64 -S . -B build\vs2008_64 -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE="%CD%\build\lib\vs2008\amd64"
cmake --build build\vs2008_64 --config Release -j
:: Visual Studio 2010 32bit
cmake -G "Visual Studio 10 2010" -A Win32 -S . -B build\vs2010 -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE="%CD%\build\lib\vs2010"
cmake --build build\vs2010 --config Release -j
:: Visual Studio 2010 64bit
cmake -G "Visual Studio 10 2010" -A x64 -S . -B build\vs2010_64 -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE="%CD%\build\lib\vs2010\amd64"
cmake --build build\vs2010_64 --config Release -j
:: Visual Studio 2012 32bit
:: FIXME: UNTESTED
cmake -G "Visual Studio 11 2012" -A Win32 -S . -B build\vs2012 -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE="%CD%\build\lib\vs2012"
cmake --build build\vs2012 --config Release -j
:: Visual Studio 2012 64bit
:: FIXME: UNTESTED
cmake -G "Visual Studio 11 2012" -A x64 -S . -B build\vs2012_64 -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE="%CD%\build\lib\vs2012\amd64"
cmake --build build\vs2012_64 --config Release -j
:: Visual Studio 2013 32bit
:: FIXME: UNTESTED
cmake -G "Visual Studio 12 2013" -A Win32 -S . -B build\vs2013 -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE="%CD%\build\lib\vs2013"
cmake --build build\vs2013 --config Release -j
:: Visual Studio 2013 64bit
:: FIXME: UNTESTED
cmake -G "Visual Studio 12 2013" -A x64 -S . -B build\vs2013_64 -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE="%CD%\build\lib\vs2013\amd64"
cmake --build build\vs2013_64 --config Release -j
:: Visual Studio 2015 32bit
cmake -G "Visual Studio 14 2015" -A Win32 -S . -B build\vs2015 -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE="%CD%\build\lib\vs2015"
cmake --build build\vs2015 --config Release -j
:: Visual Studio 2015 64bit
cmake -G "Visual Studio 14 2015" -A x64 -S . -B build\vs2015_64 -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE="%CD%\build\lib\vs2015\amd64"
cmake --build build\vs2015_64 --config Release -j
:: Visual Studio 2017 32bit
cmake -G "Visual Studio 15 2017" -A Win32 -S . -B build\vs2017 -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE="%CD%\build\lib\vs2017\x86"
cmake --build build\vs2017 --config Release -j
:: Visual Studio 2017 64bit
cmake -G "Visual Studio 15 2017" -A x64 -S . -B build\vs2017_64 -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE="%CD%\build\lib\vs2017\x64"
cmake --build build\vs2017_64 --config Release -j
:: Visual Studio 2019 32bit
cmake -G "Visual Studio 16 2019" -A Win32 -S . -B build\vs2019 -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE="%CD%\build\lib\vs2019\x86"
cmake --build build\vs2019 --config Release -j
:: Visual Studio 2019 64bit
cmake -G "Visual Studio 16 2019" -A x64 -S . -B build\vs2019_64 -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE="%CD%\build\lib\vs2019\x64"
cmake --build build\vs2019_64 --config Release -j
:: Visual Studio 2022 32bit
cmake -G "Visual Studio 17 2022" -A Win32 -S . -B build\vs2022 -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE="%CD%\build\lib\vs2022\x86"
cmake --build build\vs2022 --config Release -j
:: Visual Studio 2022 64bit
cmake -G "Visual Studio 17 2022" -A x64 -S . -B build\vs2022_64 -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE="%CD%\build\lib\vs2022\x64"
cmake --build build\vs2022_64 --config Release -j
:: Visual C++ 6.0
:: 请使用 CMD 执行
:: 执行命令前请确保按 BUILD.md 中 `编译配置 -- Visual C++ 6.0` 一节做好设置
cmake -G "NMake Makefiles" -S . -B build\vc6 -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY="%CD%\build\lib\vc6" -DCMAKE_BUILD_TYPE=Release
cmake --build build\vc6