Skip to content

Zig ❤️ Vala - Toolchain & Build System Integration

Notifications You must be signed in to change notification settings

iddev5/zig-vala

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

zig-vala

Integration of Vala with Zig('s Build System).

Usage

The easiest way to use it is to just download ZigValaStep.zig to your project directory. Then include it in your build.zig:

const ZigValaStep = @import("ZigValaStep.zig");

You can create a Vala application as such:

const vala = ZigValaStep.init(b, "app_name");

Add source files:

vala.addSourceFile("src/main.vala");

Next, add all the package dependencies, such as GTK3, for example:

vala.addPackage("gtk+-3.0);

Finally, hook up the executable:

vala.exe.setTarget(target);
vala.exe.setBuildMode(mode);
vala.exe.install();

License

ZigValaStep.zig is licensed under MIT License.

About

Zig ❤️ Vala - Toolchain & Build System Integration

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages