Raylib gets added as a package to examples and the projectSetup generator

This commit is contained in:
G3bE 2020-02-15 20:42:22 +10:00
parent bfb4da40a0
commit b8c883e446
Failed to generate hash of commit
4 changed files with 14 additions and 10 deletions

View file

@ -14,6 +14,7 @@ pub fn build(b: *Builder) void {
const exe = b.addExecutable("'"$PROJECT_NAME"'", "src/main.zig");
exe.setBuildMode(mode);
exe.linkSystemLibrary("raylib");
exe.addPackagePath("raylib", "raylib-zig/raylib-zig.zig");
exe.install();
const run_cmd = exe.run();
@ -25,6 +26,7 @@ pub fn build(b: *Builder) void {
' >> build.zig
mkdir src
cp ../lib/* src
mkdir raylib-zig
cp ../lib/* raylib-zig
cp ../examples/core/BasicWindow.zig src
mv src/BasicWindow.zig src/main.zig