File indexing completed on 2024-09-29 08:14:11

0001 #!/bin/sh
0002 
0003 DOCKER_IMAGE=madmanfred/qt-webassembly:qt5.15-em1.39.10-remoteobjects
0004 EMS_CACHE=$HOME/.emscripten_cache
0005 SOURCE_DIR=$PWD
0006 
0007 DOCKER_COMMAND="docker run --rm -v $EMS_CACHE:/emsdk_portable/.data/cache -v $SOURCE_DIR/:/src/ -u $(id -u):$(id -g) $DOCKER_IMAGE"
0008 
0009 # Build
0010 mkdir -p build
0011 $DOCKER_COMMAND qmake -o /src/build CONFIG+=release
0012 $DOCKER_COMMAND make -C /src/build
0013 
0014 # Remove intermediary files
0015 rm -rf build/{moc,objects,*.cpp}