migrate to the restructured sx stdlib paths

modules/compiler.sx -> modules/build.sx; stb/stb_truetype/opengl/sdl3 ->
modules/ffi/; modules/process.sx -> modules/std/process.sx. Rebuilt for
macos + ios-sim; 23/23 logic snapshots pass.
This commit is contained in:
swipelab
2026-06-11 08:46:32 +03:00
parent a7b41ccbca
commit 38815c7d50
7 changed files with 14 additions and 14 deletions

View File

@@ -10,8 +10,8 @@
// other targets never reference these symbols nor need the frameworks. // other targets never reference these symbols nor need the frameworks.
#import "modules/std.sx"; #import "modules/std.sx";
#import "modules/std/objc.sx"; #import "modules/ffi/objc.sx";
#import "modules/compiler.sx"; #import "modules/build.sx";
// AudioToolbox — System Sound Services. SystemSoundID is a UInt32; OSStatus a // AudioToolbox — System Sound Services. SystemSoundID is a UInt32; OSStatus a
// SInt32 (0 == noErr); the clip's file is passed as a CFURLRef (opaque ptr). // SInt32 (0 == noErr); the clip's file is passed as a CFURLRef (opaque ptr).

View File

@@ -12,8 +12,8 @@
// shrink to nothing) rather than alpha — the soft texture edges carry the fade. // shrink to nothing) rather than alpha — the soft texture edges carry the fade.
#import "modules/std.sx"; #import "modules/std.sx";
#import "modules/math"; #import "modules/math";
#import "modules/opengl.sx"; #import "modules/ffi/opengl.sx";
#import "modules/stb.sx"; #import "modules/ffi/stb.sx";
#import "modules/gpu/types.sx"; #import "modules/gpu/types.sx";
#import "modules/gpu/api.sx"; #import "modules/gpu/api.sx";
#import "modules/ui/types.sx"; #import "modules/ui/types.sx";

View File

@@ -6,8 +6,8 @@
// the grid is a centered square inside the safe-area inset. // the grid is a centered square inside the safe-area inset.
#import "modules/std.sx"; #import "modules/std.sx";
#import "modules/math"; #import "modules/math";
#import "modules/opengl.sx"; #import "modules/ffi/opengl.sx";
#import "modules/stb.sx"; #import "modules/ffi/stb.sx";
#import "modules/gpu/types.sx"; #import "modules/gpu/types.sx";
#import "modules/gpu/api.sx"; #import "modules/gpu/api.sx";
#import "modules/ui/types.sx"; #import "modules/ui/types.sx";

View File

@@ -1,4 +1,4 @@
#import "modules/compiler.sx"; #import "modules/build.sx";
#import "modules/platform/bundle.sx"; #import "modules/platform/bundle.sx";
configure_build :: () { configure_build :: () {

10
main.sx
View File

@@ -1,11 +1,11 @@
#import "modules/std.sx"; #import "modules/std.sx";
#import "build.sx"; #import "build.sx";
#import "modules/compiler.sx"; #import "modules/build.sx";
#import "modules/opengl.sx"; #import "modules/ffi/opengl.sx";
#import "modules/sdl3.sx"; #import "modules/ffi/sdl3.sx";
#import "modules/math"; #import "modules/math";
#import "modules/stb.sx"; #import "modules/ffi/stb.sx";
#import "modules/stb_truetype.sx"; #import "modules/ffi/stb_truetype.sx";
#import "modules/gpu/api.sx"; #import "modules/gpu/api.sx";
#import "modules/gpu/types.sx"; #import "modules/gpu/types.sx";
#import "modules/gpu/metal.sx"; #import "modules/gpu/metal.sx";

View File

@@ -5,7 +5,7 @@
// terminates the process NON-ZERO (exit 1) via process.exit, so a broken // terminates the process NON-ZERO (exit 1) via process.exit, so a broken
// assertion fails `tools/run_tests.sh` and the build gate. // assertion fails `tools/run_tests.sh` and the build gate.
#import "modules/std.sx"; #import "modules/std.sx";
proc :: #import "modules/process.sx"; proc :: #import "modules/std/process.sx";
expect :: (cond: bool, msg: string, loc: Source_Location = #caller_location) { expect :: (cond: bool, msg: string, loc: Source_Location = #caller_location) {
if !cond { if !cond {

View File

@@ -20,7 +20,7 @@
// never hits this — its loops run over 64 board cells, not millions of pixels. // never hits this — its loops run over 64 board cells, not millions of pixels.
#import "modules/std.sx"; #import "modules/std.sx";
#import "modules/math"; #import "modules/math";
#import "modules/stb.sx"; #import "modules/ffi/stb.sx";
SRC_PATH :: "/Users/agra/Downloads/m3te_particle.png"; SRC_PATH :: "/Users/agra/Downloads/m3te_particle.png";
OUT_PATH :: "assets/fx/particle.png"; OUT_PATH :: "assets/fx/particle.png";