Mercurial
annotate third_party/raylib/raylib.bzl @ 117:b91f2dd6f84d
[PostDog] Fixed delete logic.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Wed, 07 Jan 2026 05:02:45 -0800 |
| parents | e2a73e64e8e6 |
| children | 78ea8d5ccc87 |
| rev | line source |
|---|---|
|
26
a58a663dae68
[Sori] Making a simple game.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
1 def raylib_binary( |
|
a58a663dae68
[Sori] Making a simple game.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
2 name, |
|
a58a663dae68
[Sori] Making a simple game.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
3 srcs, |
|
a58a663dae68
[Sori] Making a simple game.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
4 deps = [], |
|
114
e2a73e64e8e6
[Postdog] Got history working.
June Park <parkjune1995@gmail.com>
parents:
71
diff
changeset
|
5 data = [], |
|
26
a58a663dae68
[Sori] Making a simple game.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
6 deps_macos = [], |
|
a58a663dae68
[Sori] Making a simple game.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
7 deps_linux = [], |
|
61
9df5587cf23b
[Color game] It can compile on windows now.
June Park <me@mrjunejune.com>
parents:
58
diff
changeset
|
8 deps_windows = [], |
|
26
a58a663dae68
[Sori] Making a simple game.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
9 linkopts_macos = [ |
|
a58a663dae68
[Sori] Making a simple game.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
10 "-framework CoreVideo", |
|
a58a663dae68
[Sori] Making a simple game.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
11 "-framework IOKit", |
|
a58a663dae68
[Sori] Making a simple game.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
12 "-framework Cocoa", |
|
a58a663dae68
[Sori] Making a simple game.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
13 "-framework GLUT", |
|
a58a663dae68
[Sori] Making a simple game.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
14 "-framework OpenGL", |
|
a58a663dae68
[Sori] Making a simple game.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
15 ], |
|
a58a663dae68
[Sori] Making a simple game.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
16 linkopts_linux = [ |
|
a58a663dae68
[Sori] Making a simple game.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
17 "-lGL", |
|
a58a663dae68
[Sori] Making a simple game.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
18 "-lm", |
|
a58a663dae68
[Sori] Making a simple game.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
19 "-lpthread", |
|
a58a663dae68
[Sori] Making a simple game.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
20 "-ldl", |
|
a58a663dae68
[Sori] Making a simple game.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
21 "-lrt", |
|
a58a663dae68
[Sori] Making a simple game.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
22 "-lX11", |
|
58
ccb42d5bf8fd
[PostDog] Somewhat working copy. That would use for testing.
June Park <parkjune1995@gmail.com>
parents:
26
diff
changeset
|
23 ], |
|
61
9df5587cf23b
[Color game] It can compile on windows now.
June Park <me@mrjunejune.com>
parents:
58
diff
changeset
|
24 linkopts_windows = [ |
|
9df5587cf23b
[Color game] It can compile on windows now.
June Park <me@mrjunejune.com>
parents:
58
diff
changeset
|
25 "/DEFAULTLIB:winmm.lib", |
|
9df5587cf23b
[Color game] It can compile on windows now.
June Park <me@mrjunejune.com>
parents:
58
diff
changeset
|
26 "/DEFAULTLIB:gdi32.lib", |
|
9df5587cf23b
[Color game] It can compile on windows now.
June Park <me@mrjunejune.com>
parents:
58
diff
changeset
|
27 "/DEFAULTLIB:opengl32.lib", |
|
9df5587cf23b
[Color game] It can compile on windows now.
June Park <me@mrjunejune.com>
parents:
58
diff
changeset
|
28 "/DEFAULTLIB:user32.lib", |
|
9df5587cf23b
[Color game] It can compile on windows now.
June Park <me@mrjunejune.com>
parents:
58
diff
changeset
|
29 "/DEFAULTLIB:shell32.lib", |
|
9df5587cf23b
[Color game] It can compile on windows now.
June Park <me@mrjunejune.com>
parents:
58
diff
changeset
|
30 ], |
|
58
ccb42d5bf8fd
[PostDog] Somewhat working copy. That would use for testing.
June Park <parkjune1995@gmail.com>
parents:
26
diff
changeset
|
31 static = False |
|
ccb42d5bf8fd
[PostDog] Somewhat working copy. That would use for testing.
June Park <parkjune1995@gmail.com>
parents:
26
diff
changeset
|
32 ): |
|
26
a58a663dae68
[Sori] Making a simple game.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
33 """ |
|
a58a663dae68
[Sori] Making a simple game.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
34 Raylib specific cross platform rules. |
|
a58a663dae68
[Sori] Making a simple game.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
35 Args: |
|
a58a663dae68
[Sori] Making a simple game.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
36 name: The logical name of the binary (alias). |
|
a58a663dae68
[Sori] Making a simple game.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
37 srcs: List of source files (common). |
|
a58a663dae68
[Sori] Making a simple game.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
38 deps: Mutual dependency. |
|
a58a663dae68
[Sori] Making a simple game.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
39 deps_macos: Extra deps for macOS. |
|
a58a663dae68
[Sori] Making a simple game.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
40 deps_linux: Extra deps for Linux. |
|
61
9df5587cf23b
[Color game] It can compile on windows now.
June Park <me@mrjunejune.com>
parents:
58
diff
changeset
|
41 deps_windows: Extra deps for Windows. |
|
26
a58a663dae68
[Sori] Making a simple game.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
42 linkopts_macos: Extra linkopts for macOS. |
|
a58a663dae68
[Sori] Making a simple game.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
43 linkopts_linux: Extra linkopts for Linux. |
|
61
9df5587cf23b
[Color game] It can compile on windows now.
June Park <me@mrjunejune.com>
parents:
58
diff
changeset
|
44 linkopts_windows: Extra linkopts for Windows. |
|
9df5587cf23b
[Color game] It can compile on windows now.
June Park <me@mrjunejune.com>
parents:
58
diff
changeset
|
45 static: Make build executable static |
|
26
a58a663dae68
[Sori] Making a simple game.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
46 """ |
|
a58a663dae68
[Sori] Making a simple game.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
47 native.cc_binary( |
|
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.
June Park <parkjune1995@gmail.com>
parents:
61
diff
changeset
|
48 name = name, |
|
26
a58a663dae68
[Sori] Making a simple game.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
49 srcs = srcs, |
|
114
e2a73e64e8e6
[Postdog] Got history working.
June Park <parkjune1995@gmail.com>
parents:
71
diff
changeset
|
50 data = data, |
|
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.
June Park <parkjune1995@gmail.com>
parents:
61
diff
changeset
|
51 deps = deps + select({ |
|
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.
June Park <parkjune1995@gmail.com>
parents:
61
diff
changeset
|
52 "//config:macos": deps_macos, |
|
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.
June Park <parkjune1995@gmail.com>
parents:
61
diff
changeset
|
53 "//config:linux": deps_linux, |
|
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.
June Park <parkjune1995@gmail.com>
parents:
61
diff
changeset
|
54 "//config:windows": deps_windows, |
|
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.
June Park <parkjune1995@gmail.com>
parents:
61
diff
changeset
|
55 "//conditions:default": [], |
|
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.
June Park <parkjune1995@gmail.com>
parents:
61
diff
changeset
|
56 }), |
|
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.
June Park <parkjune1995@gmail.com>
parents:
61
diff
changeset
|
57 linkopts = select({ |
|
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.
June Park <parkjune1995@gmail.com>
parents:
61
diff
changeset
|
58 "//config:macos": linkopts_macos, |
|
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.
June Park <parkjune1995@gmail.com>
parents:
61
diff
changeset
|
59 "//config:linux": linkopts_linux, |
|
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.
June Park <parkjune1995@gmail.com>
parents:
61
diff
changeset
|
60 "//config:windows": linkopts_windows, |
|
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.
June Park <parkjune1995@gmail.com>
parents:
61
diff
changeset
|
61 "//conditions:default": [], |
|
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.
June Park <parkjune1995@gmail.com>
parents:
61
diff
changeset
|
62 }), |
|
58
ccb42d5bf8fd
[PostDog] Somewhat working copy. That would use for testing.
June Park <parkjune1995@gmail.com>
parents:
26
diff
changeset
|
63 linkstatic = static, |
|
26
a58a663dae68
[Sori] Making a simple game.
June Park <parkjune1995@gmail.com>
parents:
diff
changeset
|
64 ) |