mirror of
				https://github.com/bensuperpc/dockcross.git
				synced 2025-11-04 01:46:24 +01:00 
			
		
		
		
	Merge pull request #495 from Bensuperpc/update_web-wasm
This commit is contained in:
		
							
								
								
									
										25
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										25
									
								
								Makefile
									
									
									
									
									
								
							@@ -96,7 +96,7 @@ web-wasm: web-wasm/Dockerfile
 | 
			
		||||
 | 
			
		||||
web-wasm.test: web-wasm
 | 
			
		||||
	cp -r test web-wasm/
 | 
			
		||||
	$(DOCKER) run $(RM) dockcross/web-wasm > $(BIN)/dockcross-web-wasm && chmod +x $(BIN)/dockcross-web-wasm
 | 
			
		||||
	$(DOCKER) run $(RM) $(ORG)/web-wasm > $(BIN)/dockcross-web-wasm && chmod +x $(BIN)/dockcross-web-wasm
 | 
			
		||||
	$(BIN)/dockcross-web-wasm python test/run.py --exe-suffix ".js"
 | 
			
		||||
	rm -rf web-wasm/test
 | 
			
		||||
 | 
			
		||||
@@ -121,7 +121,7 @@ manylinux2014-aarch64: manylinux2014-aarch64/Dockerfile
 | 
			
		||||
	rm -rf $@/imagefiles
 | 
			
		||||
 | 
			
		||||
manylinux2014-aarch64.test: manylinux2014-aarch64
 | 
			
		||||
	$(DOCKER) run $(RM) dockcross/manylinux2014-aarch64 > $(BIN)/dockcross-manylinux2014-aarch64 && chmod +x $(BIN)/dockcross-manylinux2014-aarch64
 | 
			
		||||
	$(DOCKER) run $(RM) $(ORG)/manylinux2014-aarch64 > $(BIN)/dockcross-manylinux2014-aarch64 && chmod +x $(BIN)/dockcross-manylinux2014-aarch64
 | 
			
		||||
	$(BIN)/dockcross-manylinux2014-aarch64 /opt/python/cp38-cp38/bin/python test/run.py
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
@@ -145,7 +145,7 @@ manylinux2014-x64: manylinux2014-x64/Dockerfile
 | 
			
		||||
	rm -rf $@/imagefiles
 | 
			
		||||
 | 
			
		||||
manylinux2014-x64.test: manylinux2014-x64
 | 
			
		||||
	$(DOCKER) run $(RM) dockcross/manylinux2014-x64 > $(BIN)/dockcross-manylinux2014-x64 && chmod +x $(BIN)/dockcross-manylinux2014-x64
 | 
			
		||||
	$(DOCKER) run $(RM) $(ORG)/manylinux2014-x64 > $(BIN)/dockcross-manylinux2014-x64 && chmod +x $(BIN)/dockcross-manylinux2014-x64
 | 
			
		||||
	$(BIN)/dockcross-manylinux2014-x64 /opt/python/cp38-cp38/bin/python test/run.py
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
@@ -169,7 +169,7 @@ manylinux2014-x86: manylinux2014-x86/Dockerfile
 | 
			
		||||
	rm -rf $@/imagefiles
 | 
			
		||||
 | 
			
		||||
manylinux2014-x86.test: manylinux2014-x86
 | 
			
		||||
	$(DOCKER) run $(RM) dockcross/manylinux2014-x86 > $(BIN)/dockcross-manylinux2014-x86 && chmod +x $(BIN)/dockcross-manylinux2014-x86
 | 
			
		||||
	$(DOCKER) run $(RM) $(ORG)/manylinux2014-x86 > $(BIN)/dockcross-manylinux2014-x86 && chmod +x $(BIN)/dockcross-manylinux2014-x86
 | 
			
		||||
	$(BIN)/dockcross-manylinux2014-x86 /opt/python/cp38-cp38/bin/python test/run.py
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
@@ -219,7 +219,7 @@ manylinux2010-x86: manylinux2010-x86/Dockerfile
 | 
			
		||||
	rm -rf $@/imagefiles
 | 
			
		||||
 | 
			
		||||
manylinux2010-x86.test: manylinux2010-x86
 | 
			
		||||
	$(DOCKER) run $(RM) dockcross/manylinux2010-x86 > $(BIN)/dockcross-manylinux2010-x86 && chmod +x $(BIN)/dockcross-manylinux2010-x86
 | 
			
		||||
	$(DOCKER) run $(RM) $(ORG)/manylinux2010-x86 > $(BIN)/dockcross-manylinux2010-x86 && chmod +x $(BIN)/dockcross-manylinux2010-x86
 | 
			
		||||
	$(BIN)/dockcross-manylinux2010-x86 /opt/python/cp38-cp38/bin/python test/run.py
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
@@ -244,7 +244,7 @@ manylinux1-x64: manylinux1-x64/Dockerfile
 | 
			
		||||
	rm -rf $@/imagefiles
 | 
			
		||||
 | 
			
		||||
manylinux1-x64.test: manylinux1-x64
 | 
			
		||||
	$(DOCKER) run $(RM) dockcross/manylinux1-x64 > $(BIN)/dockcross-manylinux1-x64 && chmod +x $(BIN)/dockcross-manylinux1-x64
 | 
			
		||||
	$(DOCKER) run $(RM) $(ORG)/manylinux1-x64 > $(BIN)/dockcross-manylinux1-x64 && chmod +x $(BIN)/dockcross-manylinux1-x64
 | 
			
		||||
	$(BIN)/dockcross-manylinux1-x64 /opt/python/cp38-cp38/bin/python test/run.py
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
@@ -269,7 +269,7 @@ manylinux1-x86: manylinux1-x86/Dockerfile
 | 
			
		||||
	rm -rf $@/imagefiles
 | 
			
		||||
 | 
			
		||||
manylinux1-x86.test: manylinux1-x86
 | 
			
		||||
	$(DOCKER) run $(RM) dockcross/manylinux1-x86 > $(BIN)/dockcross-manylinux1-x86 && chmod +x $(BIN)/dockcross-manylinux1-x86
 | 
			
		||||
	$(DOCKER) run $(RM) $(ORG)/manylinux1-x86 > $(BIN)/dockcross-manylinux1-x86 && chmod +x $(BIN)/dockcross-manylinux1-x86
 | 
			
		||||
	$(BIN)/dockcross-manylinux1-x86 /opt/python/cp38-cp38/bin/python test/run.py
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
@@ -288,7 +288,7 @@ base: Dockerfile imagefiles/
 | 
			
		||||
		.
 | 
			
		||||
 | 
			
		||||
base.test: base
 | 
			
		||||
	$(DOCKER) run $(RM) dockcross/base > $(BIN)/dockcross-base && chmod +x $(BIN)/dockcross-base
 | 
			
		||||
	$(DOCKER) run $(RM) $(ORG)/base > $(BIN)/dockcross-base && chmod +x $(BIN)/dockcross-base
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# display
 | 
			
		||||
@@ -319,12 +319,17 @@ $(STANDARD_IMAGES): %: %/Dockerfile base
 | 
			
		||||
		$@
 | 
			
		||||
	rm -rf $@/imagefiles
 | 
			
		||||
 | 
			
		||||
clean:
 | 
			
		||||
	for d in $(STANDARD_IMAGES) ; do rm -rf $$d/imagefiles ; done
 | 
			
		||||
	for d in $(GEN_IMAGE_DOCKERFILES) ; do rm -f $$d/Dockerfile ; done
 | 
			
		||||
	rm -f Dockerfile
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
# testing implicit rule
 | 
			
		||||
#
 | 
			
		||||
.SECONDEXPANSION:
 | 
			
		||||
$(addsuffix .test,$(STANDARD_IMAGES)): $$(basename $$@)
 | 
			
		||||
	$(DOCKER) run $(RM) dockcross/$(basename $@) > $(BIN)/dockcross-$(basename $@) && chmod +x $(BIN)/dockcross-$(basename $@)
 | 
			
		||||
	$(DOCKER) run $(RM) $(ORG)/$(basename $@) > $(BIN)/dockcross-$(basename $@) && chmod +x $(BIN)/dockcross-$(basename $@)
 | 
			
		||||
	$(BIN)/dockcross-$(basename $@) python test/run.py $($@_ARGS)
 | 
			
		||||
 | 
			
		||||
#
 | 
			
		||||
@@ -335,4 +340,4 @@ test.prerequisites:
 | 
			
		||||
 | 
			
		||||
$(addsuffix .test,base $(IMAGES)): test.prerequisites
 | 
			
		||||
 | 
			
		||||
.PHONY: base images $(IMAGES) test %.test
 | 
			
		||||
.PHONY: base images $(IMAGES) test %.test clean
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
FROM emscripten/emsdk:2.0.4
 | 
			
		||||
FROM emscripten/emsdk:2.0.22
 | 
			
		||||
MAINTAINER Matt McCormick "matt.mccormick@kitware.com"
 | 
			
		||||
 | 
			
		||||
# Revert back to "/bin/sh" as default shell
 | 
			
		||||
@@ -6,13 +6,8 @@ MAINTAINER Matt McCormick "matt.mccormick@kitware.com"
 | 
			
		||||
RUN rm /bin/sh && ln -s /bin/dash /bin/sh
 | 
			
		||||
 | 
			
		||||
ARG DEBIAN_FRONTEND=noninteractive
 | 
			
		||||
ARG REPO=http://cdn-fastly.deb.debian.org
 | 
			
		||||
 | 
			
		||||
RUN \
 | 
			
		||||
  bash -c "echo \"deb $REPO/debian buster main contrib non-free\" > /etc/apt/sources.list"  && \
 | 
			
		||||
  bash -c "echo \"deb $REPO/debian buster-updates main contrib non-free\" >> /etc/apt/sources.list"  && \
 | 
			
		||||
  bash -c "echo \"deb $REPO/debian-security buster/updates main\" >> /etc/apt/sources.list" && \
 | 
			
		||||
  bash -c "echo \"deb http://ftp.debian.org/debian buster-backports main\" >> /etc/apt/sources.list" && \
 | 
			
		||||
  apt-get update --yes && \
 | 
			
		||||
  apt-get install --no-install-recommends --yes \
 | 
			
		||||
    automake \
 | 
			
		||||
@@ -57,7 +52,7 @@ RUN ln -s /usr/bin/python3 /usr/bin/python
 | 
			
		||||
 | 
			
		||||
#include "common.docker"
 | 
			
		||||
 | 
			
		||||
ENV EMSCRIPTEN_VERSION 2.0.4
 | 
			
		||||
ENV EMSCRIPTEN_VERSION 2.0.22
 | 
			
		||||
 | 
			
		||||
ENV PATH /emsdk:/emsdk/upstream/bin/:/emsdk/upstream/emscripten:${PATH}
 | 
			
		||||
ENV CC=/emsdk/upstream/emscripten/emcc \
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user