diff third_party/raylib/raylib.bzl @ 71:75de5903355c

Giagantic changes that update Dowa library to be more align with stb style array and hashmap. Updated Seobeo to be caching on server side instead of file level caching. Deleted bunch of things I don't really use.
author June Park <parkjune1995@gmail.com>
date Sun, 28 Dec 2025 20:34:22 -0800
parents 9df5587cf23b
children e2a73e64e8e6
line wrap: on
line diff
--- a/third_party/raylib/raylib.bzl	Thu Dec 25 20:10:46 2025 -0800
+++ b/third_party/raylib/raylib.bzl	Sun Dec 28 20:34:22 2025 -0800
@@ -43,40 +43,20 @@
         linkopts_windows: Extra linkopts for Windows.
         static: Make build executable static
     """
-    macos_bin = name + "_macos"
-    linux_bin = name + "_linux"
-    windows_bin = name + "_windows"
-    
     native.cc_binary(
-        name = macos_bin,
+        name = name,
         srcs = srcs,
-        deps = deps + deps_macos,
-        linkopts = linkopts_macos,
-        linkstatic = static,
-    )
-    
-    native.cc_binary(
-        name = linux_bin,
-        srcs = srcs,
-        deps = deps + deps_linux,
-        linkopts = linkopts_linux,
+        deps = deps + select({
+            "//config:macos": deps_macos,
+            "//config:linux": deps_linux,
+            "//config:windows": deps_windows,
+            "//conditions:default": [],
+        }),
+        linkopts = select({
+            "//config:macos": linkopts_macos,
+            "//config:linux": linkopts_linux,
+            "//config:windows": linkopts_windows,
+            "//conditions:default": [],
+        }),
         linkstatic = static,
     )
-    
-    native.cc_binary(
-        name = windows_bin,
-        srcs = srcs,
-        deps = deps + deps_windows,
-        linkopts = linkopts_windows,
-        linkstatic = static,
-    )
-    
-    native.alias(
-        name = name,
-        actual = select({
-            "//config:macos": ":" + macos_bin,
-            "//config:linux": ":" + linux_bin,
-            "//config:windows": ":" + windows_bin,
-            "//conditions:default": ":" + linux_bin,  # fallback
-        }),
-    )