-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_cygwin.bat
More file actions
18 lines (14 loc) · 875 Bytes
/
build_cygwin.bat
File metadata and controls
18 lines (14 loc) · 875 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
@echo on
IF NOT DEFINED CYGWININSTALLDIR (
set CYGWININSTALLDIR="C:\usr\cygwin64"
)
set build_dir="%cd%\build_cygwin"
IF EXIST "%build_dir%" rd /s /q "%build_dir%"
md "%build_dir%"
cd "%build_dir%"
set pth=%CD:~2,99%
set pth=%pth:\=/%
set drv=%CD:~0,1%
set "fullpath=/cygdrive/%drv%%pth%"
%CYGWININSTALLDIR%"\bin\bash" --login -c "cd '%fullpath%' && cmake -DCMAKE_BUILD_TYPE='Debug' -DCMAKE_MAKE_PROGRAM=$(cygpath $(where ninja)) -G 'Ninja' -DBUILD_SHARED_LIBS=OFF -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=OFF -DCDD_CHARSET=UNICODE -DCDD_THREADING=OFF -DCDD_DEPS=FETCHCONTENT -DC_CDD_BUILD_TESTING=ON -DC_ORM_BUILD_TESTING=ON -DC_ABSTRACT_HTTP_BUILD_TESTING=ON -DC_FS_BUILD_TESTING=ON -DBUILD_TESTING=ON -DCDD_MSVC_RTC=OFF -DCMAKE_C_FLAGS_INIT=-D_GNU_SOURCE -DCMAKE_CXX_FLAGS_INIT=-D_GNU_SOURCE .. && cmake --build . && ctest -C 'Debug' && cpack -G 'ZIP' -C 'Debug'"
cd ..