Mercurial
diff third_party/raylib/raylib.bzl @ 58:ccb42d5bf8fd
[PostDog] Somewhat working copy. That would use for testing.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Sat, 20 Dec 2025 09:33:15 -0800 |
| parents | a58a663dae68 |
| children | 9df5587cf23b |
line wrap: on
line diff
--- a/third_party/raylib/raylib.bzl Fri Dec 19 18:00:30 2025 -0800 +++ b/third_party/raylib/raylib.bzl Sat Dec 20 09:33:15 2025 -0800 @@ -18,7 +18,9 @@ "-ldl", "-lrt", "-lX11", - ]): + ], + static = False + ): """ Raylib specific cross platform rules. @@ -30,6 +32,7 @@ deps_linux: Extra deps for Linux. linkopts_macos: Extra linkopts for macOS. linkopts_linux: Extra linkopts for Linux. + static: Make build exectuable static """ macos_bin = name + "_macos" @@ -40,6 +43,7 @@ srcs = srcs, deps = deps + deps_macos, linkopts = linkopts_macos, + linkstatic = static, ) native.cc_binary( @@ -47,6 +51,7 @@ srcs = srcs, deps = deps + deps_linux, linkopts = linkopts_linux, + linkstatic = static, ) native.alias(