crocparty/game/BUILD

35 lines
955 B
Python
Raw Normal View History

2024-02-27 01:04:37 +00:00
load("@bazel_skylib//rules:run_binary.bzl", "run_binary")
2024-02-25 21:49:21 +00:00
cc_library(
name = "game",
2024-02-27 03:51:26 +00:00
srcs = glob(["*.c"]) + [":art/game_demo_sprites.c", ":map/game_map.c"],
hdrs = glob(["*.h"]) + [":art/game_demo_sprites.h", ":map/game_map.h"],
2024-02-26 00:40:33 +00:00
visibility = ["//visibility:public"],
deps = ["//device:device", "//sys:sys"]
2024-02-27 01:04:37 +00:00
)
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",
2024-02-27 03:51:26 +00:00
)
run_binary(
name = "game_map",
args = [
"game_map",
"$(location :map/crocparty.ldtk)",
"$(location :map/game_map.c)",
],
srcs = [":map/crocparty.ldtk"],
outs = [":map/game_map.c"],
tool = "//pytools:mapdata"
2024-02-26 00:40:33 +00:00
)