2022-03-22 23:04:29 +00:00
|
|
|
load("@rules_cc//cc:defs.bzl", "cc_library")
|
|
|
|
load("//bazel:copts.bzl", "COPTS")
|
|
|
|
|
2022-03-22 22:43:47 +00:00
|
|
|
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",
|
|
|
|
],
|
|
|
|
)
|
2022-03-22 23:04:29 +00:00
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "convert",
|
|
|
|
srcs = [
|
2022-03-22 23:05:13 +00:00
|
|
|
"charmap.c",
|
|
|
|
"convert.h",
|
2022-03-22 23:04:29 +00:00
|
|
|
"defs.h",
|
|
|
|
"toolbox.c",
|
|
|
|
],
|
|
|
|
copts = COPTS,
|
|
|
|
)
|