-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
46 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
/_build | ||
/_build_* | ||
/cmake-build-* | ||
/containers | ||
/containers/*/out | ||
|
||
# macOS garbage | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM bhl-build | ||
|
||
# Build | ||
WORKDIR /build/bhl | ||
COPY . . | ||
|
||
RUN python ./scripts/BuildRelease.py \ | ||
--target client \ | ||
--build-type release \ | ||
--vs 2022 --toolset v143 \ | ||
--linux-compiler gcc-9 \ | ||
--out-dir ./_build_out_client \ | ||
--cmake-args=-DWARNINGS_ARE_ERRORS=ON | ||
|
||
RUN python ./scripts/BuildRelease.py \ | ||
--target server \ | ||
--build-type release \ | ||
--vs 2022 --toolset v143 \ | ||
--linux-compiler gcc-9 \ | ||
--out-dir ./_build_out_server \ | ||
--cmake-args=-DWARNINGS_ARE_ERRORS=ON |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
. ./_common.ps1 | ||
|
||
$CurDir = "containers/windows" | ||
|
||
$ImageTag = "bhl-build-bhl" | ||
$TempCont = "${ImageTag}-temp" | ||
$DockerFile = "Dockerfile.windows" | ||
$OutDir = "$CurDir/out/bhl" | ||
|
||
cd ../.. | ||
rm -r -fo -ea 0 $OutDir | ||
mkdir $OutDir -ea 0 | ||
|
||
Invoke-Call -ScriptBlock { docker build -f $DockerFile -t $ImageTag . } | ||
Invoke-Call -ScriptBlock { docker container create --name $TempCont $ImageTag } | ||
Invoke-Call -ScriptBlock { docker container cp ${TempCont}:C:/build/bhl/_build_out_client $OutDir } | ||
Invoke-Call -ScriptBlock { docker container cp ${TempCont}:C:/build/bhl/_build_out_server $OutDir } | ||
Invoke-Call -ScriptBlock { docker container rm ${TempCont} } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters