Debian Codegraph @

stdlib/BUILD

raw
1 load("@rules_cc//cc:cc_library.bzl", "cc_library")
2
3 package(default_visibility = ["//visibility:private"])
4
5 filegroup(
6 name = "stdlib",
7 srcs = ["std.jsonnet"],
8 visibility = ["//visibility:public"],
9 )
10
11 cc_library(
12 name = "std",
13 includes = ["."],
14 linkstatic = 1,
15 textual_hdrs = [":gen-std-jsonnet-h"],
16 visibility = ["//core:__pkg__"],
17 )
18
19 genrule(
20 name = "gen-std-jsonnet-h",
21 srcs = ["std.jsonnet"],
22 outs = ["std.jsonnet.h"],
23 cmd = "((od -v -Anone -t u1 $< | tr \" \" \"\n\" | grep -v \"^$$\" " +
24 "| tr \"\n\" \",\" ) && echo \"0\") > $@; " +
25 "echo >> $@",
26 )