PiergiorgioZagaria
99bf7df61b
glfw: allow to choose platform in InitHints
2022-06-29 20:54:04 -07:00
PiergiorgioZagaria
8b41d754ee
glfw: do not link to wayland-client (no longer necessary, loaded at runtime by GLFW)
2022-06-29 20:54:04 -07:00
PiergiorgioZagaria
8924e28caf
glfw: update "getName" test comment
2022-06-29 20:54:04 -07:00
PiergiorgioZagaria
d5b75b9aa7
glfw: disable "getName" test for now because of undefined behaviour in GLFW caught by UBSan
2022-06-29 20:54:04 -07:00
PiergiorgioZagaria
d7c4c730ad
glfw: update system_sdk for wayland and catch wayland test errors
2022-06-29 20:54:04 -07:00
PiergiorgioZagaria
b4ea44c647
glfw: support compiling for wayland
2022-06-29 20:54:04 -07:00
PiergiorgioZagaria
952ea5c3c5
glfw: support compiling with stage2 (-fno-stage1) ( #365 )
2022-06-24 10:12:45 -07:00
Daniel
19c7d0b0a6
glfw: fix segfault in getPhysicalDevicePresentationSupport
( #364 )
2022-06-24 10:10:06 -07:00
Vulfox
75b9f1b5ef
glfw: submodule path fix for subrepo
2022-06-15 06:59:56 -07:00
Caleb Gingles
ba39326b73
glfw: make MouseButton directly accessible, to match GLFW callback signature ( #353 )
2022-06-14 20:03:26 -07:00
Stephen Gutekanst
05d77de3a4
glfw: update Linux system SDKs to include libxkbcommon-dev headers
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-06-11 17:39:25 -07:00
Stephen Gutekanst
e328c652d0
glfw: prepare build system to support runtime Wayland/X11 detection
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-06-11 17:39:25 -07:00
Stephen Gutekanst
05a2118ef5
glfw: README: update usage example
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-06-11 17:39:25 -07:00
Stephen Gutekanst
95d34e68ad
glfw: README: mention that we are now tracking glfw@master
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-06-11 17:39:25 -07:00
Stephen Gutekanst
b606969b4c
glfw: add TODO about glfw@master custom allocator API
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-06-11 17:39:25 -07:00
Stephen Gutekanst
77db3245aa
glfw: update time documentation to glfw@master
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-06-11 17:39:25 -07:00
Stephen Gutekanst
830b9e2080
glfw: update key documentation to glfw@master
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-06-11 17:39:25 -07:00
Stephen Gutekanst
fe935fbc06
glfw: update core APIs to glfw@master
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-06-11 17:39:25 -07:00
Stephen Gutekanst
5ae54c1df9
glfw: update native APIs to glfw@master
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-06-11 17:39:25 -07:00
Stephen Gutekanst
4838be51f2
glfw: update windowing API to glfw@master
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-06-11 17:39:25 -07:00
Stephen Gutekanst
8fb297f9dd
glfw: update monitor API to glfw@master
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-06-11 17:39:25 -07:00
Stephen Gutekanst
57e3e67796
glfw: update cursor API to glfw@master
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-06-11 17:39:25 -07:00
Stephen Gutekanst
e24a0c4ce9
glfw: update build system to glfw@master
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-06-11 17:39:25 -07:00
Stephen Gutekanst
ab26356574
glfw: ensure upstream submodule is cloned
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-06-11 17:39:25 -07:00
Stephen Gutekanst
96d240af1b
glfw: upgrade to GLFW@master; add upstream submodule https://github.com/hexops/glfw
...
This upgrades us to the latest master (pre-release) version of GLFW which has our patches
for undefined behavior in Zig, effectively moving us off of our temporary fork. We now track
GLFW upstream at the revision documented in https://github.com/hexops/glfw/blob/main/VERSION
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
Co-authored-by: Cai Bingjun <1945458160@qq.com>
2022-06-11 17:39:25 -07:00
Stephen Gutekanst
a19199255f
glfw: stop vendoring upstream sources
...
Moving to the same model we use elsewhere: we now have https://github.com/hexops/glfw
which is a tiny repository with only the sources needed to compile/build/test GLFW on
every platform. It's just the upstream repository at a specific commit, recorded in
the `VERSION` file.
Helps hexops/mach#343
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-06-11 17:39:25 -07:00
iddev5
3ec57577df
glfw: Window: use u32 values for params in setMonitor method
2022-06-11 16:00:02 -07:00
Stephen Gutekanst
e3506c6911
CI: ZIG_VERSION=0.10.0-dev.2439+c84f5a5f9 ./dev/update-zig.sh
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-05-31 05:02:04 -07:00
Stephen Gutekanst
08b7c50e73
CI: correct M1 runner Zig version
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-05-31 04:11:43 -07:00
Stephen Gutekanst
4ceff10be6
CI: ZIG_VERSION=0.10.0-dev.2439+c84f5a5f9 ./dev/update-zig.sh
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-05-31 03:39:45 -07:00
Stephen Gutekanst
96921e8e78
CI: ZIG_VERSION=0.10.0-dev.2439+c84f5a5f9 ./dev/update-zig.sh
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-05-31 03:24:34 -07:00
Stephen Gutekanst
076a8de591
glfw: CI: always upgrade Zig M1 CI version
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-05-31 03:24:34 -07:00
Stephen Gutekanst
f8e33dcce3
glfw: CI: standardize M1 CI name
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-05-31 03:24:34 -07:00
d3m1gd
66f8c4960e
glfw: move git check
2022-05-30 10:24:09 -07:00
d3m1gd
8493ce0e75
glfw: ensure git present
2022-05-30 10:24:09 -07:00
kamidev
87848578c8
Change std.build.Pkg.path -> std.build.Pkg.source
...
Fixes breaking change in latest Zig master, see https://github.com/ziglang/zig/pull/11557
2022-05-29 08:25:52 -07:00
Lee Cannon
dae779de57
Update to latest Zig master (0.10.0-dev.2017+a0a2ce92c) ( #261 )
...
* use `@ceil` instead of `std.math.ceil`
* `ChildProcess.init` does not allocate anymore
* update CI zig version
* examples: temporarily switch to fork of zigimg compatible with zig-master
Commands executed:
```
git submodule set-url -- examples/libs/zigimg https://github.com/slimsag/zigimg
git submodule set-branch --branch zig-master -- examples/libs/zigimg
git submodule update --init --remote examples/libs/zigimg
```
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
Co-authored-by: Stephen Gutekanst <stephen@hexops.com>
2022-05-01 11:44:27 -07:00
Stephen Gutekanst
8924456958
CI: correct YAML syntax / regression
...
Helps hexops/mach#248
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-04-21 03:41:38 -07:00
Stephen Gutekanst
160422ce60
glfw: zig fmt
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-04-20 23:01:39 -07:00
iddev5
366499e4d8
CI: dont run aarch64-mac workflow on forks
...
The workflow uses a self hosted runner which is only available for
hexops/mach* repositories. Without this commit, whenever a fork of mach
or mach-* were pushed, it would queue an aarch64-mac job and then crash
after one day due to no machines being found.
2022-04-19 20:12:22 -07:00
Stephen Gutekanst
282b2f4c1a
glfw: update vulkan headers to latest (adds v1.3 support)
...
Produced via `./update-upstream.sh`
Helps hexops/mach#236
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-04-18 20:44:34 -07:00
iddev5
7b6e8372c9
glfw: add getErrorString() to access the current error description
2022-04-17 10:49:05 -07:00
Isaac Freund
f8110189eb
build: never use pkg-config to link system libraries ( #217 )
...
Every library we want to link against is either provided by the Zig
toolchain or part of our SDK. Therefore, using pkg-config to link
against libraries on the host system is never what we intend.
To fix this, use linkSystemLibraryName() everywhere instead of
linkSystemLibrary() as the latter integrates with pkg-config while the
former just passes -lfoo to the zig compiler.
In combination with Zig commit 38d6e1d8a8 fixing an std.build bug,
this change fixes the linking of the necessary X11 libraries on my
x86_64 glibc based Void Linux system.
2022-04-12 12:08:30 -07:00
Stephen Gutekanst
958d2ad7ca
glfw: zig fmt
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-04-08 16:54:37 -07:00
Silver
00891b408f
glfw: add type to pkg def in build.zig
2022-04-07 18:42:15 -07:00
Stephen Gutekanst
a74ad932a2
glfw: add std.build.Pkg definition
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-04-05 00:16:51 -07:00
Mitchell Hashimoto
46acc7c0b4
system_sdk for linux-aarch64
2022-03-30 10:05:58 -07:00
Stephen Gutekanst
fe72a5d531
glfw: update to Zig 0.10.0-dev.1600+af844931b
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-03-26 13:31:24 -07:00
Stephen Gutekanst
8d3cce152b
glfw: CI: windows: disable progress bar for faster downloads
...
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-03-26 13:25:56 -07:00
BratishkaErik
ac7e0eed64
glfw: add instructions for Gyro in README.md ( #184 )
...
* glfw: add instructions for Gyro in README.md
2022-03-19 07:43:23 -07:00