FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
simple-binary-encoding/cppbuild/cppbuild.cmd at master · michael-ameri/simple-binary-encoding · GitHub
michael-ameri
/
simple-binary-encoding
Public
forked from
aeron-io/simple-binary-encoding
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
simple-binary-encoding
/
cppbuild
/
cppbuild.cmd
Copy path
More file actions
More file actions
Latest commit
History
History
History
42 lines (30 loc) · 989 Bytes
Breadcrumbs
simple-binary-encoding
/
cppbuild
/
cppbuild.cmd
Copy path
File metadata and controls
42 lines (30 loc) · 989 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
@
if
"
%DEBUG%
"
==
"
"
@
echo
off
setlocal
EnableDelayedExpansion
set
SOURCE_DIR
=
%CD%
set
BUILD_DIR
=
%CD%
\cppbuild\Release
for
%%o
in
(
%*
)
do
(
set
PROCESSED
=
0
if
"
%%o
"
==
"
--help
"
(
echo
cppbuild.cmd [--c-warnings-as-errors] [--cxx-warnings-as-errors]
exit
/b
)
if
"
%%o
"
==
"
--c-warnings-as-errors
"
(
set
EXTRA_CMAKE_ARGS
=
!EXTRA_CMAKE_ARGS!
-DC_WARNINGS_AS_ERRORS=ON
set
PROCESSED
=
1
)
if
"
%%o
"
==
"
--cxx-warnings-as-errors
"
(
set
EXTRA_CMAKE_ARGS
=
!EXTRA_CMAKE_ARGS!
-DCXX_WARNINGS_AS_ERRORS=ON
set
PROCESSED
=
1
)
)
call
cppbuild/vs-helper.cmd
if
%ERRORLEVEL%
neq
0
exit
/b
%ERRORLEVEL%
if
EXIST
%BUILD_DIR%
rd
/S /Q
%BUILD_DIR%
md
%BUILD_DIR%
pushd
%BUILD_DIR%
cmake
%EXTRA_CMAKE_ARGS%
%SOURCE_DIR%
if
%ERRORLEVEL%
neq
0
exit
/b
%ERRORLEVEL%
cmake --build . --clean-first --config Release
if
%ERRORLEVEL%
neq
0
exit
/b
%ERRORLEVEL%
ctest -C Release --output-on-failure
if
%ERRORLEVEL%
neq
0
exit
/b
%ERRORLEVEL%
Back
|
FazBrowse Home
|
New Git URL