Skip to content

Commit 212e759

Browse files
committed
update
1 parent fcc99fa commit 212e759

File tree

6 files changed

+15
-7
lines changed

6 files changed

+15
-7
lines changed

Dockerfile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ RUN git clone https://github.com/php/php-src.git php-src \
5050

5151

5252
RUN git clone https://github.com/davidnurdin/php-sdl.git /tmp/php-sdl && \
53-
mkdir -p /src/php-src/ext/sdl && echo "1" && \
53+
mkdir -p /src/php-src/ext/sdl && echo "2" && \
5454
cp -r /tmp/php-sdl/* /src/php-src/ext/sdl && \
5555
cp -r /src/php-src/ext/sdl/src/* /src/php-src/ext/sdl/ && \
5656
find /src/php-src/ext/sdl/ -type f ! \( -name '*.c' -o -name '*.h' -o -name 'config.m4' \) -delete
@@ -68,6 +68,12 @@ RUN git clone https://github.com/kea/php-sdl-ttf.git && \
6868
mkdir -p /src/php-src/ext/sdl_ttf && \
6969
cp -r php-sdl-ttf/* /src/php-src/ext/sdl_ttf
7070

71+
#RUN #git clone https://github.com/seanmorris/vrzno && \
72+
# mkdir -p /src/php-src/ext/vrzno && \
73+
# cp -r vrzno/* /src/php-src/ext/vrzno
74+
75+
# ok
76+
7177
# todo voir
7278
#RUN #git clone https://github.com/krakjoe/parallel.git /tmp/php-parallel && \
7379
# mkdir -p /src/php-src/ext/parallel && \
@@ -141,13 +147,15 @@ ENV PKG_CONFIG_PATH="/usr/lib/x86_64-linux-gnu/pkgconfig/"
141147
## debug : sudo runc exec -t $(sudo runc list | awk '$3 == "running" {print $1; exit}') /bin/bash
142148
#RUN echo "pause here" && sleep infinity
143149

150+
# -Wno-int-conversion
144151
# -s USE_LIBJPEG=1
145152
RUN --mount=type=cache,target=/emsdk/upstream/emscripten/cache cd /src/php-src && export PKG_CONFIG_PATH='/usr/lib/x86_64-linux-gnu/pkgconfig/' && ./buildconf --force \
146153
&& emconfigure ./configure \
147154
CFLAGS="-s USE_ZLIB=1 -s USE_LIBPNG=1 " LDFLAGS="-s USE_ZLIB=1 -s USE_LIBPNG=1" \
148155
PKG_CONFIG_PATH='/usr/lib/x86_64-linux-gnu/pkgconfig/' \
149156
--enable-embed=static \
150157
--with-layout=GNU \
158+
# --enable-vrzno \
151159
--enable-sdl \
152160
--with-sdl_image \
153161
--enable-sdl_ttf \

demo/public/php-web.data

1.43 KB
Binary file not shown.

demo/public/php-web.data.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/public/php-web.mjs

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

demo/public/php-web.wasm

85 Bytes
Binary file not shown.

demo/src/src

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 4fccfa30d7b5b2c03c3c92acfed21c02b175e5d8
1+
Subproject commit dfeffb1dbec8060c3926a38f949c60d99f41f17d

0 commit comments

Comments
 (0)