summaryrefslogtreecommitdiffhomepage
path: root/src/build.zig
AgeCommit message (Collapse)Author
2023-11-04Allow raylib to be built with zig 0.11.0 and zig 0.12.0dev (master) (#3506)freakmangd
* allow zig 0.11.0 and 0.12.0dev to build raylib * update comment
2023-11-02build.zig updates for 0.11.0 release. (#3501)Caleb Barger
2023-10-17fix build.zig (#3433)Michael Scherbakow
for zig master (2023-10-17)
2023-10-14Fix raygui.c leftover from zig build (#3417)Blue
2023-10-13fix zig syntax errors in examples, and make it install executables correctly ↵Purple4pur
(#3395)
2023-10-10Revert "Update zig build system to zig version 0.11.0 (#3393)"Ray
This reverts commit 540ad9944205235cd9ccbd716c5a667daf929616.
2023-10-09Update zig build system to zig version 0.11.0 (#3393)Purple4pur
* update build.zig for zig 0.11.0 * fix build.zig in examples to install executable correctly * discard build.zig, only use src/build.zig, to avoid annoying zig-out path problem * update zig version note
2023-09-09Revert "Disable UBSAN in zig builds. (#3292)" (#3303)Ryan Roden-Corrent
This reverts commit a316f9e7fc7f8e06852a40544e57f89018672ee4. Issue #1891 was fixed again, so this is no longer needed.
2023-09-05Disable UBSAN in zig builds. (#3292)Ryan Roden-Corrent
Zig debug builds automatically enable ubsan. As the fix for #1891 had to be reverted, debug builds using zig will crash like so: ``` Illegal instruction at address 0x3237d2 raylib/src/rlgl.h:3690:91: 0x3237d2 in rlDrawVertexArrayElements (/home/rcorre/src/raylib-zig-template/raylib/src/rcore.c) glDrawElements(GL_TRIANGLES, count, GL_UNSIGNED_SHORT, (const unsigned short *)buffer + offset); ``` This disables UBSAN when using zig to build raylib.
2023-08-20add build.zig options for individual modules (#3254)actondev (Christos)
2023-08-06Tweak build.zig to work with cross-compiling (#3225)yujiri8
2023-08-01build change (#3214)Matheus C. França
ref.: https://github.com/ziglang/zig/pull/16446
2023-07-21build.zig: Support for building with PLAFORM_DRM (#3191)Jakub Václav Flasar
- Adds an option -Dplatform_drm when using zig build - When building for linux, checks whether -Dplatform_drm is present and configures the build accordingly.
2023-06-18Add options to zig compile (#3115)Dante Catalfamo
* Add options to zig compile options Support for compiling with raygui, raymath, and physac. Also outputs the required headers. Raygui should be located `../raygui` relative to the repo root Physac should be located `../physac` relative to the repo root This behavior matches options in the Makefile * Move Options struct * Remove physac, explicit raymath, always copy rlgl.h and raymath.h * Remove unused options from build.zig * Add srcdir as include path for raygui.h
2023-05-30build.zig: Fix cross-compiling from Linux (#3090)yujiri8
2023-05-15Reverted commits that deprecated the build.zig files, and added a note to ↵Gamer-Kold
all of them stating version of zig they were using (#3060) * Revert "Fixed broken build.zig files. Now works with latest stable compiler (as of commit, latest is 0.10.1) (#3045)" This reverts commit de748dfffefeba1ba9bcf0c90c538d32c9cb2020 so that zig build script works with master branch of zig. * Added a note to build.zig files that denotes what version of zig they have been tested with. * Standardised the note in the build.zig files
2023-05-14Update build.zig be be able to build with current zig master (#3064)Michael Scherbakow
2023-05-06Fixed broken build.zig files. Now works with latest stable compiler (as of ↵Gamer-Kold
commit, latest is 0.10.1) (#3045) Co-authored-by: Talha Qamar <[email protected]>
2023-05-01fix for latest zig master (#3037)star-tek-mb
2023-02-06zig build: do not use deprecated functions (#2913)star-tek-mb
2023-02-05update zig build to latest master (#2910)star-tek-mb
also, adds package manager support
2023-02-01Add WASM support for Zig build (#2901)Nikolas
* Add WASM support for Zig build * Improve Web example building * Remove emscript example building with Zig again * Readd windows emscripten variables
2022-11-09Add frameworks needed on macos (#2793)Martin Wickham
2022-10-20build.zig: let user decide how to set build mode + fix linker warning (#2763)InKryption
* build.zig: let user decide how to set build mode This should delegate the responsibility of calling `standardReleaseOptions` and setting the build mode of the `*LibExeObjStep` step to the caller, especially since this might not be the process by which one wants to determine the build mode. Also changes hides `getSrcDir` to enforce usage of `srcdir`, and asserts that the file is in fact inside a directory. * build.zig: set root_src param to `null` Supplying the header file as the root source here appears to cause a linker warning of the form: ``` LLD Link... warning(link): unexpected LLD stderr: ld.lld: warning: {build_root}/zig-cache/o/{hash}/libraylib.a: archive member '{build_root}/zig-cache/o/{hash}/raylib.o' is neither ET_REL nor LLVM bitcode ``` Passing `null` instead fixes it.
2022-10-02Update build.zig to work with last GLFW update (#2737)_Tradam
2022-09-27update build.zig (#2720)Michael Scherbakow
zig `master` now enforces to use addIncludePath instead of addIncludeDir
2022-03-11Simplify build.zig to not require user to specify raylib path (#2383)Komari Spaghetti
We can figure out the source file location based on the location of the build.zig file. No need to require the library user to specify where raylib is stored.
2022-02-09Add BSD support for zig builds (#2332)Scribe of the Ziggurat
- Adds a new OS clause to build.zig for the BSDs - Tested on my FreeBSD box using https://github.com/Not-Nik/raylib-zig - All demos build and render just fine. Nice !
2022-01-08Make zig build functionality available to zig programs (#2271)Nikolas
2021-11-27Add macos support to zig build system (#2175)Anders Holmberg
2021-10-17build.zig: Use addCSourceFiles (#2066)Sage Hane
2021-09-25Add Zig build file (#2014)Tommi Sinivuo
The build file builds Raylib as a static library for either Windows or Linux.