also looking at this
feat(ios): AR moves to Zig — ratchet 18 -> 13
#126
5 files
+1480
-10
| @@ -374,6 +374,10 @@ pub fn build(b: *std.Build) void { | ||
| 374 | 374 | ios_module_tests.root_module.linkFramework("CoreGraphics", .{}); |
| 375 | 375 | ios_module_tests.root_module.linkFramework("CoreMIDI", .{}); |
| 376 | 376 | ios_module_tests.root_module.linkFramework("Security", .{}); |
| 377 | // SceneKit is on macOS as well as iOS, which is the only reason | |
| 378 | // `bridge_mobile_ar.zig`'s three struct-ABI tests can run on a host: | |
| 379 | // ARKit is device-only, SCNNode and SCNBox are not. | |
| 380 | ios_module_tests.root_module.linkFramework("SceneKit", .{}); | |
| 377 | 381 | ios_module_tests.root_module.addCSourceFile(.{ |
| 378 | 382 | .file = b.path("vendor/sqlite/sqlite3.c"), |
| 379 | 383 | .flags = &.{ "-DSQLITE_THREADSAFE=1", "-DSQLITE_ENABLE_FTS5", "-DSQLITE_ENABLE_JSON1" }, |
| @@ -485,6 +489,9 @@ pub fn build(b: *std.Build) void { | ||
| 485 | 489 | ios_conformance_tests.root_module.addAnonymousImport("src/bridge_mobile_locrecording.zig", .{ |
| 486 | 490 | .root_source_file = b.path("src/bridge_mobile_locrecording.zig"), |
| 487 | 491 | }); |
| 492 | ios_conformance_tests.root_module.addAnonymousImport("src/bridge_mobile_ar.zig", .{ | |
| 493 | .root_source_file = b.path("src/bridge_mobile_ar.zig"), | |
| 494 | }); | |
| 488 | 495 | ios_conformance_tests.root_module.addAnonymousImport("src/bridge_mobile_motion.zig", .{ |
| 489 | 496 | .root_source_file = b.path("src/bridge_mobile_motion.zig"), |
| 490 | 497 | }); |