-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.ninja
43 lines (40 loc) · 1.65 KB
/
build.ninja
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
cc = g++
ccflags = -Wall -g
linux = $ccflags `sdl2-config --cflags --libs`
windows = $ccflags -Dmain=SDL_main -lmingw32 -lSDL2main -lSDL2 -mwindows
builddir = build
srcdir = src
rule cc
command = $cc $in $linux -o $out
# command = $cc $in $windows -o $out.
description = Building executable $out
build $builddir/bitmapmaze: cc $srcdir/bitmapmaze.cpp
build $builddir/bitmapmaze2: cc $srcdir/bitmapmaze2.cpp
build $builddir/polymaze: cc $srcdir/polymaze.cpp
build $builddir/heightmap: cc $srcdir/heightmap.cpp
build $builddir/heightmap2: cc $srcdir/heightmap2.cpp
build $builddir/lightmap: cc $srcdir/lightmap.cpp
build $builddir/lightmap2: cc $srcdir/lightmap2.cpp
build $builddir/wiremaze: cc $srcdir/wiremaze.cpp
build $builddir/raytrace: cc $srcdir/raytrace.cpp
build $builddir/floor: cc $srcdir/floor.cpp
build $builddir/wallspoly: cc $srcdir/wallspoly.cpp
build $builddir/walls: cc $srcdir/walls.cpp
build $builddir/raycast: cc $srcdir/raycast.cpp
build $builddir/raycastlight: cc $srcdir/raycastlight.cpp
build $builddir/gardens: cc $srcdir/gardens.cpp
build bitmapmaze: phony $builddir/bitmapmaze
build bitmapmaze2: phony $builddir/bitmapmaze2
build polymaze: phony $builddir/polymaze
build heightmap: phony $builddir/heightmap
build heightmap2: phony $builddir/heightmap2
build lightmap: phony $builddir/lightmap
build lightmap2: phony $builddir/lightmap2
build wiremaze: phony $builddir/wiremaze
build raytrace: phony $builddir/raytrace
build floor: phony $builddir/floor
build wallspoly: phony $builddir/wallspoly
build walls: phony $builddir/walls
build raycast: phony $builddir/raycast
build raycastlight: phony $builddir/raycastlight
build gardens: phony $builddir/gardens