mirror of
https://github.com/google/go-jsonnet.git
synced 2025-08-07 14:57:24 +02:00
Using cpp_jsonnet as external repo
This commit is contained in:
parent
570101d43c
commit
eced33e88b
@ -2,7 +2,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|||||||
|
|
||||||
genrule(
|
genrule(
|
||||||
name = "dumpstdlibast",
|
name = "dumpstdlibast",
|
||||||
srcs = ["//cpp-jsonnet/stdlib"],
|
srcs = ["@cpp_jsonnet//stdlib"],
|
||||||
outs = ["stdast.go"],
|
outs = ["stdast.go"],
|
||||||
cmd = "./$(location //cmd/dumpstdlibast) \"$<\" > \"$@\"",
|
cmd = "./$(location //cmd/dumpstdlibast) \"$<\" > \"$@\"",
|
||||||
tools = ["//cmd/dumpstdlibast"],
|
tools = ["//cmd/dumpstdlibast"],
|
||||||
|
@ -29,3 +29,10 @@ def jsonnet_go_repositories():
|
|||||||
strip_prefix = "bazel-gazelle-38bd65ead186af23549480d6189b89c7c53c023e",
|
strip_prefix = "bazel-gazelle-38bd65ead186af23549480d6189b89c7c53c023e",
|
||||||
urls = ["https://github.com/bazelbuild/bazel-gazelle/archive/38bd65ead186af23549480d6189b89c7c53c023e.zip"],
|
urls = ["https://github.com/bazelbuild/bazel-gazelle/archive/38bd65ead186af23549480d6189b89c7c53c023e.zip"],
|
||||||
)
|
)
|
||||||
|
_maybe(
|
||||||
|
http_archive,
|
||||||
|
name = "cpp_jsonnet",
|
||||||
|
sha256 = "fa1a4047942797b7c4ed39718a20d63d1b98725fb5cf563efbc1ecca3375426f",
|
||||||
|
strip_prefix = "jsonnet-0.16.0",
|
||||||
|
urls = ["https://github.com/google/jsonnet/archive/v0.16.0.tar.gz"],
|
||||||
|
)
|
||||||
|
@ -18,7 +18,7 @@ go_library(
|
|||||||
"libjsonnet.cpp",
|
"libjsonnet.cpp",
|
||||||
],
|
],
|
||||||
cdeps = [
|
cdeps = [
|
||||||
"//cpp-jsonnet/include:libjsonnet",
|
"@cpp_jsonnet//include:libjsonnet",
|
||||||
],
|
],
|
||||||
cgo = True,
|
cgo = True,
|
||||||
copts = ["-Wall -Icpp-jsonnet/include"], # keep
|
copts = ["-Wall -Icpp-jsonnet/include"], # keep
|
||||||
|
Loading…
Reference in New Issue
Block a user