Skip to content

Commit 9862245

Browse files
committed
[README.md] Reflect Cygwin support ; [cmake\scripts\*.bat] Add build scripts for different (common) MSVC configurations in preparation for adding to releases on GitHub (separately will do GitHub actions for macOS and Linux)
1 parent 96fb994 commit 9862245

File tree

6 files changed

+68
-1
lines changed

6 files changed

+68
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ This adds the string related functionality for:
1111
- MSVC 2005
1212
- MSVC 2022 (should support all other versions also)
1313
- MinGW
14+
- Cygwin
1415
- Open Watcom 2.0 (including **DOS** target)
1516
- **SunOS**
1617
- **Linux**
@@ -71,7 +72,7 @@ ctest -C Debug
7172

7273
With v2 from https://github.com/open-watcom/open-watcom-v2/releases installed:
7374
```sh
74-
WATCOM\owsetenv.bat
75+
[path]\WATCOM\owsetenv.bat
7576
mkdir build_dos && cd build_dos
7677
cmake -G "Watcom WMake" -D CMAKE_SYSTEM_NAME "DOS" -D CMAKE_SYSTEM_PROCESSOR "I86" ..
7778
cmake --build .

cmake/scripts/build_all.bat

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
@echo on
2+
call "%~dp0\build_msvc64_2005.bat"
3+
call "%~dp0\build_msvc86_2005.bat"
4+
call "%~dp0\build_msvc64_2022.bat"
5+
call "%~dp0\build_msvc86_2022.bat"
6+
:: build_dos
7+
:: build_mingw32
8+
:: build_mingw64
9+
:: build_cygwin
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
@echo on
2+
3+
IF NOT DEFINED VSINSTALLDIR (
4+
set VSINSTALLDIR="C:\PROGRA~2\Microsoft Visual Studio 8"
5+
)
6+
call "%VSINSTALLDIR%\VC\vcvarsall.bat"
7+
8+
set build_dir="build_msvc64_2005"
9+
IF EXIST "%build_dir%" rd /s /q "%build_dir%"
10+
md "%build_dir%"
11+
cd "%build_dir%"
12+
cmake -DCMAKE_BUILD_TYPE="Debug" -G "NMake Makefiles" .. && cmake --build . && ctest -C Debug
13+
cd ..
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
@echo on
2+
3+
IF NOT DEFINED VS2022INSTALLDIR (
4+
set VS2022INSTALLDIR="C:\PROGRA~1\Microsoft Visual Studio\2022\Enterprise"
5+
)
6+
7+
IF EXIST "%VS2022INSTALLDIR%\VC\Auxiliary\Build\vcvarsall.bat" (
8+
call "%VS2022INSTALLDIR%\VC\Auxiliary\Build\vcvars64.bat"
9+
) ELSE (
10+
call "\VC\Auxiliary\Build\vcvars64.bat"
11+
)
12+
13+
set build_dir="build_msvc64_2022"
14+
IF EXIST "%build_dir%" rd /s /q "%build_dir%"
15+
md "%build_dir%"
16+
cd "%build_dir%"
17+
cmake -DCMAKE_BUILD_TYPE="Debug" -G "Visual Studio 17 2022" -A x64 .. && cmake --build . && ctest -C Debug
18+
cd ..
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
@echo on
2+
3+
IF NOT DEFINED VSINSTALLDIR (
4+
set VSINSTALLDIR="C:\PROGRA~2\Microsoft Visual Studio 8"
5+
)
6+
call "%VSINSTALLDIR%\VC\vcvarsall.bat"
7+
8+
set build_dir="build_msvc86_2005"
9+
IF EXIST "%build_dir%" rd /s /q "%build_dir%"
10+
md "%build_dir%"
11+
cd "%build_dir%"
12+
cmake -DCMAKE_BUILD_TYPE="Debug" -G "NMake Makefiles" .. && cmake --build . && ctest -C Debug
13+
cd ..
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
@echo on
2+
3+
IF NOT DEFINED VS2022INSTALLDIR (
4+
set VS2022INSTALLDIR="C:\PROGRA~1\Microsoft Visual Studio\2022\Enterprise"
5+
)
6+
call "%VS2022INSTALLDIR%\VC\Auxiliary\Build\vcvars32.bat"
7+
8+
set build_dir="build_msvc86_2022"
9+
IF EXIST "%build_dir%" rd /s /q "%build_dir%"
10+
md "%build_dir%"
11+
cd "%build_dir%"
12+
cmake -DCMAKE_BUILD_TYPE="Debug" -G "Visual Studio 17 2022" -A x86 .. && cmake --build . && ctest -C Debug
13+
cd ..

0 commit comments

Comments
 (0)