build system (first pass)

This commit is contained in:
2026-07-04 16:23:24 +02:00
parent 4ebe9c90e9
commit cdde49e68b
15 changed files with 1914 additions and 1 deletions
+18
View File
@@ -0,0 +1,18 @@
# Illustrative build.bro for a raylib program (not run in CI: needs raylib
# installed and the game sources under ./game).
#
# Generate the raylib bindings once with:
# brolang translate-c /opt/homebrew/Cellar/raylib/*/include/raylib.h > game/raylib.bro
# then:
# brolang build examples/build/raylib
b :: import "@std/build"
config :: b.BuildConfig{
name = "game",
source = "source",
libraries = &["raylib"],
lib_paths = &["/opt/homebrew/lib"],
includes = &["/opt/homebrew/include"],
defines = &[],
links = &["-framework", "Cocoa", "-framework", "IOKit", "-framework", "CoreVideo", "-framework", "OpenGL"],
}