transparent-cube

Minimal cross-platform native/wasm graphics example.
git clone git://git.amin.space/transparent-cube.git
Log | Files | Refs | README | LICENSE

commit 452a3fd5c6647d8a8bc732f6f657d9449a9d1b3a
parent 5f8ccf83f029fb5ac896eb6fdb31d4e8ecb907ba
Author: amin <dev@aminmesbah.com>
Date:   Sun, 28 Apr 2019 05:02:57 +0000

Move glfw Windows deps into libs/glfw_windows/

FossilOrigin-Name: 0f3e4b5acb5b3b047c4cba1cae0dab94e716937395f373103820906f94ac6888
Diffstat:
M.gitignore | 1+
Mbuild.bat | 51++++++++++++++++++++++++++++++++++++++-------------
2 files changed, 39 insertions(+), 13 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -1,6 +1,7 @@ *.out *.swp +lib/glfw_windows/* build/* tags diff --git a/build.bat b/build.bat @@ -1,15 +1,40 @@ @echo off -set CFLAGS=-std=c99 -nostdlib -Ilib -I../include/glfw/include -Wall -Wextra -Wshadow -Wswitch-enum -Wno-unused-parameter -Wno-missing-braces -set LDFLAGS=-luser32 -lgdi32 -lwinmm -lopengl32 -lshell32 -set RELCFLAGS=-O2 -Os - -IF NOT EXIST ".\build" mkdir ".\build" -clang %CFLAGS% %RELCFLAGS%^ - src\platform_windows.c^ - src\game.c^ - src\glad.c^ - src\glmth.c^ - src\shader.c^ - ..\include\glfw\lib-vc2015\glfw3.lib^ - -o .\build\quaternion-demo.exe %LDFLAGS% +set CFLAGS= ^ + -std=c99 ^ + -nostdlib ^ + -D_CRT_SECURE_NO_WARNINGS ^ + -Ilib ^ + -Ilib/glfw_windows/include ^ + -Wall ^ + -Wextra ^ + -Wshadow ^ + -Wswitch-enum ^ + -Wno-unused-parameter ^ + -Wno-missing-braces + +set LDFLAGS= ^ + -luser32 ^ + -lgdi32 ^ + -lwinmm ^ + -lopengl32 ^ + -lshell32 ^ + -llib/glfw_windows/lib-vc2019/glfw3.lib + +set RELCFLAGS= ^ + -O2 ^ + -Os + +IF NOT EXIST ".\out" mkdir ".\out" +IF NOT EXIST ".\out\release" mkdir ".\out\release" + +clang ^ + %CFLAGS% ^ + %RELCFLAGS% ^ + src\platform_windows.c ^ + src\game.c ^ + src\glad.c ^ + src\glmth.c ^ + src\shader.c ^ + -o .\out\release\transparent-cube.exe ^ + %LDFLAGS%