Skip to content
/ SDL_ttf Public
forked from libsdl-org/SDL_ttf

SDL_ttf but with the zig build system

License

Notifications You must be signed in to change notification settings

boubl/SDL_ttf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SDL_ttf but with the zig build system

This is a port of SDL_ttf to the zig build system, to use it with the zig package manager.

This is not a wrapper.

Usage

Requires zig version 0.14.0, higher versions not tested.

Fetch it with:

zig fetch --save git+https://github.com/boubl/SDL_ttf.git

And link it in your build.zig:

{
    // SDL_ttf Dependency
    const sdl_ttf_dep = b.dependency("sdl_ttf", .{
        .target = target,
        .optimize = optimize,
    });
    const sdl_ttf_lib = sdl_ttf_dep.artifact("SDL_ttf");

    exe_mod.linkLibrary(sdl_ttf_lib);
}

Note

This was only tested on macOS with 0.14.0 for my personal use. PR are welcome if this does not work on other platforms.

About

SDL_ttf but with the zig build system

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • C 99.3%
  • Zig 0.7%