• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1bootstrap_go_package(
2    name = "blueprint",
3    deps = [
4        "blueprint-parser",
5        "blueprint-pathtools",
6        "blueprint-proptools",
7    ],
8    pkgPath = "github.com/google/blueprint",
9    srcs = [
10        "context.go",
11        "glob.go",
12        "live_tracker.go",
13        "mangle.go",
14        "module_ctx.go",
15        "ninja_defs.go",
16        "ninja_strings.go",
17        "ninja_writer.go",
18        "package_ctx.go",
19        "scope.go",
20        "singleton_ctx.go",
21        "unpack.go",
22    ],
23    testSrcs = [
24        "context_test.go",
25        "ninja_strings_test.go",
26        "ninja_writer_test.go",
27        "splice_modules_test.go",
28        "unpack_test.go",
29	"visit_test.go",
30    ],
31)
32
33bootstrap_go_package(
34    name = "blueprint-parser",
35    pkgPath = "github.com/google/blueprint/parser",
36    srcs = [
37        "parser/ast.go",
38        "parser/modify.go",
39        "parser/parser.go",
40        "parser/printer.go",
41        "parser/sort.go",
42    ],
43    testSrcs = [
44        "parser/parser_test.go",
45        "parser/printer_test.go",
46    ],
47)
48
49bootstrap_go_package(
50    name = "blueprint-deptools",
51    pkgPath = "github.com/google/blueprint/deptools",
52    srcs = ["deptools/depfile.go"],
53)
54
55bootstrap_go_package(
56    name = "blueprint-pathtools",
57    pkgPath = "github.com/google/blueprint/pathtools",
58    deps = [
59        "blueprint-deptools",
60    ],
61    srcs = [
62        "pathtools/lists.go",
63        "pathtools/fs.go",
64        "pathtools/glob.go",
65    ],
66    testSrcs = [
67        "pathtools/glob_test.go",
68    ],
69)
70
71bootstrap_go_package(
72    name = "blueprint-proptools",
73    pkgPath = "github.com/google/blueprint/proptools",
74    srcs = [
75        "proptools/clone.go",
76        "proptools/escape.go",
77        "proptools/extend.go",
78        "proptools/proptools.go",
79        "proptools/typeequal.go",
80    ],
81    testSrcs = [
82        "proptools/clone_test.go",
83        "proptools/escape_test.go",
84        "proptools/extend_test.go",
85        "proptools/typeequal_test.go",
86    ],
87)
88
89bootstrap_go_package(
90    name = "blueprint-bootstrap",
91    deps = [
92        "blueprint",
93        "blueprint-deptools",
94        "blueprint-pathtools",
95        "blueprint-bootstrap-bpdoc",
96    ],
97    pkgPath = "github.com/google/blueprint/bootstrap",
98    srcs = [
99        "bootstrap/bootstrap.go",
100        "bootstrap/cleanup.go",
101        "bootstrap/command.go",
102        "bootstrap/config.go",
103        "bootstrap/doc.go",
104        "bootstrap/glob.go",
105        "bootstrap/writedocs.go",
106    ],
107)
108
109bootstrap_go_package(
110    name = "blueprint-bootstrap-bpdoc",
111    deps = [
112        "blueprint",
113        "blueprint-proptools",
114    ],
115    pkgPath = "github.com/google/blueprint/bootstrap/bpdoc",
116    srcs = [
117        "bootstrap/bpdoc/bpdoc.go",
118    ],
119)
120
121bootstrap_core_go_binary(
122    name = "minibp",
123    deps = [
124        "blueprint",
125        "blueprint-bootstrap",
126        "gotestmain-tests",
127    ],
128    srcs = ["bootstrap/minibp/main.go"],
129)
130
131bootstrap_core_go_binary(
132    name = "bpglob",
133    deps = ["blueprint-pathtools"],
134    srcs = ["bootstrap/bpglob/bpglob.go"],
135)
136
137blueprint_go_binary(
138    name = "bpfmt",
139    deps = ["blueprint-parser"],
140    srcs = ["bpfmt/bpfmt.go"],
141)
142
143blueprint_go_binary(
144    name = "bpmodify",
145    deps = ["blueprint-parser"],
146    srcs = ["bpmodify/bpmodify.go"],
147)
148
149bootstrap_core_go_binary(
150    name = "gotestmain",
151    srcs = ["gotestmain/gotestmain.go"],
152)
153
154// gotestmain tests can't be on the gotestmain module because it is an implicit dependency of tests.
155// Put the tests in their own package and make it a dependency of minibp to make sure they run.
156bootstrap_go_package(
157    name = "gotestmain-tests",
158    pkgPath = "github.com/google/blueprint/gotestmain",
159    srcs = [
160        "gotestmain/dummy.go",
161    ],
162    testSrcs = [
163        "gotestmain/testmain_test.go",
164    ],
165)
166
167bootstrap_core_go_binary(
168    name = "gotestrunner",
169    srcs = ["gotestrunner/gotestrunner.go"],
170)
171
172bootstrap_go_binary{
173    name = "loadplugins",
174    srcs = ["loadplugins/loadplugins.go"],
175}
176