view color_game/BUILD @ 262:0f45474c1b1a

Add cyberpunk JRPG blog browser Show the latest posts in the JRPG preview and render the full blog archive and sanitized post details in the Inspect modal. Co-authored-by: Copilot <[email protected]>
author MrJuneJune <mrjunejune@users.noreply.github.com>
date Thu, 06 Aug 2026 04:08:45 -0700
parents 8d17f6e6e290
children
line wrap: on
line source

load("//third_party/raylib:raylib.bzl", "raylib_binary")
load("@emsdk//emscripten_toolchain:wasm_rules.bzl", "wasm_cc_binary")

filegroup(
  name = "wasm_html",
  srcs = ["index.html"],
)

raylib_binary(
  name = "main",
  srcs = ["main.c"],
  deps = [
    "//third_party/raylib:raylib",
    "//dowa:dowa",
  ],
  linkopts_wasm = [
      "-sUSE_GLFW=3",      # Tells Emscripten to provide GLFW3 compatibility
      "-sUSE_WEBGL2=1",    # Enables WebGL2 support
      "-sASYNCIFY",        # Often needed for Raylib's main loop if not using emscripten_set_main_loop
  ],
  data=[":wasm_html"],
  static = True
)

wasm_cc_binary(
  name = "wasm",
  cc_target = ":main",
)