Debian Codegraph @

core/BUILD

raw
1 package(default_visibility = ["//visibility:public"])
2
3 cc_library(
4 name = "libjsonnet",
5 srcs = [
6 "desugarer.cpp",
7 "formatter.cpp",
8 "lexer.cpp",
9 "libjsonnet.cpp",
10 "parser.cpp",
11 "pass.cpp",
12 "static_analysis.cpp",
13 "string_utils.cpp",
14 "vm.cpp",
15 ],
16 hdrs = [
17 "ast.h",
18 "desugarer.h",
19 "formatter.h",
20 "json.h",
21 "lexer.h",
22 "parser.h",
23 "pass.h",
24 "state.h",
25 "static_analysis.h",
26 "static_error.h",
27 "string_utils.h",
28 "unicode.h",
29 "vm.h",
30 ],
31 includes = ["."],
32 linkopts = ["-lm"],
33 deps = [
34 "//include:libjsonnet",
35 "//include:libjsonnet_fmt",
36 "//stdlib:std",
37 "//third_party/json",
38 "//third_party/md5:libmd5",
39 "//third_party/rapidyaml:ryml",
40 ],
41 )
42
43 cc_test(
44 name = "lexer_test",
45 srcs = ["lexer_test.cpp"],
46 deps = [
47 ":libjsonnet",
48 # Note: On Ubuntu, apt-get install libgtest-dev google-mock
49 "@com_google_googletest//:gtest_main",
50 ],
51 )
52
53 cc_test(
54 name = "parser_test",
55 srcs = ["parser_test.cpp"],
56 deps = [
57 ":libjsonnet",
58 "@com_google_googletest//:gtest_main",
59 ],
60 )
61
62 cc_test(
63 name = "libjsonnet_test",
64 srcs = ["libjsonnet_test.cpp"],
65 deps = [
66 ":libjsonnet",
67 "@com_google_googletest//:gtest_main",
68 ],
69 )