Skip to content

Commit

Permalink
Merge pull request #189 from guoshimin/fixbazel
Browse files Browse the repository at this point in the history
fix bazel build
  • Loading branch information
sparkprime committed May 23, 2016
2 parents cf3307e + 83c7b4c commit b0e145f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
4 changes: 3 additions & 1 deletion core/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ cc_library(
":lexer",
"//stdlib:std",
],
includes = [".", "../include"],
)

cc_test(
Expand Down Expand Up @@ -80,7 +81,7 @@ cc_library(
"//include:libjsonnet",
],
linkopts = ["-lm"],
includes = ["."],
includes = [".", "../include"],
)

cc_library(
Expand All @@ -90,6 +91,7 @@ cc_library(
":jsonnet-common",
"//include:libjsonnet",
],
includes = [".", "../include"],
)

cc_test(
Expand Down
12 changes: 6 additions & 6 deletions cpp/testdata/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,26 @@ jsonnet_to_json_test(
name = "example_test",
src = "example.jsonnet",
golden = "example_golden.json",
jsonnet = "//:jsonnet",
std = "//:std",
jsonnet = "//cmd:jsonnet",
std = "//stdlib",
)

jsonnet_to_json_test(
name = "importing_test",
src = "importing.jsonnet",
golden = "importing_golden.json",
imports = ["."],
jsonnet = "//:jsonnet",
std = "//:std",
jsonnet = "//cmd:jsonnet",
std = "//stdlib",
)

jsonnet_to_json_test(
name = "invalid_test",
src = "invalid.jsonnet",
golden = "invalid.out",
error = 1,
jsonnet = "//:jsonnet",
std = "//:std",
jsonnet = "//cmd:jsonnet",
std = "//stdlib",
)

filegroup(
Expand Down
5 changes: 5 additions & 0 deletions stdlib/BUILD
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
package(default_visibility = ["//visibility:public"])

filegroup(
name = "stdlib",
srcs = ["std.jsonnet"],
)

cc_library(
name = "std",
hdrs = ["std.jsonnet.h"],
Expand Down

0 comments on commit b0e145f

Please sign in to comment.