Ali Chraghi
6cd186fcab
all: update zig version
2022-12-25 13:36:03 -07:00
Ali Chraghi
ce396a5e8c
system_sdk: update to latest commits
2022-12-18 18:02:31 -07:00
Ali Chraghi
0569494982
all: update zig version
2022-12-18 18:02:31 -07:00
Keith Chambers
357d3247e6
glfw: update to zig 0.11.0-dev.811 ( #640 )
2022-12-15 16:47:19 -07:00
Eric Joldasov
47a50164c9
glfw: use null in enums
...
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
2022-12-14 02:18:21 -07:00
Stephen Gutekanst
d59cc605e8
system-sdk: use macOS 12 SDK for macOS 13 for now
...
Fixes hexops/mach#606
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-11-25 10:31:04 -07:00
Stephen Gutekanst
f43018e6c2
glfw: zig fmt (true and false no longer reserved names)
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-11-24 09:55:07 -07:00
Stephen Gutekanst
25464e74ca
glfw: ensure Window.from handle is untyped
...
Since users of the library do not have access to the `@cImport` struct (and we
do not want to expose that), the user may pass only an untyped `*anyopaque` pointer
which we'll internally cast to `*c.GLFWwindow`.
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-11-06 15:02:57 -07:00
Cameron Murtagh
d2358e8edf
glfw: system_sdk: bump max major linux version ( #602 )
2022-10-29 10:50:13 -07:00
BratishkaErik
b19ef0319a
all: README: fix links to main repository ( #600 )
2022-10-28 10:22:23 -07:00
Ali Chraghi
c20d377711
system_sdk: better target check
2022-10-27 16:50:30 -07:00
Stephen Gutekanst
4fa5a3699d
all: CI: update to latest Zig master version
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-22 09:11:16 -07:00
Stephen Gutekanst
aa911cfd78
glfw: expose error handling functions for rare usages
...
Fixes hexops/mach#586
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-17 05:10:52 -07:00
Dominic
b803782349
glfw: fix native import ( #583 )
...
Co-authored-by: Ali Chraghi <63465728+alichraghi@users.noreply.github.com>
Co-authored-by: dweiller <4678790+dweiller@users.noreplay.github.com>
Co-authored-by: Stephen Gutekanst <stephen.gutekanst@gmail.com>
2022-10-16 01:19:12 -07:00
Stephen Gutekanst
099506b8c1
glfw: remove self-hosted compiler workaround
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-15 07:56:18 -07:00
Stephen Gutekanst
e8c171f8ab
glfw: remove self-hosted compiler workaround
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-15 07:51:52 -07:00
Stephen Gutekanst
70b8d52c77
glfw: workaround self-hosted compiler bug
...
Helps hexops/mach#581
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-15 00:57:35 -07:00
Stephen Gutekanst
6583f6b879
all: CI: update to latest Zig 0.10.0-dev.4333+f5f28e0d2
...
Produced via:
```
ZIG_VERSION=0.10.0-dev.4333+f5f28e0d2 ./dev/update-zig.sh
```
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-10-14 09:00:45 -07:00
Kami Development
ef5d8b12e7
glfw: fix compilation with latest zig master ( #574 )
...
See 0b1dd845d9
2022-10-14 08:55:15 -07:00
Ali Chraghi
b4799cfd5a
all: prefix environment variables with MACH_
2022-10-11 00:59:23 +02:00
Ali Chraghi
ade12bcd14
all: build: thisDir improvements ( #570 )
...
* build:all: thisDir improvements
more performant output, usage code reducement and compileError for wrong usage
* glfw: update deprecated code
2022-09-29 08:41:46 -07:00
Ali Chraghi
56b6222b2f
all: build: organize build files and reduce unreachables ( #567 )
2022-09-25 10:02:51 -07:00
Ali Chraghi
3bb1357299
all: update zig version
2022-09-19 20:11:55 -07:00
Ali Chraghi
8733bddeec
glfw: pass system sdk options through
2022-09-19 20:11:55 -07:00
Ali Chraghi
0ea0aae968
glfw: don't reset hints after window creation
...
Closes #201
2022-09-17 07:03:04 -07:00
Diego Arias
797328abe8
glfw: fix implicit function declaration error on clang15
2022-09-14 13:17:09 -07:00
Alexandre Chêne
e338416475
glfw: remove ineffective _ = variable
assignment ( #531 )
2022-09-14 10:40:20 -07:00
locriacyber
eee270b000
all: remove ineffective _ = variable
assignments ( #530 )
...
Lastest Zig complains about this, so they must removed to build.
2022-09-14 09:42:29 -07:00
Stephen Gutekanst
0b57c0fdf3
all: remove support for stage1
...
With almost all tests/examples working on all platforms now with the new compiler,
https://github.com/hexops/mach/issues/180 , it's time to remove stage1 support.
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-09-10 00:09:30 -07:00
Stephen Gutekanst
771275a553
glfw: update Linux system SDKs for mach/sysaudio
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-09-10 04:06:16 +00:00
Stephen Gutekanst
50ea28de41
all: update to latest Zig nightly version
...
Performed via:
```sh
VERSION=0.10.0-dev.3952+9e070b653 ./dev/update-zig.sh
```
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-09-10 02:16:05 +00:00
NewbLuck
3b15e261a4
all: update to use latest Zig master APIs ( #521 )
...
Co-authored-by: Scott Johnson <scott.johnson@furniturerow.com>
2022-09-10 02:07:30 +00:00
Stephen Gutekanst
73efe2f5cb
glfw: workaround cImport self-hosted compiler bug ziglang/zig#12784
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-09-08 07:19:36 -07:00
Ali Chraghi
9755a609c4
all: revert cimport workaround
2022-09-07 21:24:47 -07:00
Ali Chraghi
03a5cfc252
glfw: renable getName
test
2022-09-02 09:42:48 -07:00
Ali Chraghi
cc732dc7d7
glfw: fix cimport workaround errors for linux/windows
2022-09-02 09:42:48 -07:00
Ali Chraghi
b30ec07736
glfw:build: rename test steps
2022-08-29 05:59:52 -07:00
Ali Chraghi
edc2a9da7d
build: don't install libs, fix glfw shared lib compilation,
...
standardilize `buildXXX` funcs
2022-08-28 10:45:09 -07:00
Stephen Gutekanst
f55bf99053
all: employ self-hosted @cImport hack only on Darwin targets
...
This is an poor approximation for the host OS running Darwin, which
is good enough for now. In practice this means macOS works but can't
cross-compile (until the cImport issue is fixed in Zig itself), but
Windows/Linux are unaffected and should be able to build natively and
cross-compile.
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-27 11:19:57 -07:00
Ali Chraghi
15463ed05a
glfw:build: undepend to X and OpenGL libs
2022-08-27 11:12:07 -07:00
Ali Chraghi
6de027bb40
build: replace depracted functions
2022-08-27 11:12:07 -07:00
Ali Chraghi
f556550501
build: fix memory leaks
2022-08-27 11:05:36 -07:00
Stephen Gutekanst
4d7cd69ebe
all: update pull request template to reflect new libs/ dir
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-26 15:12:04 -07:00
Stephen Gutekanst
572d1144f1
all: ensure .git* files are standard across subprojects
...
Produced via:
```sh
zig run ./dev/ensure-standard-files.zig
```
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-23 08:36:51 -07:00
Stephen Gutekanst
c39b28f9b3
all: clarify self-hosted compiler TODOs
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-20 23:37:48 -07:00
Stephen Gutekanst
569dd4b8d9
glfw: pretranslate @cImport to workaround self-hosted compiler bug
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-20 12:03:17 -07:00
Stephen Gutekanst
eaf60a33d2
glfw: improve compatibility with self-hosted compiler
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-20 10:35:03 -07:00
Eric Joldasov
f4d9c0d171
glfw: fix instructions for Gyro in README.md
...
"--build-dep" has been recently renamed to "--build_dep"
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
2022-08-18 21:02:09 -07:00
Michal Ziulek
4296b2865b
glfw: simplify build script, remove redundant allocs, improve -fno-stage1 support
2022-08-15 17:12:53 -07:00
Stephen Gutekanst
fda9465943
all: update to Zig 0.10.0-dev.3551+92568a009
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-08-12 14:45:21 -07:00