Compare commits

..

No commits in common. "15fb1cc7af812d31070c42d3a153f5fcfe24a878" and "f376ca6402bcaa279579a52001ed2414eef22dc5" have entirely different histories.

7 changed files with 13 additions and 37 deletions

View File

@ -15,11 +15,10 @@ RUN DEBIAN_FRONTEND=noninteractive apt install -y bash \
RUN cd /opt && git clone https://github.com/boostorg/boost.git boost
RUN cd /opt/boost && git submodule update --init --recursive
RUN cd /opt/boost && ./bootstrap.sh --with-libraries=system,date_time,filesystem,thread
RUN cd /opt/boost && ./bootstrap.sh
RUN cd /opt/boost && ./b2 -j4 toolset=emscripten \
cflags="-s USE_PTHREADS=1"\
cxxflags="-s USE_PTHREADS=1" \
cflags="-s USE_PTHREADS=1" cxxflags="-s USE_PTHREADS=1" \
--prefix=/opt/libboost \
--build-dir=/opt/libboost_build \
link=static \

8
povray_wasm/compile.sh Normal file
View File

@ -0,0 +1,8 @@
#!/bin/bash
bash ./build_docker.sh
sudo docker run \
-v $PWD:/usr/src/build \
povray_wasm \
sh -c 'cd /usr/src/povray && cp ../build/build.sh build.sh && bash build.sh'

3
povray_wasm/docker.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
sudo docker build -t povray_wasm --rm .

View File

@ -1,19 +0,0 @@
#!/bin/bash
help () {
echo "Usage: ./pw [command]"
echo " "
echo "Commands:"
echo " build - Build the docker image with optional -f/--force"
echo " compile - Run the compilation process"
}
if [[ "${1}" == "build" ]]; then
bash ./scripts/build.sh "${2}"
elif [[ "${1}" == "cmd" ]]; then
bash ./scripts/cmd.sh ${@}
elif [[ "${1}" == "compile" ]]; then
bash ./scripts/compile.sh
else
help
fi

View File

@ -1,9 +0,0 @@
#!/bin/bash
if [[ "${1}" == "-f" ]] || [[ "${1}" == "--force" ]]; then
ARG="--no-cache"
else
ARG=""
fi
sudo docker build ${ARG} -t povray_wasm --rm .

View File

@ -1,6 +0,0 @@
#!/bin/bash
sudo docker run \
-v $PWD:/usr/src/build \
povray_wasm \
sh -c 'cd /usr/src/povray && cp /usr/src/build/build.sh build.sh && bash build.sh'