blob: c84d04a32d31c42000c755c3a54e706c6b099b13 [file] [log] [blame]
Bob Badour76f9b092021-09-08 14:01:45 -07001package {
2 default_applicable_licenses: ["build_blueprint_license"],
3}
4
5// Added automatically by a large-scale-change that took the approach of
6// 'apply every license found to every target'. While this makes sure we respect
7// every license restriction, it may not be entirely correct.
8//
9// e.g. GPL in an MIT project might only apply to the contrib/ directory.
10//
11// Please consider splitting the single license below into multiple licenses,
12// taking care not to lose any license_kind information, and overriding the
13// default license using the 'licenses: [...]' property on targets as needed.
14//
15// For unused files, consider creating a 'fileGroup' with "//visibility:private"
16// to attach the license to, and including a comment whether the files may be
17// used in the current project.
18// See: http://go/android-license-faq
19license {
20 name: "build_blueprint_license",
21 visibility: [":__subpackages__"],
22 license_kinds: [
23 "SPDX-license-identifier-Apache-2.0",
24 "SPDX-license-identifier-BSD",
25 ],
26 license_text: [
27 "LICENSE",
28 ],
29}
30
Colin Cross4a0fe082017-10-19 15:30:06 -070031bootstrap_go_package {
32 name: "blueprint",
33 deps: [
Chris Parsons18ebb232022-03-25 00:56:02 -040034 "blueprint-metrics",
Colin Crossf5bd8282015-01-23 14:24:17 -080035 "blueprint-parser",
Michael Beardsworth1ec44532015-03-31 20:39:02 -070036 "blueprint-pathtools",
Colin Crossf5bd8282015-01-23 14:24:17 -080037 "blueprint-proptools",
38 ],
Colin Cross4a0fe082017-10-19 15:30:06 -070039 pkgPath: "github.com/google/blueprint",
40 srcs: [
Colin Crossf5bd8282015-01-23 14:24:17 -080041 "context.go",
Colin Cross127d2ea2016-11-01 11:10:51 -070042 "glob.go",
Colin Crossf5bd8282015-01-23 14:24:17 -080043 "live_tracker.go",
44 "mangle.go",
45 "module_ctx.go",
Jeff Gastond70bf752017-11-10 15:12:08 -080046 "name_interface.go",
Colin Crossf5bd8282015-01-23 14:24:17 -080047 "ninja_defs.go",
48 "ninja_strings.go",
49 "ninja_writer.go",
50 "package_ctx.go",
Colin Cross2da84922020-07-02 10:08:12 -070051 "provider.go",
Colin Crossf5bd8282015-01-23 14:24:17 -080052 "scope.go",
53 "singleton_ctx.go",
Colin Crossf5bd8282015-01-23 14:24:17 -080054 ],
Colin Cross4a0fe082017-10-19 15:30:06 -070055 testSrcs: [
Dan Willemsen87ba2942015-06-23 17:21:00 -070056 "context_test.go",
Colin Cross54cb95a2018-02-23 11:09:18 -080057 "glob_test.go",
Colin Crossf7beb892019-11-13 20:11:14 -080058 "module_ctx_test.go",
Dan Willemsen87ba2942015-06-23 17:21:00 -070059 "ninja_strings_test.go",
60 "ninja_writer_test.go",
Colin Cross2da84922020-07-02 10:08:12 -070061 "provider_test.go",
Dan Willemsen87ba2942015-06-23 17:21:00 -070062 "splice_modules_test.go",
Colin Cross4a0fe082017-10-19 15:30:06 -070063 "visit_test.go",
Dan Willemsen87ba2942015-06-23 17:21:00 -070064 ],
Colin Cross4a0fe082017-10-19 15:30:06 -070065}
Jamie Gennis1bc967e2014-05-27 16:34:41 -070066
Colin Cross4a0fe082017-10-19 15:30:06 -070067bootstrap_go_package {
68 name: "blueprint-parser",
69 pkgPath: "github.com/google/blueprint/parser",
70 srcs: [
Colin Crosse32cc802016-06-07 12:28:16 -070071 "parser/ast.go",
Colin Crossf5bd8282015-01-23 14:24:17 -080072 "parser/modify.go",
73 "parser/parser.go",
74 "parser/printer.go",
75 "parser/sort.go",
76 ],
Colin Cross4a0fe082017-10-19 15:30:06 -070077 testSrcs: [
Colin Cross957b39c2018-03-21 18:10:01 -070078 "parser/modify_test.go",
Dan Willemsen87ba2942015-06-23 17:21:00 -070079 "parser/parser_test.go",
80 "parser/printer_test.go",
Lukacs T. Berkieef56852021-09-02 11:34:06 +020081 "parser/sort_test.go",
Dan Willemsen87ba2942015-06-23 17:21:00 -070082 ],
Colin Cross4a0fe082017-10-19 15:30:06 -070083}
Jamie Gennis1bc967e2014-05-27 16:34:41 -070084
Colin Cross4a0fe082017-10-19 15:30:06 -070085bootstrap_go_package {
86 name: "blueprint-deptools",
87 pkgPath: "github.com/google/blueprint/deptools",
88 srcs: ["deptools/depfile.go"],
89}
Jamie Gennisfbb27fe2014-10-14 04:30:17 -040090
Colin Cross4a0fe082017-10-19 15:30:06 -070091bootstrap_go_package {
92 name: "blueprint-pathtools",
93 pkgPath: "github.com/google/blueprint/pathtools",
94 deps: [
Colin Cross127d2ea2016-11-01 11:10:51 -070095 "blueprint-deptools",
96 ],
Colin Cross4a0fe082017-10-19 15:30:06 -070097 srcs: [
Colin Crossf5bd8282015-01-23 14:24:17 -080098 "pathtools/lists.go",
Colin Crossb519a7e2017-02-01 13:21:35 -080099 "pathtools/fs.go",
Colin Crossf5bd8282015-01-23 14:24:17 -0800100 "pathtools/glob.go",
101 ],
Colin Cross4a0fe082017-10-19 15:30:06 -0700102 testSrcs: [
Colin Crossc64f2642018-09-20 21:48:44 -0700103 "pathtools/fs_test.go",
Dan Willemsen87ba2942015-06-23 17:21:00 -0700104 "pathtools/glob_test.go",
ThiƩbaud Weksteen8ec69072021-02-15 18:54:26 +0000105 "pathtools/lists_test.go",
Dan Willemsen87ba2942015-06-23 17:21:00 -0700106 ],
Colin Cross4a0fe082017-10-19 15:30:06 -0700107}
Jamie Gennisb9314562014-06-06 14:37:07 -0700108
Colin Cross4a0fe082017-10-19 15:30:06 -0700109bootstrap_go_package {
110 name: "blueprint-proptools",
111 pkgPath: "github.com/google/blueprint/proptools",
Colin Crossf27c5e42020-01-02 09:37:49 -0800112 deps: [
113 "blueprint-parser",
114 ],
Colin Cross4a0fe082017-10-19 15:30:06 -0700115 srcs: [
Colin Cross81695002015-10-30 13:19:14 -0700116 "proptools/clone.go",
Colin Cross41ca49f2016-09-29 13:19:34 -0700117 "proptools/escape.go",
Colin Cross0bc7e072015-10-27 18:15:15 -0700118 "proptools/extend.go",
Colin Cross19078362019-09-25 11:23:13 -0700119 "proptools/filter.go",
Colin Cross0bc7e072015-10-27 18:15:15 -0700120 "proptools/proptools.go",
Colin Crossa4f6a3b2019-03-05 16:34:45 -0800121 "proptools/tag.go",
Colin Crosse4b0d352015-11-02 14:58:10 -0800122 "proptools/typeequal.go",
Colin Crossf27c5e42020-01-02 09:37:49 -0800123 "proptools/unpack.go",
Colin Cross0bc7e072015-10-27 18:15:15 -0700124 ],
Colin Cross4a0fe082017-10-19 15:30:06 -0700125 testSrcs: [
Colin Crossf72ef502015-10-30 11:42:57 -0700126 "proptools/clone_test.go",
Colin Cross41ca49f2016-09-29 13:19:34 -0700127 "proptools/escape_test.go",
Colin Cross0bc7e072015-10-27 18:15:15 -0700128 "proptools/extend_test.go",
Colin Cross19078362019-09-25 11:23:13 -0700129 "proptools/filter_test.go",
Colin Crossa4f6a3b2019-03-05 16:34:45 -0800130 "proptools/tag_test.go",
Colin Crosse4b0d352015-11-02 14:58:10 -0800131 "proptools/typeequal_test.go",
Colin Crossf27c5e42020-01-02 09:37:49 -0800132 "proptools/unpack_test.go",
Colin Cross0bc7e072015-10-27 18:15:15 -0700133 ],
Colin Cross4a0fe082017-10-19 15:30:06 -0700134}
Jamie Gennisb9cbdae2014-10-02 18:36:13 -0700135
Colin Cross4a0fe082017-10-19 15:30:06 -0700136bootstrap_go_package {
137 name: "blueprint-bootstrap",
138 deps: [
Colin Crossf5bd8282015-01-23 14:24:17 -0800139 "blueprint",
140 "blueprint-deptools",
141 "blueprint-pathtools",
Colin Cross4572edd2015-05-13 14:36:24 -0700142 "blueprint-bootstrap-bpdoc",
Colin Crossf5bd8282015-01-23 14:24:17 -0800143 ],
Colin Cross4a0fe082017-10-19 15:30:06 -0700144 pkgPath: "github.com/google/blueprint/bootstrap",
145 srcs: [
Colin Crossf5bd8282015-01-23 14:24:17 -0800146 "bootstrap/bootstrap.go",
Colin Crossf5bd8282015-01-23 14:24:17 -0800147 "bootstrap/command.go",
148 "bootstrap/config.go",
Colin Cross127d2ea2016-11-01 11:10:51 -0700149 "bootstrap/glob.go",
Colin Cross4572edd2015-05-13 14:36:24 -0700150 "bootstrap/writedocs.go",
151 ],
Colin Cross4a0fe082017-10-19 15:30:06 -0700152}
Colin Cross4572edd2015-05-13 14:36:24 -0700153
Colin Cross4a0fe082017-10-19 15:30:06 -0700154bootstrap_go_package {
155 name: "blueprint-bootstrap-bpdoc",
156 deps: [
Colin Cross4572edd2015-05-13 14:36:24 -0700157 "blueprint",
158 "blueprint-proptools",
159 ],
Colin Cross4a0fe082017-10-19 15:30:06 -0700160 pkgPath: "github.com/google/blueprint/bootstrap/bpdoc",
161 srcs: [
Colin Cross4572edd2015-05-13 14:36:24 -0700162 "bootstrap/bpdoc/bpdoc.go",
Jaewoong Jung781f6b22019-02-06 16:20:17 -0800163 "bootstrap/bpdoc/properties.go",
164 "bootstrap/bpdoc/reader.go",
165 ],
166 testSrcs: [
Jaewoong Jungbd0f6c32019-05-28 13:16:20 -0700167 "bootstrap/bpdoc/bpdoc_test.go",
168 "bootstrap/bpdoc/properties_test.go",
Jaewoong Jung781f6b22019-02-06 16:20:17 -0800169 "bootstrap/bpdoc/reader_test.go",
Colin Crossf5bd8282015-01-23 14:24:17 -0800170 ],
Colin Cross4a0fe082017-10-19 15:30:06 -0700171}
Jamie Gennis1bc967e2014-05-27 16:34:41 -0700172
Lukacs T. Berkiceb3c432021-09-01 08:58:07 +0200173blueprint_go_binary {
Colin Cross4a0fe082017-10-19 15:30:06 -0700174 name: "bpglob",
175 deps: ["blueprint-pathtools"],
176 srcs: ["bootstrap/bpglob/bpglob.go"],
177}
Colin Cross127d2ea2016-11-01 11:10:51 -0700178
Colin Cross4a0fe082017-10-19 15:30:06 -0700179blueprint_go_binary {
180 name: "bpfmt",
181 deps: ["blueprint-parser"],
182 srcs: ["bpfmt/bpfmt.go"],
183}
Colin Cross41c397a2015-01-12 17:43:04 -0800184
Colin Cross4a0fe082017-10-19 15:30:06 -0700185blueprint_go_binary {
186 name: "bpmodify",
187 deps: ["blueprint-parser"],
188 srcs: ["bpmodify/bpmodify.go"],
189}
Dan Willemsen87ba2942015-06-23 17:21:00 -0700190
Lukacs T. Berkiceb3c432021-09-01 08:58:07 +0200191blueprint_go_binary {
Colin Cross4a0fe082017-10-19 15:30:06 -0700192 name: "gotestmain",
193 srcs: ["gotestmain/gotestmain.go"],
194}
Dan Willemsen91a657e2015-07-22 17:05:59 -0700195
Colin Cross5f303b92017-07-12 17:04:33 -0700196// gotestmain tests can't be on the gotestmain module because it is an implicit dependency of tests.
197// Put the tests in their own package and make it a dependency of minibp to make sure they run.
Colin Cross4a0fe082017-10-19 15:30:06 -0700198bootstrap_go_package {
199 name: "gotestmain-tests",
200 pkgPath: "github.com/google/blueprint/gotestmain",
201 srcs: [
Colin Cross5f303b92017-07-12 17:04:33 -0700202 "gotestmain/dummy.go",
203 ],
Colin Cross4a0fe082017-10-19 15:30:06 -0700204 testSrcs: [
Colin Cross5f303b92017-07-12 17:04:33 -0700205 "gotestmain/testmain_test.go",
206 ],
Colin Cross4a0fe082017-10-19 15:30:06 -0700207}
Colin Cross5f303b92017-07-12 17:04:33 -0700208
Lukacs T. Berkiceb3c432021-09-01 08:58:07 +0200209blueprint_go_binary {
Colin Cross4a0fe082017-10-19 15:30:06 -0700210 name: "gotestrunner",
211 srcs: ["gotestrunner/gotestrunner.go"],
212}
Dan Willemsenc7697ce2015-09-17 20:59:51 -0700213
Lukacs T. Berkiceb3c432021-09-01 08:58:07 +0200214blueprint_go_binary {
Colin Cross4a0fe082017-10-19 15:30:06 -0700215 name: "loadplugins",
216 srcs: ["loadplugins/loadplugins.go"],
Dan Willemsenfdeb7242015-07-24 16:53:27 -0700217}
Dan Willemsen1e723212017-07-18 19:37:37 -0700218
219blueprint_go_binary {
220 name: "microfactory",
Dan Willemsenff092862017-08-08 13:14:40 -0700221 deps: ["blueprint-microfactory"],
222 srcs: ["microfactory/main/main.go"],
223}
224
225bootstrap_go_package {
226 name: "blueprint-microfactory",
227 pkgPath: "github.com/google/blueprint/microfactory",
Dan Willemsen1e723212017-07-18 19:37:37 -0700228 srcs: ["microfactory/microfactory.go"],
229 testSrcs: ["microfactory/microfactory_test.go"],
230}