-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
37 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.git | ||
node_modules | ||
test/conformance/WebGL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM node:12-stretch | ||
|
||
RUN apt-get update && apt-get install -y xvfb libgcc-6-dev libsdl2-dev libglew-dev duktape-dev imagemagick | ||
|
||
ENV XDG_RUNTIME_DIR=/tmp | ||
WORKDIR /tmp | ||
|
||
COPY * /tmp/ | ||
|
||
# Compile the main bootstrap | ||
RUN make | ||
|
||
# Compile the C++ test program, to verify that C++ compilation is OK | ||
RUN ln -s bootstrap.c bootstrap.cpp && make test-cpp-compile | ||
|
||
RUN cp bootstrap.exe /usr/bin/ && rm -rf /tmp/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
.DEFAULT_GOAL := all | ||
|
||
CFLAGS=-pedantic -Wall -Werror -Wformat -Wformat-security -fstack-protector -pie -fPIE -D_FORTIFY_SOURCE=2 -O2 -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack | ||
LDFLAGS=-lSDL2 -lduktape -lGLEW -lGL | ||
CFLAGS=-pedantic -Wall -Werror -Wformat -Wformat-security -fstack-protector -pie -fPIE -D_FORTIFY_SOURCE=2 -O2 -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -I/usr/share/duktape | ||
LDFLAGS=-lm -lSDL2 -lGLEW -lGL | ||
|
||
.PHONY: all | ||
all: | ||
gcc bootstrap.c -std=c99 ${CFLAGS} ${LDFLAGS} -o bootstrap.exe | ||
gcc bootstrap.c /usr/share/duktape/duktape.c -std=c99 ${CFLAGS} ${LDFLAGS} -o bootstrap.exe | ||
|
||
.PHONY: test-cpp-compile | ||
test-cpp-compile: | ||
g++ bootstrap.cpp -std=c++11 ${CFLAGS} ${LDFLAGS} -o bootstrap_cpp.exe | ||
g++ bootstrap.cpp /usr/share/duktape/duktape.c -std=c++11 ${CFLAGS} ${LDFLAGS} -o bootstrap_cpp.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters