crocparty/game/BUILD
2024-02-26 17:04:37 -08:00

23 lines
658 B
Python

load("@bazel_skylib//rules:run_binary.bzl", "run_binary")
cc_library(
name = "game",
srcs = glob(["*.c"]) + [":art/game_demo_sprites.c"],
hdrs = glob(["*.h"]) + [":art/game_demo_sprites.h"],
visibility = ["//visibility:public"],
deps = ["//device:device", "//sys:sys"]
)
run_binary(
name = "game_demo_sprites",
args = [
"game_demo_sprites",
"256", # n sprites
"0", # key color
"$(location :art/game_demo_sprites.png)",
"$(location :art/game_demo_sprites.c)"
],
srcs = [":art/game_demo_sprites.png"],
outs = [":art/game_demo_sprites.c"],
tool = "//pytools:spritesheet",
)