Mercurial
diff hello_world/BUILD @ 0:5695ef413be0
Initialized mono repo with bazels with few examples.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Tue, 23 Sep 2025 10:05:25 -0700 |
| parents | |
| children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/hello_world/BUILD Tue Sep 23 10:05:25 2025 -0700 @@ -0,0 +1,20 @@ +load("@rules_cc//cc:cc_binary.bzl", "cc_binary") + +alias( + name = "hello_world", + actual = select({ + "@platforms//os:osx": ":hello_world_osx", + }) +) + +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", + ] +)