-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild_all.sh
More file actions
executable file
·46 lines (41 loc) · 1.07 KB
/
build_all.sh
File metadata and controls
executable file
·46 lines (41 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
set -ex
env
if [ ! -f "/.dockerenv" ] && [ $PWD != "/root" ] ; then
docker build -t omnetpp-wasm .
docker run --rm -it --workdir=/root/ -v `pwd`:/root/ omnetpp-wasm bash -c "cd /root/ && ./build_all.sh"
exit $?
fi
source ~/.bashrc
if [ ! -d ~/qtbase/qtbase ]; then
echo "::group::Building Qt"
cd ~/qtbase
./configure -xplatform wasm-emscripten -prefix $PWD/qtbase -opensource -no-compile-examples -confirm-license
make -j4
make install
echo "::endgroup::"
fi
if [ ! -d ~/qtsvg/lib ]; then
echo "::group::Building QtSvg"
cd ~/qtsvg
qmake
make -j4
echo "::endgroup::"
fi
if [ ! -d ~/omnetpp/lib/liboppqtenv.a ]; then
echo "::group::Building OMNeT"
cd ~/
./apply_patches.sh
cd ~/omnetpp
cp configure.user.dist configure.user
cp /usr/local/bin/opp_* /root/omnetpp/bin/
ln -sf /usr/bin/python3 /usr/bin/python
source setenv
# make clean -j4
emconfigure ./configure WITH_OSG=no || cat ./config.log
emmake make -j4 common
emmake make -j4 layout eventlog
emmake make -j4 scave nedxml sim envir utils
emmake make -j4 qtenv cmdenv
echo "::endgroup::"
fi