forked from pygame-web/pygbag
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wasm-build-all.sh
executable file
·78 lines (53 loc) · 1.07 KB
/
wasm-build-all.sh
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#!/bin/bash
reset
export CI=${CI:-false}
export WORKSPACE=${GITHUB_WORKSPACE:-$(pwd)}
export BUILDS=${BUILDS:-3.12 3.11}
export STATIC=${STATIC:-true}
. scripts/vendoring.sh
chmod +x *sh scripts/*.sh packages.d/*/*sh
for PYBUILD in $BUILDS
do
export PYBUILD
if [ -f vendor/vendor.sh ]
then
echo " vendor build"
if ${ABI3:-false}
then
echo " vendor build (abi3) $PYBUILD"
if echo $PYBUILD|grep -v -q 3.12$
then
echo "abi3 vendor build only, skipping $PYBUILD"
exit 0
fi
fi
fi
if ./scripts/build-pkg.sh
then
echo done
else
exit 24
fi
done
echo "
* building Loaders
"
echo TODO date +"%Y.%m"
for PYBUILD in $BUILDS
do
export PYBUILD
. ${CONFIG:-$SDKROOT/config}
echo "
* building loader for CPython${PYMAJOR}.${PYMINOR} $PYBUILD
"
./scripts/build-loader.sh
done
if echo "$@"|grep PKPY
then
./scripts/build-pkpy.sh
fi
if echo "$@"|grep WAPY
then
./scripts/build-wapy2.sh
fi
#