Browse Source

Now with Zig but in its own directory!

Luna Stadler 4 years ago
parent
commit
ec457030ad
6 changed files with 13 additions and 0 deletions
  1. 2 0
      c/sdl/README.md
  2. 4 0
      zig/sdl/.gitignore
  3. 3 0
      zig/sdl/Makefile
  4. 4 0
      zig/sdl/README.md
  5. 0 0
      zig/sdl/build.zig
  6. 0 0
      zig/sdl/hello_sdl.zig

+ 2 - 0
c/sdl/README.md

@ -34,3 +34,5 @@ that you'll need a TTF font from somewhere and then run it like this:
34 34
35 35
By default it wants `./FantasqueSansMono-Regular.ttf`, which you can get
36 36
from the `ttf-fantasque-sans-mono` package on ArchLinux.
37
38
See [../../zig/sdl](../../zig/sdl) for continued experiments!

+ 4 - 0
zig/sdl/.gitignore

@ -0,0 +1,4 @@
1
/hello_sdl
2
/zig-out
3
/zig-cache
4
*.ttf

+ 3 - 0
zig/sdl/Makefile

@ -0,0 +1,3 @@
1
hello_sdl:
2
	zig build
3
	cp zig-out/bin/hello_sdl .

+ 4 - 0
zig/sdl/README.md

@ -0,0 +1,4 @@
1
# hello\_sdl (this time in Zig)
2
3
Continuing on from [../../c/sdl](../../c/sdl), here we go again but in
4
[Zig](https://ziglang.org) this time.

c/sdl/build.zig → zig/sdl/build.zig


c/sdl/hello_sdl.zig → zig/sdl/hello_sdl.zig