2024-02-26 20:42:07 +00:00
|
|
|
load("@bazel_skylib//rules:run_binary.bzl", "run_binary")
|
|
|
|
|
2024-02-26 02:38:53 +00:00
|
|
|
cc_library(
|
|
|
|
name = "sys",
|
2024-02-26 20:42:07 +00:00
|
|
|
srcs = glob(["*.c"]) + [":fonts/sys_font_small.c"],
|
|
|
|
hdrs = glob(["*.h"]) + [":fonts/sys_font_small.h"],
|
2024-02-26 02:38:53 +00:00
|
|
|
visibility = ["//visibility:public"],
|
2024-02-26 20:42:07 +00:00
|
|
|
deps = ["//device:device"],
|
|
|
|
)
|
|
|
|
|
|
|
|
run_binary(
|
|
|
|
name = "sys_font_small",
|
|
|
|
args = [
|
|
|
|
"sys_font_small",
|
|
|
|
"256",
|
|
|
|
"$(location :fonts/sys_font_small.png)",
|
|
|
|
"$(location :fonts/sys_font_small.c)"
|
|
|
|
],
|
|
|
|
srcs = [":fonts/sys_font_small.png"],
|
|
|
|
outs = [":fonts/sys_font_small.c"],
|
|
|
|
tool = "//pytools:font",
|
2024-02-26 02:38:53 +00:00
|
|
|
)
|