windows build script
This commit is contained in:
1
scripts/make_unix_docker.sh → scripts/make_common.sh
Executable file → Normal file
1
scripts/make_unix_docker.sh → scripts/make_common.sh
Executable file → Normal 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
|
@ -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
|
||||
|
@ -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
5
scripts/make_win32.cmd
Normal file
@ -0,0 +1,5 @@
|
||||
@echo off
|
||||
|
||||
pushd "%~dp0%.."
|
||||
mingw64 scripts/make_common.sh %1 "%2"
|
||||
popd
|
Reference in New Issue
Block a user