comparison 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
comparison
equal deleted inserted replaced
70:4bc56e88e1f3 71:75de5903355c
41 linkopts_macos: Extra linkopts for macOS. 41 linkopts_macos: Extra linkopts for macOS.
42 linkopts_linux: Extra linkopts for Linux. 42 linkopts_linux: Extra linkopts for Linux.
43 linkopts_windows: Extra linkopts for Windows. 43 linkopts_windows: Extra linkopts for Windows.
44 static: Make build executable static 44 static: Make build executable static
45 """ 45 """
46 macos_bin = name + "_macos"
47 linux_bin = name + "_linux"
48 windows_bin = name + "_windows"
49
50 native.cc_binary( 46 native.cc_binary(
51 name = macos_bin, 47 name = name,
52 srcs = srcs, 48 srcs = srcs,
53 deps = deps + deps_macos, 49 deps = deps + select({
54 linkopts = linkopts_macos, 50 "//config:macos": deps_macos,
51 "//config:linux": deps_linux,
52 "//config:windows": deps_windows,
53 "//conditions:default": [],
54 }),
55 linkopts = select({
56 "//config:macos": linkopts_macos,
57 "//config:linux": linkopts_linux,
58 "//config:windows": linkopts_windows,
59 "//conditions:default": [],
60 }),
55 linkstatic = static, 61 linkstatic = static,
56 ) 62 )
57
58 native.cc_binary(
59 name = linux_bin,
60 srcs = srcs,
61 deps = deps + deps_linux,
62 linkopts = linkopts_linux,
63 linkstatic = static,
64 )
65
66 native.cc_binary(
67 name = windows_bin,
68 srcs = srcs,
69 deps = deps + deps_windows,
70 linkopts = linkopts_windows,
71 linkstatic = static,
72 )
73
74 native.alias(
75 name = name,
76 actual = select({
77 "//config:macos": ":" + macos_bin,
78 "//config:linux": ":" + linux_bin,
79 "//config:windows": ":" + windows_bin,
80 "//conditions:default": ":" + linux_bin, # fallback
81 }),
82 )