Skip to content

Commit e1d8c94

Browse files
committed
sync 3d mouse patch
1 parent 427aaec commit e1d8c94

File tree

8 files changed

+29
-8
lines changed

8 files changed

+29
-8
lines changed

config

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ do
118118
fi
119119
done
120120

121+
# ================ aosp ===================
122+
123+
AOSP_NDK=25.2.9519653
124+
125+
121126

122127
# this is python used for emsdk : ${SYS_PYTHON} -> ${EMSDK_PYTHON}
123128
for py in 10 9 8 7

python-wasi-sdk.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ then
2222
nimsdk=${nimsdk:-false}
2323
else
2424
emsdk=false
25-
BUILDS=3.12
25+
BUILDS=3.13
2626
wasisdk=true
2727
nimsdk=true
2828
fi

python-wasm-sdk.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ then
2222
nimsdk=${nimsdk:-false}
2323
else
2424
emsdk=false
25-
BUILDS=3.12
25+
BUILDS=3.13
2626
wasisdk=true
2727
nimsdk=true
2828
fi

scripts/cpython-build-emsdk-deps.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ cd $ROOT
4444

4545
# https://download.osgeo.org/libtiff/tiff-4.3.0.tar.gz
4646
# http://code.google.com/intl/en-US/speed/webp/index.html
47+
# https://github.com/webmproject/libwebp/tags
4748

4849
ALL="-fPIC -s USE_SDL=2 -sUSE_LIBPNG -sUSE_LIBJPEG $CPPFLAGS"
4950
CNF="emconfigure ./configure --prefix=$PREFIX --with-pic --disable-shared --host $(clang -dumpmachine)"
@@ -116,7 +117,7 @@ then
116117
" 1>&2
117118
else
118119
#[ -d SDL_image ] || git clone https://github.com/libsdl-org/SDL_image
119-
if [ -d SDL2_image-2.6.1 ]
120+
if [ -d SDL2_${SDL_IMG} ]
120121
then
121122
echo "
122123
* build SDL2_image from release

scripts/cpython-build-emsdk-prebuilt.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ PIP="${SDKROOT}/python3-wasm -m pip"
99

1010
# all needed for PEP722/723, hpy, cffi modules and wheel building
1111

12-
# pip pip-24.0 broken
1312
for module in typing_extensions mypy_extensions pyproject-metadata \
14-
setuptools build wheel pyparsing packaging setuptools_scm \
13+
setuptools build wheel pyparsing packaging hatchling setuptools_scm \
1514
git+https://github.com/python-cffi/cffi meson-python git+https://github.com/pypa/installer
1615
do
1716
$PIP install --force $module

scripts/cpython-build-emsdk.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,17 @@ else
6565
#TODO: check if export PATH=${HOST_PREFIX}/bin:$PATH is really set to avoid system python with different bytecode
6666
#and no loder lib-dynload in the way.
6767

68+
if echo $PYBUILD|grep 13$
69+
then
70+
GIL="--disable-gil"
71+
else
72+
GIL=""
73+
fi
74+
75+
6876
EMCC_CFLAGS="-O0 -g0 -fPIC" CFLAGS="-O0 -g0 -fPIC" CC=${SDKROOT}/emsdk/upstream/emscripten/emcc \
69-
emconfigure $ROOT/src/libffi/configure --host=wasm32-bi-emscripten\
77+
emconfigure $ROOT/src/libffi/configure --host=wasm32-bi-emscripten \
78+
$GIL \
7079
--prefix=$PREFIX --enable-static --disable-shared --disable-dependency-tracking\
7180
--disable-builddir --disable-multi-os-directory --disable-raw-api --disable-docs
7281

scripts/cpython-build-host-deps.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,8 @@ $HPIP install --upgrade pip
1414
# 3.12 and git deprecated setuptools bundling.
1515
$HPIP install --upgrade setuptools
1616

17+
18+
# probably lot of pip install made in cpython-build-emsdk-prebuilt.sh
19+
# should only go here in host python
20+
21+
# TODO

scripts/emsdk-fetch.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,10 @@ then
5656
echo "FIXME: Applying https://github.com/emscripten-core/emscripten/pull/20442 fix mouse position for 3D canvas"
5757

5858
pushd upstream/emscripten
59-
wget https://patch-diff.githubusercontent.com/raw/emscripten-core/emscripten/pull/20442.diff
60-
patch -p1 < 20442.diff
59+
# wget https://patch-diff.githubusercontent.com/raw/emscripten-core/emscripten/pull/20442.diff
60+
# patch -p1 < 20442.diff
61+
wget https://patch-diff.githubusercontent.com/raw/pmp-p/emscripten/pull/2.diff
62+
patch -p1 < 2.diff
6163
popd
6264

6365
# https://github.com/paradust7/minetest-wasm/blob/main/emsdk_dirperms.patch

0 commit comments

Comments
 (0)