Commit graph

544 commits

Author SHA1 Message Date
Stephen Gutekanst
cb517bc1f9 CI: install latest mesa drivers & xvfb directly
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-29 21:18:19 -07:00
Stephen Gutekanst
715e10be31 CI: use xvfb on Linux
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-29 21:18:19 -07:00
Stephen Gutekanst
cea9642195 CI: test Linux native & cross-compilation support
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-29 21:18:19 -07:00
Stephen Gutekanst
b1581b684c glfw: add Linux SDK / cross compilation support
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-29 21:18:19 -07:00
Stephen Gutekanst
732ca31181 glfw: add preliminary Linux support
Helps #4

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-26 01:29:47 -07:00
Stephen Gutekanst
7d5cd4bbcb glfw: add preliminary Linux support
Helps #4

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-26 01:29:47 -07:00
Stephen Gutekanst
99eff884e4 glfw: macos: add Metal support
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-26 01:12:00 -07:00
Stephen Gutekanst
e650b6ed9e glfw: macos: add Metal support
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-26 01:12:00 -07:00
Stephen Gutekanst
831a1153da glfw: windows: correct opengl32/GLESv2 linkage
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-26 01:11:12 -07:00
Stephen Gutekanst
73bf107907 glfw: windows: correct opengl32/GLESv2 linkage
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-26 01:11:12 -07:00
Stephen Gutekanst
d2ef671f04 glfw: always linkLibC
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-26 01:09:19 -07:00
Stephen Gutekanst
0be6c041bf glfw: always linkLibC
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-26 01:09:19 -07:00
Stephen Gutekanst
72972b8725 README: Windows cross compilation fully supported
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-25 23:16:57 -07:00
Stephen Gutekanst
ddc470c27b CI: add windows cross compilation
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-25 23:16:57 -07:00
Stephen Gutekanst
109c4e1d3b glfw: add Windows x86_64 support
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-25 22:59:08 -07:00
Stephen Gutekanst
66a41a00e8 CI: do not duplicate push/pull_request checks
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-25 22:59:08 -07:00
Stephen Gutekanst
9d5e849efb CI: run on pull requests
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-25 22:59:08 -07:00
Stephen Gutekanst
a54de46a8a README: x86_64-windows support verified
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-25 22:59:08 -07:00
Stephen Gutekanst
cd30cf1657 CI: test x86_64-windows support
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-25 22:59:08 -07:00
Stephen Gutekanst
45125bec55 glfw: add Windows x86_64 support
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-25 22:59:08 -07:00
Stephen Gutekanst
9a7f6a956c glfw: add Window.iconify
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-25 19:44:04 -07:00
Stephen Gutekanst
c4470e1a14 glfw: add Window.iconify
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-25 19:44:04 -07:00
Stephen Gutekanst
57a2f73273 glfw: add Window.setOpacity
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-25 19:38:06 -07:00
Stephen Gutekanst
c11a82c211 glfw: add Window.setOpacity
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-25 19:38:06 -07:00
Stephen Gutekanst
b636a040b3 glfw: add Window.getOpacity
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-25 19:36:41 -07:00
Stephen Gutekanst
14f4e4aaf2 glfw: add Window.getOpacity
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-25 19:36:41 -07:00
Stephen Gutekanst
c632ecc834 glfw: add Window.getContentScale
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-25 19:34:09 -07:00
Stephen Gutekanst
c98b2c73f8 glfw: add Window.getContentScale
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-25 19:34:09 -07:00
Stephen Gutekanst
5891912171
CI: update to latest nightly Zig b87105c92 (#13)
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-25 17:41:12 -07:00
Stephen Gutekanst
c9af091855
README: x86_64-macos -> aarch64-macos verified 2021-07-25 17:27:41 -07:00
Stephen Gutekanst
37f738fec8 README: x86_64-linux -> aarch64-macos now working
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-25 17:25:33 -07:00
Stephen Gutekanst
68b359f8c3 CI: add linux/windows -> aarch64-macos
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-25 17:25:33 -07:00
Stephen Gutekanst
356c2e673f
CI: cleanup naming conventions (#11)
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-25 17:18:06 -07:00
Stephen Gutekanst
4f5588a70c CI: correct macos pipeline name
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-25 17:09:43 -07:00
Stephen Gutekanst
e5642c5471 verify cross compilation: x86_64-macos -> aarch64-macos
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-25 17:09:43 -07:00
Stephen Gutekanst
34776c80e3 glfw: correct cross compilation
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-25 17:04:51 -07:00
Stephen Gutekanst
36eae62fea glfw: correct cross compilation
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-25 17:04:51 -07:00
Stephen Gutekanst
79db884e50 README: aarch64-macos -> aarch64-macos now tested via CI
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-25 16:09:28 -07:00
Stephen Gutekanst
dca5085f5e CI: rename mac -> x86_64-macos
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-25 16:09:28 -07:00
Stephen Gutekanst
ac3ddc4a5a CI: add aarch64-macos / M1 self-hosted runner
Fixes #7

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-25 16:09:28 -07:00
Stephen Gutekanst
c57a2374ab
README: update state of macOS support
Closes #3
2021-07-25 15:33:52 -07:00
Stephen Gutekanst
93b42d3aad glfw: add SDK_PATH for easier testing of changes to SDKs (#6)
This change makes it easier to test SDKs locally, e.g. if you have:

```
% tree projects/
projects
├── mach
│   └── glfw
└── sdk-macos-11.3
```

In the `projects/mach/glfw` directory it is now easy to test changes to `sdk-macos-11.3` using:

```sh
SDK_PATH="$(pwd)/../.." zig build test -Dtarget=aarch64-macos
```

And it'll use your local SDK, instead of the one in the appdata dir.

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-24 13:38:43 -07:00
Stephen Gutekanst
f9e098c442
glfw: add SDK_PATH for easier testing of changes to SDKs (#6)
This change makes it easier to test SDKs locally, e.g. if you have:

```
% tree projects/
projects
├── mach
│   └── glfw
└── sdk-macos-11.3
```

In the `projects/mach/glfw` directory it is now easy to test changes to `sdk-macos-11.3` using:

```sh
SDK_PATH="$(pwd)/../.." zig build test -Dtarget=aarch64-macos
```

And it'll use your local SDK, instead of the one in the appdata dir.

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-24 13:38:43 -07:00
Stephen Gutekanst
15e887fd7c glfw: add Window.getFrameSize
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-23 17:43:24 -07:00
Stephen Gutekanst
d1591f6b46 glfw: add Window.getFrameSize
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-23 17:43:24 -07:00
Stephen Gutekanst
1efdad8d0c glfw: add Window.getFramebufferSize
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-23 17:35:33 -07:00
Stephen Gutekanst
96ee2a1dc6 glfw: add Window.getFramebufferSize
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-23 17:35:33 -07:00
Stephen Gutekanst
71541e48d4 glfw: add Window.setSize
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-23 15:02:13 -07:00
Stephen Gutekanst
7cbe13941e glfw: add Window.setSize
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-23 15:02:13 -07:00
Stephen Gutekanst
d7edb72c3b glfw: add Window.setAspectRatio
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2021-07-23 14:43:04 -07:00