Commit graph

241 commits

Author SHA1 Message Date
Stephen Gutekanst
ffd03c3b0b remove examples that require model3d
See hexops/mach#969

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-06-02 09:01:09 -07:00
Stephen Gutekanst
18e32ee6bf build: use ReleaseFast for opus decoding
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-05-18 17:06:20 +02:00
Stephen Gutekanst
393320aa68 build: do not force install/build of core- examples
CoreApp users can call b.installArtifact(app.compile) themselves if
they desire that behavior

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-05-14 00:12:26 +02:00
Stephen Gutekanst
92086d8d66 examples: add hardware-check
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-05-12 16:27:52 +02:00
Stephen Gutekanst
0200bed7ec examples: simplify dependencies, mach depends on Opus
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-05-11 14:35:54 -07:00
Stephen Gutekanst
9a96820926 build: simplify link() usage
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-05-06 14:00:55 -07:00
Stephen Gutekanst
2c77c16356 build: correct .mach only build option (i.e. do not build examples/libs)
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-05-06 14:00:54 -07:00
Ali Chraghi
5bd6d0cf3d add play-opus example 2024-05-05 21:10:07 +03:30
Stephen Gutekanst
487beaabde examples: rename sysaudio example -> piano
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-04-21 16:38:15 -07:00
Stephen Gutekanst
38fb23e22a build: fix core example imports
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-04-21 15:01:45 -07:00
Stephen Gutekanst
c26d9a40d1 build: use lazy dependencies
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-04-21 15:01:45 -07:00
Stephen Gutekanst
51f5721f8b build: remove currently-unused basisu dependency
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-04-21 15:01:45 -07:00
Stephen Gutekanst
e8b95d5076 build: cleanup sysjs dependency utilization
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-04-21 15:01:45 -07:00
Stephen Gutekanst
a681a10170 build: use lazyDependency to only download required dependencies
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-04-21 15:01:45 -07:00
Stephen Gutekanst
2889468c6b build: remove App (not CoreApp)
This removes the old `App` builder, leaving only `CoreApp` as something
to resolve/remove.

Helps hexops/mach#1186

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-04-21 15:01:45 -07:00
Stephen Gutekanst
6a2358baf8 build: fix WASM builds
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-04-19 19:34:40 -07:00
Stephen Gutekanst
78edb10446 build: fix duplicate symbol machDawnGetProcTable
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-04-19 18:46:04 -07:00
Stephen Gutekanst
09c01a79b0 build: fix test build
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-04-19 17:08:36 -07:00
Stephen Gutekanst
d045b34f70 {gfx,examples}: update all to new mach.Core module API
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-04-17 11:27:48 -07:00
Stephen Gutekanst
2c73f8c518 examples: remove gkurve test-bed for now (will come back later)
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-04-16 19:31:42 -07:00
Stephen Gutekanst
282c83877e audio: redesign audio module
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-04-16 19:14:37 -07:00
Stephen Gutekanst
2cf68adcc7 src/gpu: move github.com/hexops/mach-gpu here
This moves github.com/hexops/mach-gpu@528dad0823dafeae5d474c88cc658b091bf2e605 to
this repository in the src/gpu directory. It can be imported via `@import("mach").gpu`.

Soon we will move away from mach-gpu entirely as part of #1166 - but in the meantime
I am giving a workshop at https://sycl.it and it would be nice for people using the
`mach.gpu.*` API to be able to search the API in this single repository.

There's not much harm to moving this code here.

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-04-13 11:25:45 -07:00
Stephen Gutekanst
27fd19271c examples: migrate custom-renderer to mach.Core module API
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-04-08 23:49:38 -07:00
Stephen Gutekanst
013546b189 core: add mach.Core module API
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-04-08 23:49:38 -07:00
Stephen Gutekanst
279290bbf2 update zig version check for 2024.3.0-mach
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-03-09 00:24:25 -07:00
Stephen Gutekanst
b7fb2057f7 fix x86_64-linux-gnu build
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-03-08 23:44:33 -07:00
Stephen Gutekanst
a433937d39 update to Zig 2024.03-mach
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-03-08 22:34:28 -07:00
Wrench[bot]
74fac0f8d0 all: update Zig to version 0.12.0-dev.3180+83e578a18
Signed-off-by: Wrench[bot] <wrench@hexops.com>
2024-03-08 22:04:29 -07:00
Stephen Gutekanst
7d1b5e4466 move examples into this repository
Helps hexops/mach#1165

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-03-06 11:09:13 -07:00
Stephen Gutekanst
f12f48b166 build: fix sysaudio.c path
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-03-05 00:48:26 -07:00
Stephen Gutekanst
ea6a9438aa build: workaround "unable to check cache: stat file" Zig bug
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-03-05 00:28:51 -07:00
Stephen Gutekanst
8b75fe48ef build: provide a default platform value
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-03-05 00:23:32 -07:00
Stephen Gutekanst
f79e0decb6 fix any->macOS cross-compilation
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-03-05 00:22:22 -07:00
Stephen Gutekanst
55317a1afc fix wasm32-freestanding builds
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-03-05 00:22:22 -07:00
Stephen Gutekanst
f29b775b27 mach-core moves back into the main repository
Helps hexops/mach#1165

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-03-05 00:22:22 -07:00
Stephen Gutekanst
fa3f6161ad mach-sysgpu moves back into the main repository
Helps hexops/mach#1165

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-03-05 00:22:22 -07:00
Stephen Gutekanst
e38a441b69 fix linux build (gamemode requires libc)
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-03-05 00:22:22 -07:00
Stephen Gutekanst
e77a5a2ca2 mach-sysaudio moves back into the main repository
Helps hexops/mach#1165

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-03-05 00:22:22 -07:00
Stephen Gutekanst
221364415e mach-ecs moves back into the main repository
Helps hexops/mach#1165

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-03-05 00:22:22 -07:00
Stephen Gutekanst
d4cd79440e addPaths(step) -> addPaths(mod); helps hexops/mach#1154
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-02-01 21:35:18 -07:00
Stephen Gutekanst
8da66bef3f fix build.zig public API
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-01-14 20:48:48 -07:00
Stephen Gutekanst
e983648520 make Zig version check strict for Zig 2024.1.0-mach
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-01-14 19:12:40 -07:00
Stephen Gutekanst
b5531f84cb update to Zig 2024.1.0-mach
Related to hexops/mach#1145

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-01-14 19:11:20 -07:00
Stephen Gutekanst
87c3de78f5 gfx: font: begin adding text shaping via harfbuzz
Helps hexops/mach#877

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-10-05 20:35:13 -07:00
Stephen Gutekanst
c77619045f build: fix transitive resolution of mach_core
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-09-24 18:40:22 -07:00
Stephen Gutekanst
4e091f1cb8 replace module() helper; remove invalid re-exports;
Fixes hexops/mach#1041
Helps hexops/mach#1038

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-09-24 17:20:40 -07:00
Stephen Gutekanst
52c4eb5d74 all: canonicalize import paths with mach- prefix
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-09-21 14:36:21 -07:00
Stephen Gutekanst
26a9392188 build: remove earcut dependency
Related to hexops/mach#967

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-09-21 14:10:22 -07:00
Stephen Gutekanst
4d18ef54df build: link freetype+harfbuzz
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-09-21 14:09:32 -07:00
Stephen Gutekanst
aaac8ebbfd build: refactor test code
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2023-09-21 11:24:33 -07:00