Get the croc into the engine
This commit is contained in:
22
game/BUILD
22
game/BUILD
@ -2,12 +2,30 @@ load("@bazel_skylib//rules:run_binary.bzl", "run_binary")
|
||||
|
||||
cc_library(
|
||||
name = "game",
|
||||
srcs = glob(["*.c"]) + [":art/game_tiles.c", ":map/game_map.c"],
|
||||
hdrs = glob(["*.h"]) + [":art/game_tiles.h", ":map/game_map.h"],
|
||||
srcs = glob(["*.c"]) + [
|
||||
"art/game_player.c",
|
||||
"art/game_tiles.c",
|
||||
"map/game_map.c",
|
||||
],
|
||||
hdrs = glob(["*.h", "art/*.h", "map/*.h"]),
|
||||
visibility = ["//visibility:public"],
|
||||
deps = ["//device:device", "//sys:sys"]
|
||||
)
|
||||
|
||||
run_binary(
|
||||
name = "game_player",
|
||||
args = [
|
||||
"game_player",
|
||||
"64", # n sprites
|
||||
"0", # key color
|
||||
"$(location :art/game_player.png)",
|
||||
"$(location :art/game_player.c)"
|
||||
],
|
||||
srcs = [":art/game_player.png"],
|
||||
outs = [":art/game_player.c"],
|
||||
tool = "//pytools:spritesheet",
|
||||
)
|
||||
|
||||
run_binary(
|
||||
name = "game_tiles",
|
||||
args = [
|
||||
|
Reference in New Issue
Block a user