Skip to content

Commit

Permalink
Re-enable all samples
Browse files Browse the repository at this point in the history
  • Loading branch information
ringtailsoftware committed Dec 3, 2024
1 parent 83621e7 commit 3541088
Showing 1 changed file with 48 additions and 48 deletions.
96 changes: 48 additions & 48 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -42,54 +42,54 @@ pub fn build(b: *std.Build) void {

addExample(b, "agnes", &.{"-Wall", "-fno-sanitize=undefined"}, &.{"src/agnes/agnes.c"}, null);

// addExample(b, "sinetone", null, null, null);
//
// addExample(b, "synth", null, null, null);
//
// addExample(b, "mod", &.{"-Wall"}, &.{"src/mod/pocketmod.c"}, null);
//
// addExample(b, "bat", &.{"-Wall"}, &.{"src/mod/pocketmod.c"}, null);
//
// addExample(b, "doom", &.{ "-Wall", "-fno-sanitize=undefined" }, &.{
// "src/doom/puredoom/DOOM.c", "src/doom/puredoom/PureDOOM.c", "src/doom/puredoom/am_map.c",
// "src/doom/puredoom/d_items.c", "src/doom/puredoom/d_main.c", "src/doom/puredoom/d_net.c",
// "src/doom/puredoom/doomdef.c", "src/doom/puredoom/doomstat.c", "src/doom/puredoom/dstrings.c",
// "src/doom/puredoom/f_finale.c", "src/doom/puredoom/f_wipe.c", "src/doom/puredoom/g_game.c",
// "src/doom/puredoom/hu_lib.c", "src/doom/puredoom/hu_stuff.c", "src/doom/puredoom/i_net.c",
// "src/doom/puredoom/i_sound.c", "src/doom/puredoom/i_system.c", "src/doom/puredoom/i_video.c",
// "src/doom/puredoom/info.c", "src/doom/puredoom/m_argv.c", "src/doom/puredoom/m_bbox.c",
// "src/doom/puredoom/m_cheat.c", "src/doom/puredoom/m_fixed.c", "src/doom/puredoom/m_menu.c",
// "src/doom/puredoom/m_misc.c", "src/doom/puredoom/m_random.c", "src/doom/puredoom/m_swap.c",
// "src/doom/puredoom/p_ceilng.c", "src/doom/puredoom/p_doors.c", "src/doom/puredoom/p_enemy.c",
// "src/doom/puredoom/p_floor.c", "src/doom/puredoom/p_inter.c", "src/doom/puredoom/p_lights.c",
// "src/doom/puredoom/p_map.c", "src/doom/puredoom/p_maputl.c", "src/doom/puredoom/p_mobj.c",
// "src/doom/puredoom/p_plats.c", "src/doom/puredoom/p_pspr.c", "src/doom/puredoom/p_saveg.c",
// "src/doom/puredoom/p_setup.c", "src/doom/puredoom/p_sight.c", "src/doom/puredoom/p_spec.c",
// "src/doom/puredoom/p_switch.c", "src/doom/puredoom/p_telept.c", "src/doom/puredoom/p_tick.c",
// "src/doom/puredoom/p_user.c", "src/doom/puredoom/r_bsp.c", "src/doom/puredoom/r_data.c",
// "src/doom/puredoom/r_draw.c", "src/doom/puredoom/r_main.c", "src/doom/puredoom/r_plane.c",
// "src/doom/puredoom/r_segs.c", "src/doom/puredoom/r_sky.c", "src/doom/puredoom/r_things.c",
// "src/doom/puredoom/s_sound.c", "src/doom/puredoom/sounds.c", "src/doom/puredoom/st_lib.c",
// "src/doom/puredoom/st_stuff.c", "src/doom/puredoom/tables.c", "src/doom/puredoom/v_video.c",
// "src/doom/puredoom/w_wad.c", "src/doom/puredoom/wi_stuff.c", "src/doom/puredoom/z_zone.c",
// }, null);
//
// addExample(b, "tinygl", &.{ "-Wall", "-fno-sanitize=undefined" }, &.{
// "src/tinygl/TinyGL/src/api.c", "src/tinygl/TinyGL/src/specbuf.c", "src/tinygl/TinyGL/src/zmath.c",
// "src/tinygl/TinyGL/src/arrays.c", "src/tinygl/TinyGL/src/image_util.c", "src/tinygl/TinyGL/src/misc.c",
// "src/tinygl/TinyGL/src/texture.c", "src/tinygl/TinyGL/src/ztriangle.c", "src/tinygl/TinyGL/src/clear.c",
// "src/tinygl/TinyGL/src/init.c", "src/tinygl/TinyGL/src/msghandling.c", "src/tinygl/TinyGL/src/vertex.c",
// "src/tinygl/TinyGL/src/clip.c", "src/tinygl/TinyGL/src/light.c", "src/tinygl/TinyGL/src/zbuffer.c",
// "src/tinygl/TinyGL/src/error.c", "src/tinygl/TinyGL/src/list.c", "src/tinygl/TinyGL/src/zdither.c",
// "src/tinygl/TinyGL/src/get.c", "src/tinygl/TinyGL/src/matrix.c", "src/tinygl/TinyGL/src/select.c",
// "src/tinygl/TinyGL/src/zline.c",
// }, &.{
// "src/tinygl/TinyGL/include", "src/tinygl/TinyGL/src",
// });
//
// addExample(b, "mandelbrot", null, null, null);
//
// addExample(b, "olive", &.{"-Wall"}, &.{"src/olive/olive.c/olive.c"}, null);
addExample(b, "sinetone", null, null, null);

addExample(b, "synth", null, null, null);

addExample(b, "mod", &.{"-Wall"}, &.{"src/mod/pocketmod.c"}, null);

addExample(b, "bat", &.{"-Wall"}, &.{"src/mod/pocketmod.c"}, null);

addExample(b, "doom", &.{ "-Wall", "-fno-sanitize=undefined" }, &.{
"src/doom/puredoom/DOOM.c", "src/doom/puredoom/PureDOOM.c", "src/doom/puredoom/am_map.c",
"src/doom/puredoom/d_items.c", "src/doom/puredoom/d_main.c", "src/doom/puredoom/d_net.c",
"src/doom/puredoom/doomdef.c", "src/doom/puredoom/doomstat.c", "src/doom/puredoom/dstrings.c",
"src/doom/puredoom/f_finale.c", "src/doom/puredoom/f_wipe.c", "src/doom/puredoom/g_game.c",
"src/doom/puredoom/hu_lib.c", "src/doom/puredoom/hu_stuff.c", "src/doom/puredoom/i_net.c",
"src/doom/puredoom/i_sound.c", "src/doom/puredoom/i_system.c", "src/doom/puredoom/i_video.c",
"src/doom/puredoom/info.c", "src/doom/puredoom/m_argv.c", "src/doom/puredoom/m_bbox.c",
"src/doom/puredoom/m_cheat.c", "src/doom/puredoom/m_fixed.c", "src/doom/puredoom/m_menu.c",
"src/doom/puredoom/m_misc.c", "src/doom/puredoom/m_random.c", "src/doom/puredoom/m_swap.c",
"src/doom/puredoom/p_ceilng.c", "src/doom/puredoom/p_doors.c", "src/doom/puredoom/p_enemy.c",
"src/doom/puredoom/p_floor.c", "src/doom/puredoom/p_inter.c", "src/doom/puredoom/p_lights.c",
"src/doom/puredoom/p_map.c", "src/doom/puredoom/p_maputl.c", "src/doom/puredoom/p_mobj.c",
"src/doom/puredoom/p_plats.c", "src/doom/puredoom/p_pspr.c", "src/doom/puredoom/p_saveg.c",
"src/doom/puredoom/p_setup.c", "src/doom/puredoom/p_sight.c", "src/doom/puredoom/p_spec.c",
"src/doom/puredoom/p_switch.c", "src/doom/puredoom/p_telept.c", "src/doom/puredoom/p_tick.c",
"src/doom/puredoom/p_user.c", "src/doom/puredoom/r_bsp.c", "src/doom/puredoom/r_data.c",
"src/doom/puredoom/r_draw.c", "src/doom/puredoom/r_main.c", "src/doom/puredoom/r_plane.c",
"src/doom/puredoom/r_segs.c", "src/doom/puredoom/r_sky.c", "src/doom/puredoom/r_things.c",
"src/doom/puredoom/s_sound.c", "src/doom/puredoom/sounds.c", "src/doom/puredoom/st_lib.c",
"src/doom/puredoom/st_stuff.c", "src/doom/puredoom/tables.c", "src/doom/puredoom/v_video.c",
"src/doom/puredoom/w_wad.c", "src/doom/puredoom/wi_stuff.c", "src/doom/puredoom/z_zone.c",
}, null);

addExample(b, "tinygl", &.{ "-Wall", "-fno-sanitize=undefined" }, &.{
"src/tinygl/TinyGL/src/api.c", "src/tinygl/TinyGL/src/specbuf.c", "src/tinygl/TinyGL/src/zmath.c",
"src/tinygl/TinyGL/src/arrays.c", "src/tinygl/TinyGL/src/image_util.c", "src/tinygl/TinyGL/src/misc.c",
"src/tinygl/TinyGL/src/texture.c", "src/tinygl/TinyGL/src/ztriangle.c", "src/tinygl/TinyGL/src/clear.c",
"src/tinygl/TinyGL/src/init.c", "src/tinygl/TinyGL/src/msghandling.c", "src/tinygl/TinyGL/src/vertex.c",
"src/tinygl/TinyGL/src/clip.c", "src/tinygl/TinyGL/src/light.c", "src/tinygl/TinyGL/src/zbuffer.c",
"src/tinygl/TinyGL/src/error.c", "src/tinygl/TinyGL/src/list.c", "src/tinygl/TinyGL/src/zdither.c",
"src/tinygl/TinyGL/src/get.c", "src/tinygl/TinyGL/src/matrix.c", "src/tinygl/TinyGL/src/select.c",
"src/tinygl/TinyGL/src/zline.c",
}, &.{
"src/tinygl/TinyGL/include", "src/tinygl/TinyGL/src",
});

addExample(b, "mandelbrot", null, null, null);

addExample(b, "olive", &.{"-Wall"}, &.{"src/olive/olive.c/olive.c"}, null);

const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
Expand Down

0 comments on commit 3541088

Please sign in to comment.