-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
48 lines (44 loc) · 1.06 KB
/
Copy pathbuild.bat
File metadata and controls
48 lines (44 loc) · 1.06 KB
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
@rem <build.bat> -*- coding: cp932-dos -*-
@echo off
rem
rem Project proctime
rem Copyright (C) 2023 neige68
rem
rem Note: build
rem
rem Windows: XP and lator
rem
setlocal
pushd %~dp0
set @exec_cmake=
rem VC の vcvarsall.bat のあるディレクトリを指定
set VC=%VC142%
set CMAKEOPT=-G "Visual Studio 16 2019" -A Win32
:optloop
if "%1"=="" goto optend
if "%1"=="cm" set @exec_cmake=t
if "%1"=="cm" goto optnext
if "%1"=="clean" rmdir /q /s build
if "%1"=="clean" goto optnext
echo WARN: build.bat: オプション %1 が無効です.
:optnext
shift
goto optloop
:optend
if "%VCToolsVersion%"=="" call "%VC%\vcvarsall.bat" x86
if not exist build mkdir build
pushd build
if not exist ALL_BUILD.vcxproj set @exec_cmake=t
if not "%@exec_cmake%"=="" cmake %CMAKEOPT% ..
msbuild ALL_BUILD.vcxproj /p:Configuration=Debug /m
echo INFO: build.bat: msbuild Debug Done.
if errorlevel 1 goto err
msbuild ALL_BUILD.vcxproj /p:Configuration=Release /m
echo INFO: build.bat: msbuild Release Done.
:err
popd
:err_pop1
popd
if errorlevel 1 echo エラーがあります.
if errorlevel 1 exit /b 1
rem end of build.bat