syncfiles/src/BUILD.bazel

41 lines
859 B
Python
Raw Normal View History

load("@rules_cc//cc:defs.bzl", "cc_library")
load("//bazel:copts.bzl", "COPTS")
genrule(
name = "data",
srcs = [
"//charmap:data",
"//scripts:data",
],
outs = [
"charmap.c",
"charmap.r",
"charmap_roman.dat",
"charmap_turkish.dat",
"charmap_croatian.dat",
"charmap_iceland.dat",
"charmap_romanian.dat",
"charmap_celtic.dat",
"charmap_gaelic.dat",
"charmap_greek.dat",
"charmap_cyrillic.dat",
"charmap_inuit.dat",
"charmap_centeuro.dat",
],
cmd = "$(execpath //gen:macscript) -dest=$(RULEDIR) -src=. -quiet",
tools = [
"//gen:macscript",
],
)
cc_library(
name = "convert",
srcs = [
2022-03-22 23:05:13 +00:00
"charmap.c",
"convert.h",
"defs.h",
"toolbox.c",
],
copts = COPTS,
)