Mercurial
diff third_party/raylib/raylib.bzl @ 276:b55c22cff335
Add interactive infinite canvas prototype
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Mon, 17 Aug 2026 16:57:56 -0700 |
| parents | 94705b5986b3 |
| children |
line wrap: on
line diff
--- a/third_party/raylib/raylib.bzl Sat Aug 08 02:13:21 2026 -0700 +++ b/third_party/raylib/raylib.bzl Mon Aug 17 16:57:56 2026 -0700 @@ -31,11 +31,16 @@ ], # I am not sure what these do lol linkopts_wasm = [ - "-sUSE_GLFW=3", # Tells Emscripten to provide GLFW3 compatibility - "-sUSE_WEBGL2=1", # Enables WebGL2 support - "-sASYNCIFY", # Often needed for Raylib's main loop if not using emscripten_set_main_loop + "-sUSE_GLFW=3", + "-sMIN_WEBGL_VERSION=2", + "-sMAX_WEBGL_VERSION=2", + "-sALLOW_MEMORY_GROWTH", ], - static = False + static = False, + defines = [], + tags = [], + visibility = None, + additional_linker_inputs = [], ): """ Raylib specific cross platform rules. @@ -55,6 +60,13 @@ name = name, srcs = srcs, data = data, + defines = defines + select({ + "//config:macos": [], + "//config:linux": [], + "//config:windows": [], + "//conditions:default": ["PLATFORM_WEB"], + }), + additional_linker_inputs = additional_linker_inputs, deps = deps + select({ "//config:macos": deps_macos, "//config:linux": deps_linux, @@ -68,4 +80,6 @@ "//conditions:default": linkopts_wasm, }), linkstatic = static, + tags = tags, + visibility = visibility, )