Merge raymath and rlgl into main raylib module

This commit is contained in:
Not-Nik 2024-06-05 22:56:07 +02:00
parent 171c2e100c
commit c0d07991d1
Failed to generate hash of commit
15 changed files with 1012 additions and 68 deletions

View file

@ -22,7 +22,6 @@ pub fn build(b: *std.Build) !void {
});
const raylib = raylib_dep.module("raylib");
const raymath = raylib_dep.module("raymath");
const raylib_artifact = raylib_dep.artifact("raylib");
//web exports are completely separate
@ -31,7 +30,6 @@ pub fn build(b: *std.Build) !void {
exe_lib.linkLibrary(raylib_artifact);
exe_lib.root_module.addImport("raylib", raylib);
exe_lib.root_module.addImport("raymath", raymath);
// Note that raylib itself is not actually added to the exe_lib output file, so it also needs to be linked with emscripten.
const link_step = try rlz.emcc.linkWithEmscripten(b, &[_]*std.Build.Step.Compile{ exe_lib, raylib_artifact });
@ -48,7 +46,6 @@ pub fn build(b: *std.Build) !void {
exe.linkLibrary(raylib_artifact);
exe.root_module.addImport("raylib", raylib);
exe.root_module.addImport("raymath", raymath);
const run_cmd = b.addRunArtifact(exe);
const run_step = b.step("run", "Run '$PROJECT_NAME'");