windows build script

This commit is contained in:
2023-12-12 13:06:31 -06:00
parent 932ea6cb1d
commit eeba641732
5 changed files with 148 additions and 58 deletions

1
scripts/make_unix_docker.sh → scripts/make_common.sh Executable file → Normal file
View File

@ -37,6 +37,7 @@ if [ "${IS_MINGW}" == "1" ]; then
fi
cmake ../.. ${CMAKE_ADDITIONAL_OPTS} \
-G"Unix Makefiles" \
-DCMAKE_BUILD_TYPE=${BUILD_TYPE} \
-DREPERTORY_ENABLE_S3=ON \
-DREPERTORY_ENABLE_S3_TESTING=ON || exit 1

View File

@ -1,5 +1,6 @@
#!/bin/bash
pushd "$(dirname "$0")/.."
scripts/make_unix_docker.sh ${1} "${2}" 1
mingw
scripts/make_common.sh ${1} "${2}" 1
popd

View File

@ -18,6 +18,6 @@ docker stop repertory_${NAME}
docker rm repertory_${NAME}
docker build -t repertory:${NAME} - < ${SOURCE_DIR}/docker/${BUILD_ARCH}/${NAME} &&
docker run -td -u $(id -u):$(id -g) --device /dev/fuse --cap-add SYS_ADMIN --name repertory_${NAME} --env MY_NUM_JOBS=${MY_NUM_JOBS} -w ${SOURCE_DIR} -v ${SOURCE_DIR}:${SOURCE_DIR}:rw,z repertory:${NAME} &&
docker exec repertory_${NAME} /bin/bash -c "${SOURCE_DIR}/scripts/make_unix_docker.sh ${BUILD_TYPE} ${BUILD_CLEAN}"
docker exec repertory_${NAME} /bin/bash -c "${SOURCE_DIR}/scripts/make_common.sh ${BUILD_TYPE} ${BUILD_CLEAN}"
docker stop repertory_${NAME}
docker rm repertory_${NAME}

5
scripts/make_win32.cmd Normal file
View File

@ -0,0 +1,5 @@
@echo off
pushd "%~dp0%.."
mingw64 scripts/make_common.sh %1 "%2"
popd