Skip to content

Commit d98f9f8

Browse files
committed
.
1 parent 2cbf754 commit d98f9f8

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

BaseRayLib/.vscode/tasks.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,49 +43,49 @@
4343
},
4444
{
4545
"label": "Zig: Run main",
46-
"args": [ "run", "-lc", "-lraylib", "-lwinmm", "-lgdi32", "-lopengl32", "-L", "lib/raylib", "-Ilib/raylib/include", "main.zig" ],
46+
"args": [ "run", "-lc", "-lraylib", "-lwinmm", "-lgdi32", "-lopengl32", "-L", "lib/raylib", "-I.", "-Ilib/raylib/include", "main.zig" ],
4747
"detail": "zig run main.zig",
4848
"command": "zig", "type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "none", "isDefault": true },
4949
"presentation": { "group": "launch", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
5050
},
5151
{
5252
"label": "Zig: Run main (With Args)",
53-
"args": [ "run", "-lc", "-lraylib", "-lwinmm", "-lgdi32", "-lopengl32", "-L", "lib/raylib", "-Ilib/raylib/include", "main.zig" , "--", "ArgsForYourProgram" ],
53+
"args": [ "run", "-lc", "-lraylib", "-lwinmm", "-lgdi32", "-lopengl32", "-L", "lib/raylib", "-I.", "-Ilib/raylib/include", "main.zig" , "--", "ArgsForYourProgram" ],
5454
"detail": "zig run main.zig -- ArgsForYourProgram",
5555
"command": "zig", "type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "none", "isDefault": false },
5656
"presentation": { "group": "launch", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
5757
},
5858
{
5959
"label": "Zig: Run main (Fast)",
60-
"args": [ "run", "-lc", "-lraylib", "-lwinmm", "-lgdi32", "-lopengl32", "-L", "lib/raylib", "-Ilib/raylib/include", "main.zig" , "-O", "ReleaseFast" ],
60+
"args": [ "run", "-lc", "-lraylib", "-lwinmm", "-lgdi32", "-lopengl32", "-L", "lib/raylib", "-I.", "-Ilib/raylib/include", "main.zig" , "-O", "ReleaseFast" ],
6161
"detail": "zig run main.zig -O ReleaseFast",
6262
"command": "zig", "type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "none", "isDefault": false },
6363
"presentation": { "group": "launch", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
6464
},
6565
{
6666
"label": "Zig: Run main (Safe)",
67-
"args": [ "run", "-lc", "-lraylib", "-lwinmm", "-lgdi32", "-lopengl32", "-L", "lib/raylib", "-Ilib/raylib/include", "main.zig" , "-O", "ReleaseSafe" ],
67+
"args": [ "run", "-lc", "-lraylib", "-lwinmm", "-lgdi32", "-lopengl32", "-L", "lib/raylib", "-I.", "-Ilib/raylib/include", "main.zig" , "-O", "ReleaseSafe" ],
6868
"detail": "zig run main.zig -O ReleaseSafe",
6969
"command": "zig", "type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "none", "isDefault": false },
7070
"presentation": { "group": "launch", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
7171
},
7272
{
7373
"label": "Zig: Run main (Small)",
74-
"args": [ "run", "-lc", "-lraylib", "-lwinmm", "-lgdi32", "-lopengl32", "-L", "lib/raylib", "-Ilib/raylib/include", "main.zig" , "-O", "ReleaseSmall" ],
74+
"args": [ "run", "-lc", "-lraylib", "-lwinmm", "-lgdi32", "-lopengl32", "-L", "lib/raylib", "-I.", "-Ilib/raylib/include", "main.zig" , "-O", "ReleaseSmall" ],
7575
"detail": "zig run main.zig -O ReleaseSmall",
7676
"command": "zig", "type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "none", "isDefault": false },
7777
"presentation": { "group": "launch", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
7878
},
7979
{
8080
"label": "Zig: Run current file",
81-
"args": [ "run", "-lc", "-lraylib", "-lwinmm", "-lgdi32", "-lopengl32", "-L", "lib/raylib", "-Ilib/raylib/include", "${file}" ],
81+
"args": [ "run", "-lc", "-lraylib", "-lwinmm", "-lgdi32", "-lopengl32", "-L", "lib/raylib", "-I.", "-Ilib/raylib/include", "${file}" ],
8282
"detail": "'zig run' active file in the current workspace.",
8383
"command": "zig", "type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "none", "isDefault": false },
8484
"presentation": { "group": "launch", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []
8585
},
8686
{
8787
"label": "zTime Zig: Run current file",
88-
"args": [ "zig", "run", "-lc", "-lraylib", "-lwinmm", "-lgdi32", "-lopengl32", "-L", "lib/raylib", "-Ilib/raylib/include", "${file}" ],
88+
"args": [ "zig", "run", "-lc", "-lraylib", "-lwinmm", "-lgdi32", "-lopengl32", "-L", "lib/raylib", "-I.", "-Ilib/raylib/include", "${file}" ],
8989
"detail": "'zTime zig run' active file in the current workspace.",
9090
"command": "zig", "type": "shell", "options": { "cwd": "${workspaceRoot}" }, "group": { "kind": "none", "isDefault": false },
9191
"presentation": { "group": "zTime", "echo": true, "reveal": "always", "focus": false, "panel": "shared", "showReuseMessage": false, "clear": true, "close": false }, "problemMatcher": []

BaseRayLib/build.zig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ pub fn build(b: *std.Build) void {
2020
});
2121
exe.linkLibC();
2222

23+
exe.addIncludePath( b.path(".") );
2324
exe.addIncludePath( b.path("lib/raylib/include") );
2425
exe.addLibraryPath( b.path("lib/raylib") );
2526
exe.linkSystemLibrary("raylib");

BaseRayLib/main.zig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ const std = @import("std");
99
// Use full path for all cIncludes:
1010
// @cInclude("C:/BaseRayLib/lib/raylib/include/raylib.h");
1111
const rl = @cImport({
12-
@cInclude("D:/workbench/zig_workbench/BaseRayLib/lib/raylib/include/raylib.h");
12+
@cInclude("lib/raylib/include/raylib.h");
1313
});
14-
const gl = @cImport({ @cInclude("D:/workbench/zig_workbench/BaseRayLib/lib/raylib/include/rlgl.h"); });
15-
const rm = @cImport({ @cInclude("D:/workbench/zig_workbench/BaseRayLib/lib/raylib/include/raymath.h"); });
14+
const gl = @cImport({ @cInclude("lib/raylib/include/rlgl.h"); });
15+
const rm = @cImport({ @cInclude("lib/raylib/include/raymath.h"); });
1616
const ui = @cImport({
1717
@cDefine("RAYGUI_IMPLEMENTATION","");
18-
@cInclude("D:/workbench/zig_workbench/BaseRayLib/lib/raylib/include/raygui.h");
18+
@cInclude("lib/raylib/include/raygui.h");
1919
});
2020

2121
const WINDOW_WIDTH: usize = 800;

BaseRayLib/tools/buildReleaseStrip.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ REM
2020
REM Full extra_args sample of a project that use SDL3 + OpenGL :
2121
REM SET extra_args=-lSDL3 -lOpenGL32 -L "%CD%\lib\SDL3" -I"%CD%" -I"%CD%\lib" -I"%CD%\lib\SDL3"
2222

23-
SET extra_args=-lraylib -lwinmm -lgdi32 -lopengl32 -Llib/raylib -Ilib/raylib/include
23+
SET extra_args=-lraylib -lwinmm -lgdi32 -lopengl32 -Llib/raylib -I"%CD%" -Ilib/raylib/include
2424

2525

2626
REM AddCSource

0 commit comments

Comments
 (0)