File tree 6 files changed +22
-19
lines changed
6 files changed +22
-19
lines changed Original file line number Diff line number Diff line change 19
19
runs-on : ubuntu-22.04
20
20
env :
21
21
BUILDS : 3.12 3.13 3.14
22
- EMFLAVOUR : tot
22
+ EMFLAVOUR : latest
23
23
24
24
steps :
25
25
Original file line number Diff line number Diff line change 197
197
if $CI
198
198
then
199
199
pushd /
200
- tar -cpR $SDKROOT \
200
+ tar \
201
201
--exclude=${SDKROOT} /devices/* /usr/bin/* 3.1* \
202
202
--exclude=${SDKROOT} /devices/* /usr/lib/python3.1? \
203
203
--exclude=${SDKROOT} /devices/* /usr/include/python3.1? \
207
207
--exclude=${SDKROOT} /sources.* \
208
208
--exclude=${SDKROOT} /build \
209
209
--exclude=${SDKROOT} /src \
210
- > /tmp/sdk/emsdk.tar
210
+ -cpR $SDKROOT > /tmp/sdk/emsdk.tar
211
211
212
212
date " +%d-%m-%4Y" > /tmp/sdk/emsdk.version
213
213
popd
240
240
========================================================== " 1>&2
241
241
242
242
rm -rf ${SDKROOT} /emsdk/upstream/emscripten/cache/ports*
243
- rm -rf ${SDKROOT} /emsdk/upstream/emscripten/cache/ports/sdl2/SDL-*
244
- rm -rf ${SDKROOT} /emsdk/upstream/emscripten/cache/ports
245
- rm -rf ${SDKROOT} /emsdk/upstream/emscripten/cache/ports-builds
246
243
rm -rf ${SDKROOT} /emsdk/upstream/emscripten/tests
247
244
248
245
else
296
293
297
294
# pack extra build scripts
298
295
pushd /
299
- tar -cpPRz ${SDKROOT} /scripts/emsdk-extra.sh ${SDKROOT} /sources.extra/* > /tmp/sdk/sdk-extra.tar.gz
296
+ tar -cpPRz \
297
+ ${SDKROOT} /scripts/emsdk-extra.sh \
298
+ ${SDKROOT} /scripts/emsdk-fetch.sh \
299
+ ${SDKROOT} /sources.extra/* > /tmp/sdk/sdk-extra.tar.gz
300
300
301
301
# pack sdl as minimal prebuilt tar, and use lz4 compression on it
302
302
. ${SDKROOT} /scripts/pack-sdk.sh
Original file line number Diff line number Diff line change 197
197
if $CI
198
198
then
199
199
pushd /
200
- tar -cpR $SDKROOT \
200
+ tar \
201
201
--exclude=${SDKROOT} /devices/* /usr/bin/* 3.1* \
202
202
--exclude=${SDKROOT} /devices/* /usr/lib/python3.1? \
203
203
--exclude=${SDKROOT} /devices/* /usr/include/python3.1? \
207
207
--exclude=${SDKROOT} /sources.* \
208
208
--exclude=${SDKROOT} /build \
209
209
--exclude=${SDKROOT} /src \
210
- > /tmp/sdk/emsdk.tar
210
+ -cpR $SDKROOT > /tmp/sdk/emsdk.tar
211
211
212
212
date " +%d-%m-%4Y" > /tmp/sdk/emsdk.version
213
213
popd
240
240
========================================================== " 1>&2
241
241
242
242
rm -rf ${SDKROOT} /emsdk/upstream/emscripten/cache/ports*
243
- rm -rf ${SDKROOT} /emsdk/upstream/emscripten/cache/ports/sdl2/SDL-*
244
- rm -rf ${SDKROOT} /emsdk/upstream/emscripten/cache/ports
245
- rm -rf ${SDKROOT} /emsdk/upstream/emscripten/cache/ports-builds
246
243
rm -rf ${SDKROOT} /emsdk/upstream/emscripten/tests
247
244
248
245
else
296
293
297
294
# pack extra build scripts
298
295
pushd /
299
- tar -cpPRz ${SDKROOT} /scripts/emsdk-extra.sh ${SDKROOT} /sources.extra/* > /tmp/sdk/sdk-extra.tar.gz
296
+ tar -cpPRz \
297
+ ${SDKROOT} /scripts/emsdk-extra.sh \
298
+ ${SDKROOT} /scripts/emsdk-fetch.sh \
299
+ ${SDKROOT} /sources.extra/* > /tmp/sdk/sdk-extra.tar.gz
300
300
301
301
# pack sdl as minimal prebuilt tar, and use lz4 compression on it
302
302
. ${SDKROOT} /scripts/pack-sdk.sh
Original file line number Diff line number Diff line change 2
2
3
3
if [[ -z ${EMSDK+z} ]]
4
4
then
5
-
6
- . ${CONFIG:- config}
5
+ pushd ${SDKROOT}
6
+ . ${CONFIG:- config}
7
+ popd
7
8
8
9
if [ -d emsdk ]
9
10
then
22
23
./emsdk install ${EMFLAVOUR:- latest}
23
24
./emsdk activate ${EMFLAVOUR:- latest}
24
25
25
-
26
26
pushd upstream/emscripten
27
27
echo " FIXME: applying stdio* are not const"
28
28
sed -i ' s|extern FILE \*const|extern FILE \*|g' cache/sysroot/include/stdio.h
172
172
173
173
export EMSDK_PYTHON=$SYS_PYTHON
174
174
175
- if [ -f emsdk /.complete ]
175
+ if [ -f $EMSDK /.complete ]
176
176
then
177
177
echo "
178
178
* emsdk prereq ok
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ pushd /
11
11
mkdir -p /tmp/sdk
12
12
tar -cpPR \
13
13
${SDKROOT} /config \
14
- ${SDKROOT} /* -cc \
14
+ ${SDKROOT} /emsdk -cc \
15
15
${SDKROOT} /python3-was? \
16
16
${SDKROOT} /wasm32-* -shell.sh \
17
17
${SDKROOT} /* sdk \
Original file line number Diff line number Diff line change @@ -88,7 +88,10 @@ int iconv_close(iconv_t);
88
88
END
89
89
fi
90
90
91
- GDAL_PYTHON_BINDINGS_WITHOUT_NUMPY=1 emcmake cmake -DCMAKE_POSITION_INDEPENDENT_CODE=True -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX ${ROOT} /src/libgdal \
91
+ GDAL_PYTHON_BINDINGS_WITHOUT_NUMPY=1 emcmake cmake \
92
+ -DCMAKE_CXX_FLAGS=-m32 -DCMAKE_C_FLAGS=-m32 \
93
+ -DCMAKE_BUILD_TYPE=Release \
94
+ -DCMAKE_POSITION_INDEPENDENT_CODE=True -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX ${ROOT} /src/libgdal \
92
95
-DPROJ_DIR=${PREFIX} -DPROJ_LIBRARY=${PREFIX} /lib/libproj.a -DPROJ_INCLUDE_DIR=${PREFIX} /include \
93
96
-DACCEPT_MISSING_SQLITE3_MUTEX_ALLOC:BOOL=ON -DBUILD_PYTHON_BINDINGS=OFF
94
97
You can’t perform that action at this time.
0 commit comments