-
Notifications
You must be signed in to change notification settings - Fork 25
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
4 changed files
with
67 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# CMake build directory | ||
/build | ||
/build_* | ||
/_build | ||
/_build_* | ||
/cmake-build-* | ||
/containers | ||
|
||
# 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,35 @@ | ||
FROM bhl-build | ||
|
||
# Install build script dependencies | ||
RUN add-apt-repository ppa:deadsnakes/ppa | ||
RUN apt-get update | ||
RUN apt-get install -y \ | ||
python3.8 \ | ||
python3.8-venv \ | ||
python3.8-distutils \ | ||
git | ||
|
||
# Install build dependencies | ||
RUN apt-get update | ||
RUN apt-get install -y \ | ||
zlib1g:i386 \ | ||
zlib1g-dev:i386 | ||
|
||
WORKDIR /build/bhl | ||
COPY . . | ||
|
||
RUN python3.8 ./scripts/BuildRelease.py \ | ||
--target client \ | ||
--build-type release \ | ||
--vs 2019 --toolset v141_xp \ | ||
--linux-compiler gcc-9 \ | ||
--out-dir ./_build_out_client \ | ||
--cmake-args="-DWARNINGS_ARE_ERRORS=ON" | ||
|
||
RUN python3.8 ./scripts/BuildRelease.py \ | ||
--target server \ | ||
--build-type release \ | ||
--vs 2019 --toolset v141_xp \ | ||
--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,19 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
CUR_DIR="containers/linux" | ||
|
||
IMAGE_TAG="bhl-build-bhl" | ||
TEMP_CONT="${IMAGE_TAG}-temp" | ||
DOCKERFILE="Dockerfile.linux" | ||
OUT_DIR="$CUR_DIR/out/bhl" | ||
|
||
cd ../.. | ||
mkdir -p $OUT_DIR | ||
|
||
docker buildx build -f $DOCKERFILE -t $IMAGE_TAG . | ||
docker container create --name $TEMP_CONT $IMAGE_TAG | ||
docker container cp ${TEMP_CONT}:/build/bhl/_build_out_client/. $OUT_DIR | ||
docker container cp ${TEMP_CONT}:/build/bhl/_build_out_server/. $OUT_DIR | ||
docker container rm ${TEMP_CONT} |