comparison 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
comparison
equal deleted inserted replaced
10:ad69c414a881 11:f33d9ff8b6e8
1 load("@rules_cc//cc:cc_binary.bzl", "cc_binary") 1 load(":raylib.bzl", "raylib_binary")
2 2
3 alias( 3 raylib_binary(
4 name = "hello_world", 4 name = "hello_world",
5 actual = select({ 5 srcs = ["main.c"],
6 "@platforms//os:osx": ":hello_world_osx", 6 deps = [
7 }) 7 "//dowa:dowa",
8 "//third_party/raylib:raylib",
9 ],
8 ) 10 )
9 11
10 cc_binary(
11 name = "hello_world_osx",
12 srcs = ["main.c"],
13 deps = [
14 "//helper:helper",
15 "//third_party/raylib/raylib-5.5_macos:raylib_mac_os",
16 ],
17 linkopts = [
18 "-framework CoreVideo -framework IOKit -framework Cocoa -framework GLUT -framework OpenGL",
19 ]
20 )