LeRoyce Pearson
f4611e1414
mach: add headless option ( #450 )
...
Co-authored-by: Stephen Gutekanst <stephen.gutekanst@gmail.com>
2022-08-06 19:38:04 -07:00
Ali Chraghi
2045142057
build: remove gpu-dawn test step
2022-08-06 08:20:18 -07:00
Ali Chraghi
b5d8c669a2
CI: remove unneeded builds on sub-projects
2022-08-06 08:20:18 -07:00
Stephen Gutekanst
4bf9fc5821
glfw: update Linux system SDKs for Vulkan v1.3 headers
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-06 03:19:39 -07:00
Stephen Gutekanst
7df31b6d38
glfw: update Linux system SDKs for newer Vulkan headers
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-06 02:40:08 -07:00
Stephen Gutekanst
fbfd2f336b
remove Zig example in favor of mach/gpu one
...
`mach/gpu` has an example of how to use the bindings: https://github.com/hexops/mach/tree/main/gpu/examples
The example here is largely duplicative of that, and doesn't currently build. It would need to be updated
to reflect the latest Dawn example code.
Instead, let's keep `mach/gpu-dawn` just scoped to building Dawn with Zig. `mach/gpu` will deal with using it.
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-06 01:46:19 -07:00
Stephen Gutekanst
0e68ba36eb
gpu-dawn: remove Mach C shims
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-06 01:25:52 -07:00
Stephen Gutekanst
70ee58c904
gpu-dawn: update build.zig to build latest version of Dawn
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-06 01:18:01 -07:00
Stephen Gutekanst
55cac7efee
gpu-dawn: update to latest upstream revision as of 2022-07-10
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-06 01:17:54 -07:00
Stephen Gutekanst
36539d7c3d
glfw: fix -fno-stage1 thisDir invocations
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-05 22:24:57 -07:00
PiergiorgioZagaria
00ef0a639e
gamemode: Fix gamemode package path in build.zig
2022-08-03 11:01:31 -07:00
Casey Banner
0b187c44db
glfw: add shared option which builds glfw into its own shared library ( #442 )
...
* Add shared option which builds glfw into it's own shared library
* glfw: separate shared test build step
* glfw: cleanup shared linking
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
Co-authored-by: Stephen Gutekanst <stephen@hexops.com>
2022-07-31 13:56:13 -07:00
Release automation
e6d7faaaba
gpu-dawn: update to latest binary release
2022-07-30 17:54:01 +00:00
Stephen Gutekanst
9cffe5ac8b
glfw: add assumeInitialized for external GLFW initialization
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-07-30 10:18:47 -07:00
PiergiorgioZagaria
6eaacde444
gamemode: Add linux_gamemode_is_active field to Platform
2022-07-28 04:12:25 -07:00
PiergiorgioZagaria
2612684ef3
gamemode: Fix root build.zig test with symlinks
2022-07-28 04:12:25 -07:00
PiergiorgioZagaria
d84a32363c
gamemode: add check for GAMEMODE env var equal false
2022-07-28 04:12:25 -07:00
PiergiorgioZagaria
76bf493a86
gamemode: Small fix for initLinuxGamemode()
2022-07-28 04:12:25 -07:00
PiergiorgioZagaria
80270a5cfc
gamemode: Move gamemode init and deinit into their own functions
2022-07-28 04:12:25 -07:00
PiergiorgioZagaria
bd68745106
gamemode: Add licenses
2022-07-28 04:12:25 -07:00
PiergiorgioZagaria
4ee9ba1000
gamemode: Fix overcomplications and @import with symlinks
2022-07-28 04:12:25 -07:00
PiergiorgioZagaria
38a44ea3b3
gamemode: Remove gamemode *.c files for building from source
2022-07-28 04:12:25 -07:00
PiergiorgioZagaria
d256d071e0
gamemode: WIP building gamemode from source
2022-07-28 04:12:25 -07:00
PiergiorgioZagaria
613f03ef13
gamemode: Add common helpers to build gamemode
2022-07-28 04:12:25 -07:00
PiergiorgioZagaria
509ebd13ab
mach: Initial commit for gamemode
2022-07-28 04:12:25 -07:00
Ali Chraghi
25b6288efe
sysjs: pass target to testStep
2022-07-28 01:53:56 -07:00
Ali Chraghi
eecbad403c
dev: add other workflows to ci-lint.sh
...
Co-authored-by: Stephen Gutekanst <stephen@hexops.com>
2022-07-27 10:25:59 -07:00
Ali Chraghi
b500b04c41
all: build: install tests exe
2022-07-25 11:21:37 -07:00
Ali Chraghi
a6a678b912
freetype: install test exe and move all tests to src/main.zig
2022-07-25 11:21:37 -07:00
Ali Chraghi
956e07b2ba
glfw: build: produce static library
2022-07-24 09:28:56 -07:00
Ali Chraghi
3206fb69ab
freetype: build: produce static library and don't install examples in
...
install step
2022-07-24 09:28:56 -07:00
Ali Chraghi
a8427dcb4b
CI: fix and fmt
...
install alsa lib on linux platform
2022-07-24 09:28:56 -07:00
Ali Chraghi
1b9607be3f
dev: add ci-lint.sh script
2022-07-24 09:28:56 -07:00
Stephen Gutekanst
1356cdd838
all: zig fmt
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-07-22 19:43:41 -07:00
Stephen Gutekanst
5466375f40
glfw: fix caching bug in system_sdk that prevents cross-compilation in some situations
...
Prior to this change, cross-compiling Mach to other OSes was not working due to a regression.
e.g. to windows:
```
zig build -Dtarget=x86_64-windows run-example-boids
LLD Link... error(link): DLL import library for -ldxguid not found
error: DllImportLibraryNotFound
error: example-boids...
```
The problem was that one build step may invoke `getSdkRoot` and the target might be for say macOS,
since it's building e.g. GLFW for macOS as the target of tests, and `getSdkRoot` would cache the
SDK root _forever_ as being the macOS SDK (in an attempt to avoid running the various git commands
needed to resolve the SDK root multiple times, which slows builds down.)
We instead need to cache the SDK root per step, because the target may not be the same.
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-07-22 19:30:59 -07:00
Ali Chraghi
001e191e5c
freetype: Implement needed Computation API
2022-07-22 17:49:25 -07:00
Ali Chraghi
30612500e0
freetype: update examples
...
compile error due the last functions rename
2022-07-22 17:49:25 -07:00
alichraghi
0aa9cc4a04
freetype: Bitmap Handling 100% Coverage
2022-07-22 17:49:25 -07:00
Stephen Gutekanst
fbc9cee4cc
libmach: respect build target / mode flags
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-07-21 19:41:33 -07:00
alichraghi
741b4d9eb7
ci: improve jobs
2022-07-21 19:41:06 -07:00
alichraghi
fc90fa6689
build: renable tests target option
2022-07-21 19:41:06 -07:00
dweiller
4f7d3ddedf
examples/gkurve: fix memory leak
2022-07-20 21:16:48 -07:00
dweiller
35930b1600
examples/gkurve: ResizableLabel: fix deinit leaks
...
This issue with the previous (commented out) implementation was that by
remaking the iterator each loop, the same element was attempted to be
freed each iteration, as the element was not actually removed from the
map.
2022-07-20 21:16:48 -07:00
Zachary Huang
8f6273c0d0
libmach: fix small issues and naming conventions
2022-07-20 18:59:29 -07:00
Zachary Huang
5d86314fbb
libmach: update API again, factors out init/update/deinit from native.zig main function
2022-07-20 18:59:29 -07:00
alichraghi
ce21694d75
sysjs: use refAllDeclsRecursive to find and fix mistakes
2022-07-20 18:55:59 -07:00
alichraghi
48a4b9a7a6
glfw: use refAllDeclsRecursive to find mistakes
2022-07-20 18:55:59 -07:00
alichraghi
348733867c
gpu: use refAllDeclsRecursive to find and fix mistakes
2022-07-20 18:55:59 -07:00
alichraghi
6cd965e953
ecs: use refAllDeclsRecursive to find and fix mistakes
2022-07-20 18:55:59 -07:00
alichraghi
e6adc3e350
build: add mode paramater to testStep functions
2022-07-20 18:55:59 -07:00