Mercurial
diff raylib_examples/BUILD @ 11:f33d9ff8b6e8
[Raylib] Added raylib linux to third party lib and added cross platform support.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Tue, 30 Sep 2025 05:01:34 -0700 |
| parents | adcfad6e86fb |
| children | 82d1fe4d4ee6 |
line wrap: on
line diff
--- a/raylib_examples/BUILD Tue Sep 30 03:56:39 2025 -0700 +++ b/raylib_examples/BUILD Tue Sep 30 05:01:34 2025 -0700 @@ -1,20 +1,11 @@ -load("@rules_cc//cc:cc_binary.bzl", "cc_binary") +load(":raylib.bzl", "raylib_binary") -alias( +raylib_binary( name = "hello_world", - actual = select({ - "@platforms//os:osx": ":hello_world_osx", - }) + srcs = ["main.c"], + deps = [ + "//dowa:dowa", + "//third_party/raylib:raylib", + ], ) -cc_binary( - name = "hello_world_osx", - srcs = ["main.c"], - deps = [ - "//helper:helper", - "//third_party/raylib/raylib-5.5_macos:raylib_mac_os", - ], - linkopts = [ - "-framework CoreVideo -framework IOKit -framework Cocoa -framework GLUT -framework OpenGL", - ] -)