Mercurial
comparison third_party/raylib/raylib.bzl @ 276:b55c22cff335
Add interactive infinite canvas prototype
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Mon, 17 Aug 2026 16:57:56 -0700 |
| parents | 94705b5986b3 |
| children |
comparison
equal
deleted
inserted
replaced
| 274:c9be578316a6 | 276:b55c22cff335 |
|---|---|
| 29 "/DEFAULTLIB:user32.lib", | 29 "/DEFAULTLIB:user32.lib", |
| 30 "/DEFAULTLIB:shell32.lib", | 30 "/DEFAULTLIB:shell32.lib", |
| 31 ], | 31 ], |
| 32 # I am not sure what these do lol | 32 # I am not sure what these do lol |
| 33 linkopts_wasm = [ | 33 linkopts_wasm = [ |
| 34 "-sUSE_GLFW=3", # Tells Emscripten to provide GLFW3 compatibility | 34 "-sUSE_GLFW=3", |
| 35 "-sUSE_WEBGL2=1", # Enables WebGL2 support | 35 "-sMIN_WEBGL_VERSION=2", |
| 36 "-sASYNCIFY", # Often needed for Raylib's main loop if not using emscripten_set_main_loop | 36 "-sMAX_WEBGL_VERSION=2", |
| 37 "-sALLOW_MEMORY_GROWTH", | |
| 37 ], | 38 ], |
| 38 static = False | 39 static = False, |
| 40 defines = [], | |
| 41 tags = [], | |
| 42 visibility = None, | |
| 43 additional_linker_inputs = [], | |
| 39 ): | 44 ): |
| 40 """ | 45 """ |
| 41 Raylib specific cross platform rules. | 46 Raylib specific cross platform rules. |
| 42 Args: | 47 Args: |
| 43 name: The logical name of the binary (alias). | 48 name: The logical name of the binary (alias). |
| 53 """ | 58 """ |
| 54 cc_binary( | 59 cc_binary( |
| 55 name = name, | 60 name = name, |
| 56 srcs = srcs, | 61 srcs = srcs, |
| 57 data = data, | 62 data = data, |
| 63 defines = defines + select({ | |
| 64 "//config:macos": [], | |
| 65 "//config:linux": [], | |
| 66 "//config:windows": [], | |
| 67 "//conditions:default": ["PLATFORM_WEB"], | |
| 68 }), | |
| 69 additional_linker_inputs = additional_linker_inputs, | |
| 58 deps = deps + select({ | 70 deps = deps + select({ |
| 59 "//config:macos": deps_macos, | 71 "//config:macos": deps_macos, |
| 60 "//config:linux": deps_linux, | 72 "//config:linux": deps_linux, |
| 61 "//config:windows": deps_windows, | 73 "//config:windows": deps_windows, |
| 62 "//conditions:default": [], | 74 "//conditions:default": [], |
| 66 "//config:linux": linkopts_linux, | 78 "//config:linux": linkopts_linux, |
| 67 "//config:windows": linkopts_windows, | 79 "//config:windows": linkopts_windows, |
| 68 "//conditions:default": linkopts_wasm, | 80 "//conditions:default": linkopts_wasm, |
| 69 }), | 81 }), |
| 70 linkstatic = static, | 82 linkstatic = static, |
| 83 tags = tags, | |
| 84 visibility = visibility, | |
| 71 ) | 85 ) |