Closed archbirdplus closed 3 months ago
I'm mostly in favor of this. However since the future probably involves vulkan #102 I would like to avoid adding too much extra stuff, especially all the zink stuff, to the repositories for now.
Install scripts or instructions for additional libraries/applications, such as Mesa LLVMpipe/Zink libGL. Alternatively ship our own versions of these.
You are the only person on mac who will be going through all that trouble to get a barely playable game, so honestly we don't need install instructions for now. I think install instruction might actually be harmful because their existence would give the impression that the game would work on mac, which it doesn't.
Include GLFW as a submodule
Git submodules are annoying to use. It's better to use the zig package manager for that (similarly to how I did it for freetype and harfbuzz).
Note: because of the new platforms, this requires duplicating libcubyz_deps.a several times (20 MB with -Doptimize=ReleaseSmall), which may be undesirable.
Include an "official" build script for Cubyz-libs releases.
I've decided to extract these into a separate issue #325 which would be a requirement for this.
By the way hasn't this been fixed a while ago? You have been able to develop on mac for quite a while I think.
This issue is about merging the necessary modifications to allow Cubyz to compile on Mac.
This has several benefits:
This is similar but distinct to issue #299. #299 refers to native Cubyz support for Mac, which requires adapting Cubyz or OpenGL to work on Mac with native performance. This issue only requires that Cubyz compiles, regardless of playability.
Changes to consider:
Cubyz
:build.zig
with Mac libraries.libGL
will have to be in a non-standard location, unless we ship it withCubyz-libs
.run_linux.sh
might also involve rather invasive manual linking.Cubyz-libs
:build.zig
to build libraries for Mac.libcubyz_deps.a
several times (20 MB with-Doptimize=ReleaseSmall
), which may be undesirable.libGL
. Alternatively ship our own versions of these.