Web, Commodore, Windows version, Linux standalone, Windows Screensaver complete.
This commit is contained in:
parent
47730936de
commit
9257f21598
19 changed files with 794 additions and 18 deletions
24
Makefile
24
Makefile
|
|
@ -35,7 +35,25 @@ screensaver: $(SRC)
|
|||
$(WINCC) $(WINFLAGS) -DSCREENSAVER -I$(GLFWDIR)/include -o $(TARGET).scr $(SRC) \
|
||||
-L$(GLFWDIR)/lib-mingw-w64 $(WINLIBS)
|
||||
|
||||
clean:
|
||||
rm -f $(TARGET) $(TARGET).exe $(TARGET).scr
|
||||
# --- WebAssembly / browser build (Emscripten) ------------------------------
|
||||
# Produces vectorgons.js + vectorgons.wasm (load from an HTML page; see
|
||||
# web/index.html). Legacy-GL emulation maps the fixed-function + immediate-mode
|
||||
# rendering onto WebGL; GLFW3 is emulated; the VBO/FBO entry points are resolved
|
||||
# at run time, so GL_ENABLE_GET_PROC_ADDRESS is required. Run:
|
||||
# source /path/to/emsdk/emsdk_env.sh && make web
|
||||
# Must be served over HTTP (WebAssembly will not load from file://).
|
||||
EMCC ?= emcc
|
||||
EMFLAGS = -O2 -std=c11 -sUSE_GLFW=3 -sLEGACY_GL_EMULATION=1 -sGL_UNSAFE_OPTS=0 \
|
||||
-sGL_ENABLE_GET_PROC_ADDRESS=1 -sALLOW_MEMORY_GROWTH=1 \
|
||||
-sINITIAL_MEMORY=67108864 -sEXIT_RUNTIME=0
|
||||
|
||||
.PHONY: run windows screensaver clean
|
||||
web: web/vectorgons.js
|
||||
|
||||
web/vectorgons.js: $(SRC)
|
||||
mkdir -p web
|
||||
$(EMCC) $(EMFLAGS) $(SRC) -o web/vectorgons.js
|
||||
|
||||
clean:
|
||||
rm -f $(TARGET) $(TARGET).exe $(TARGET).scr web/vectorgons.js web/vectorgons.wasm
|
||||
|
||||
.PHONY: run windows screensaver web clean
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue