transparent-cube

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

build.bat (634B)


      1 @echo off
      2 
      3 set CFLAGS= ^
      4     -std=c99 ^
      5     -nostdlib ^
      6     -D_CRT_SECURE_NO_WARNINGS ^
      7     -Ilib ^
      8     -Ilib/glfw_windows/include ^
      9     -Wall ^
     10     -Wextra ^
     11     -Wshadow ^
     12     -Wswitch-enum ^
     13     -Wno-unused-parameter ^
     14     -Wno-missing-braces
     15 
     16 set LDFLAGS= ^
     17     -luser32 ^
     18     -lgdi32 ^
     19     -lwinmm ^
     20     -lopengl32 ^
     21     -lshell32 ^
     22     -llib/glfw_windows/lib-vc2019/glfw3.lib
     23 
     24 set RELCFLAGS= ^
     25     -O2 ^
     26     -Os
     27 
     28 IF NOT EXIST ".\out" mkdir ".\out"
     29 IF NOT EXIST ".\out\release" mkdir ".\out\release"
     30 
     31 clang ^
     32     %CFLAGS% ^
     33     %RELCFLAGS% ^
     34     src\platform_windows.c ^
     35     -o .\out\release\transparent-cube.exe ^
     36     %LDFLAGS%