Bob Badour | 76f9b09 | 2021-09-08 14:01:45 -0700 | [diff] [blame] | 1 | package { |
| 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 |
| 19 | license { |
| 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 Cross | 4a0fe08 | 2017-10-19 15:30:06 -0700 | [diff] [blame] | 31 | bootstrap_go_package { |
| 32 | name: "blueprint", |
| 33 | deps: [ |
Chris Parsons | 18ebb23 | 2022-03-25 00:56:02 -0400 | [diff] [blame] | 34 | "blueprint-metrics", |
Colin Cross | f5bd828 | 2015-01-23 14:24:17 -0800 | [diff] [blame] | 35 | "blueprint-parser", |
Michael Beardsworth | 1ec4453 | 2015-03-31 20:39:02 -0700 | [diff] [blame] | 36 | "blueprint-pathtools", |
Colin Cross | f5bd828 | 2015-01-23 14:24:17 -0800 | [diff] [blame] | 37 | "blueprint-proptools", |
| 38 | ], |
Colin Cross | 4a0fe08 | 2017-10-19 15:30:06 -0700 | [diff] [blame] | 39 | pkgPath: "github.com/google/blueprint", |
| 40 | srcs: [ |
Colin Cross | f5bd828 | 2015-01-23 14:24:17 -0800 | [diff] [blame] | 41 | "context.go", |
Colin Cross | 127d2ea | 2016-11-01 11:10:51 -0700 | [diff] [blame] | 42 | "glob.go", |
Colin Cross | f5bd828 | 2015-01-23 14:24:17 -0800 | [diff] [blame] | 43 | "live_tracker.go", |
| 44 | "mangle.go", |
| 45 | "module_ctx.go", |
Jeff Gaston | d70bf75 | 2017-11-10 15:12:08 -0800 | [diff] [blame] | 46 | "name_interface.go", |
Colin Cross | f5bd828 | 2015-01-23 14:24:17 -0800 | [diff] [blame] | 47 | "ninja_defs.go", |
| 48 | "ninja_strings.go", |
| 49 | "ninja_writer.go", |
| 50 | "package_ctx.go", |
Colin Cross | 2da8492 | 2020-07-02 10:08:12 -0700 | [diff] [blame] | 51 | "provider.go", |
Colin Cross | f5bd828 | 2015-01-23 14:24:17 -0800 | [diff] [blame] | 52 | "scope.go", |
| 53 | "singleton_ctx.go", |
Colin Cross | f5bd828 | 2015-01-23 14:24:17 -0800 | [diff] [blame] | 54 | ], |
Colin Cross | 4a0fe08 | 2017-10-19 15:30:06 -0700 | [diff] [blame] | 55 | testSrcs: [ |
Dan Willemsen | 87ba294 | 2015-06-23 17:21:00 -0700 | [diff] [blame] | 56 | "context_test.go", |
Colin Cross | 54cb95a | 2018-02-23 11:09:18 -0800 | [diff] [blame] | 57 | "glob_test.go", |
Colin Cross | f7beb89 | 2019-11-13 20:11:14 -0800 | [diff] [blame] | 58 | "module_ctx_test.go", |
Dan Willemsen | 87ba294 | 2015-06-23 17:21:00 -0700 | [diff] [blame] | 59 | "ninja_strings_test.go", |
| 60 | "ninja_writer_test.go", |
Colin Cross | 2da8492 | 2020-07-02 10:08:12 -0700 | [diff] [blame] | 61 | "provider_test.go", |
Dan Willemsen | 87ba294 | 2015-06-23 17:21:00 -0700 | [diff] [blame] | 62 | "splice_modules_test.go", |
Colin Cross | 4a0fe08 | 2017-10-19 15:30:06 -0700 | [diff] [blame] | 63 | "visit_test.go", |
Dan Willemsen | 87ba294 | 2015-06-23 17:21:00 -0700 | [diff] [blame] | 64 | ], |
Colin Cross | 4a0fe08 | 2017-10-19 15:30:06 -0700 | [diff] [blame] | 65 | } |
Jamie Gennis | 1bc967e | 2014-05-27 16:34:41 -0700 | [diff] [blame] | 66 | |
Colin Cross | 4a0fe08 | 2017-10-19 15:30:06 -0700 | [diff] [blame] | 67 | bootstrap_go_package { |
| 68 | name: "blueprint-parser", |
| 69 | pkgPath: "github.com/google/blueprint/parser", |
| 70 | srcs: [ |
Colin Cross | e32cc80 | 2016-06-07 12:28:16 -0700 | [diff] [blame] | 71 | "parser/ast.go", |
Colin Cross | f5bd828 | 2015-01-23 14:24:17 -0800 | [diff] [blame] | 72 | "parser/modify.go", |
| 73 | "parser/parser.go", |
| 74 | "parser/printer.go", |
| 75 | "parser/sort.go", |
| 76 | ], |
Colin Cross | 4a0fe08 | 2017-10-19 15:30:06 -0700 | [diff] [blame] | 77 | testSrcs: [ |
Colin Cross | 957b39c | 2018-03-21 18:10:01 -0700 | [diff] [blame] | 78 | "parser/modify_test.go", |
Dan Willemsen | 87ba294 | 2015-06-23 17:21:00 -0700 | [diff] [blame] | 79 | "parser/parser_test.go", |
| 80 | "parser/printer_test.go", |
Lukacs T. Berki | eef5685 | 2021-09-02 11:34:06 +0200 | [diff] [blame] | 81 | "parser/sort_test.go", |
Dan Willemsen | 87ba294 | 2015-06-23 17:21:00 -0700 | [diff] [blame] | 82 | ], |
Colin Cross | 4a0fe08 | 2017-10-19 15:30:06 -0700 | [diff] [blame] | 83 | } |
Jamie Gennis | 1bc967e | 2014-05-27 16:34:41 -0700 | [diff] [blame] | 84 | |
Colin Cross | 4a0fe08 | 2017-10-19 15:30:06 -0700 | [diff] [blame] | 85 | bootstrap_go_package { |
| 86 | name: "blueprint-deptools", |
| 87 | pkgPath: "github.com/google/blueprint/deptools", |
| 88 | srcs: ["deptools/depfile.go"], |
| 89 | } |
Jamie Gennis | fbb27fe | 2014-10-14 04:30:17 -0400 | [diff] [blame] | 90 | |
Colin Cross | 4a0fe08 | 2017-10-19 15:30:06 -0700 | [diff] [blame] | 91 | bootstrap_go_package { |
| 92 | name: "blueprint-pathtools", |
| 93 | pkgPath: "github.com/google/blueprint/pathtools", |
| 94 | deps: [ |
Colin Cross | 127d2ea | 2016-11-01 11:10:51 -0700 | [diff] [blame] | 95 | "blueprint-deptools", |
| 96 | ], |
Colin Cross | 4a0fe08 | 2017-10-19 15:30:06 -0700 | [diff] [blame] | 97 | srcs: [ |
Colin Cross | f5bd828 | 2015-01-23 14:24:17 -0800 | [diff] [blame] | 98 | "pathtools/lists.go", |
Colin Cross | b519a7e | 2017-02-01 13:21:35 -0800 | [diff] [blame] | 99 | "pathtools/fs.go", |
Colin Cross | f5bd828 | 2015-01-23 14:24:17 -0800 | [diff] [blame] | 100 | "pathtools/glob.go", |
| 101 | ], |
Colin Cross | 4a0fe08 | 2017-10-19 15:30:06 -0700 | [diff] [blame] | 102 | testSrcs: [ |
Colin Cross | c64f264 | 2018-09-20 21:48:44 -0700 | [diff] [blame] | 103 | "pathtools/fs_test.go", |
Dan Willemsen | 87ba294 | 2015-06-23 17:21:00 -0700 | [diff] [blame] | 104 | "pathtools/glob_test.go", |
ThiƩbaud Weksteen | 8ec6907 | 2021-02-15 18:54:26 +0000 | [diff] [blame] | 105 | "pathtools/lists_test.go", |
Dan Willemsen | 87ba294 | 2015-06-23 17:21:00 -0700 | [diff] [blame] | 106 | ], |
Colin Cross | 4a0fe08 | 2017-10-19 15:30:06 -0700 | [diff] [blame] | 107 | } |
Jamie Gennis | b931456 | 2014-06-06 14:37:07 -0700 | [diff] [blame] | 108 | |
Colin Cross | 4a0fe08 | 2017-10-19 15:30:06 -0700 | [diff] [blame] | 109 | bootstrap_go_package { |
| 110 | name: "blueprint-proptools", |
| 111 | pkgPath: "github.com/google/blueprint/proptools", |
Colin Cross | f27c5e4 | 2020-01-02 09:37:49 -0800 | [diff] [blame] | 112 | deps: [ |
| 113 | "blueprint-parser", |
| 114 | ], |
Colin Cross | 4a0fe08 | 2017-10-19 15:30:06 -0700 | [diff] [blame] | 115 | srcs: [ |
Colin Cross | 8169500 | 2015-10-30 13:19:14 -0700 | [diff] [blame] | 116 | "proptools/clone.go", |
Colin Cross | 41ca49f | 2016-09-29 13:19:34 -0700 | [diff] [blame] | 117 | "proptools/escape.go", |
Colin Cross | 0bc7e07 | 2015-10-27 18:15:15 -0700 | [diff] [blame] | 118 | "proptools/extend.go", |
Colin Cross | 1907836 | 2019-09-25 11:23:13 -0700 | [diff] [blame] | 119 | "proptools/filter.go", |
Colin Cross | 0bc7e07 | 2015-10-27 18:15:15 -0700 | [diff] [blame] | 120 | "proptools/proptools.go", |
Colin Cross | a4f6a3b | 2019-03-05 16:34:45 -0800 | [diff] [blame] | 121 | "proptools/tag.go", |
Colin Cross | e4b0d35 | 2015-11-02 14:58:10 -0800 | [diff] [blame] | 122 | "proptools/typeequal.go", |
Colin Cross | f27c5e4 | 2020-01-02 09:37:49 -0800 | [diff] [blame] | 123 | "proptools/unpack.go", |
Colin Cross | 0bc7e07 | 2015-10-27 18:15:15 -0700 | [diff] [blame] | 124 | ], |
Colin Cross | 4a0fe08 | 2017-10-19 15:30:06 -0700 | [diff] [blame] | 125 | testSrcs: [ |
Colin Cross | f72ef50 | 2015-10-30 11:42:57 -0700 | [diff] [blame] | 126 | "proptools/clone_test.go", |
Colin Cross | 41ca49f | 2016-09-29 13:19:34 -0700 | [diff] [blame] | 127 | "proptools/escape_test.go", |
Colin Cross | 0bc7e07 | 2015-10-27 18:15:15 -0700 | [diff] [blame] | 128 | "proptools/extend_test.go", |
Colin Cross | 1907836 | 2019-09-25 11:23:13 -0700 | [diff] [blame] | 129 | "proptools/filter_test.go", |
Colin Cross | a4f6a3b | 2019-03-05 16:34:45 -0800 | [diff] [blame] | 130 | "proptools/tag_test.go", |
Colin Cross | e4b0d35 | 2015-11-02 14:58:10 -0800 | [diff] [blame] | 131 | "proptools/typeequal_test.go", |
Colin Cross | f27c5e4 | 2020-01-02 09:37:49 -0800 | [diff] [blame] | 132 | "proptools/unpack_test.go", |
Colin Cross | 0bc7e07 | 2015-10-27 18:15:15 -0700 | [diff] [blame] | 133 | ], |
Colin Cross | 4a0fe08 | 2017-10-19 15:30:06 -0700 | [diff] [blame] | 134 | } |
Jamie Gennis | b9cbdae | 2014-10-02 18:36:13 -0700 | [diff] [blame] | 135 | |
Colin Cross | 4a0fe08 | 2017-10-19 15:30:06 -0700 | [diff] [blame] | 136 | bootstrap_go_package { |
| 137 | name: "blueprint-bootstrap", |
| 138 | deps: [ |
Colin Cross | f5bd828 | 2015-01-23 14:24:17 -0800 | [diff] [blame] | 139 | "blueprint", |
| 140 | "blueprint-deptools", |
| 141 | "blueprint-pathtools", |
Colin Cross | 4572edd | 2015-05-13 14:36:24 -0700 | [diff] [blame] | 142 | "blueprint-bootstrap-bpdoc", |
Colin Cross | f5bd828 | 2015-01-23 14:24:17 -0800 | [diff] [blame] | 143 | ], |
Colin Cross | 4a0fe08 | 2017-10-19 15:30:06 -0700 | [diff] [blame] | 144 | pkgPath: "github.com/google/blueprint/bootstrap", |
| 145 | srcs: [ |
Colin Cross | f5bd828 | 2015-01-23 14:24:17 -0800 | [diff] [blame] | 146 | "bootstrap/bootstrap.go", |
Colin Cross | f5bd828 | 2015-01-23 14:24:17 -0800 | [diff] [blame] | 147 | "bootstrap/command.go", |
| 148 | "bootstrap/config.go", |
Colin Cross | 127d2ea | 2016-11-01 11:10:51 -0700 | [diff] [blame] | 149 | "bootstrap/glob.go", |
Colin Cross | 4572edd | 2015-05-13 14:36:24 -0700 | [diff] [blame] | 150 | "bootstrap/writedocs.go", |
| 151 | ], |
Colin Cross | 4a0fe08 | 2017-10-19 15:30:06 -0700 | [diff] [blame] | 152 | } |
Colin Cross | 4572edd | 2015-05-13 14:36:24 -0700 | [diff] [blame] | 153 | |
Colin Cross | 4a0fe08 | 2017-10-19 15:30:06 -0700 | [diff] [blame] | 154 | bootstrap_go_package { |
| 155 | name: "blueprint-bootstrap-bpdoc", |
| 156 | deps: [ |
Colin Cross | 4572edd | 2015-05-13 14:36:24 -0700 | [diff] [blame] | 157 | "blueprint", |
| 158 | "blueprint-proptools", |
| 159 | ], |
Colin Cross | 4a0fe08 | 2017-10-19 15:30:06 -0700 | [diff] [blame] | 160 | pkgPath: "github.com/google/blueprint/bootstrap/bpdoc", |
| 161 | srcs: [ |
Colin Cross | 4572edd | 2015-05-13 14:36:24 -0700 | [diff] [blame] | 162 | "bootstrap/bpdoc/bpdoc.go", |
Jaewoong Jung | 781f6b2 | 2019-02-06 16:20:17 -0800 | [diff] [blame] | 163 | "bootstrap/bpdoc/properties.go", |
| 164 | "bootstrap/bpdoc/reader.go", |
| 165 | ], |
| 166 | testSrcs: [ |
Jaewoong Jung | bd0f6c3 | 2019-05-28 13:16:20 -0700 | [diff] [blame] | 167 | "bootstrap/bpdoc/bpdoc_test.go", |
| 168 | "bootstrap/bpdoc/properties_test.go", |
Jaewoong Jung | 781f6b2 | 2019-02-06 16:20:17 -0800 | [diff] [blame] | 169 | "bootstrap/bpdoc/reader_test.go", |
Colin Cross | f5bd828 | 2015-01-23 14:24:17 -0800 | [diff] [blame] | 170 | ], |
Colin Cross | 4a0fe08 | 2017-10-19 15:30:06 -0700 | [diff] [blame] | 171 | } |
Jamie Gennis | 1bc967e | 2014-05-27 16:34:41 -0700 | [diff] [blame] | 172 | |
Lukacs T. Berki | ceb3c43 | 2021-09-01 08:58:07 +0200 | [diff] [blame] | 173 | blueprint_go_binary { |
Colin Cross | 4a0fe08 | 2017-10-19 15:30:06 -0700 | [diff] [blame] | 174 | name: "bpglob", |
| 175 | deps: ["blueprint-pathtools"], |
| 176 | srcs: ["bootstrap/bpglob/bpglob.go"], |
| 177 | } |
Colin Cross | 127d2ea | 2016-11-01 11:10:51 -0700 | [diff] [blame] | 178 | |
Colin Cross | 4a0fe08 | 2017-10-19 15:30:06 -0700 | [diff] [blame] | 179 | blueprint_go_binary { |
| 180 | name: "bpfmt", |
| 181 | deps: ["blueprint-parser"], |
| 182 | srcs: ["bpfmt/bpfmt.go"], |
| 183 | } |
Colin Cross | 41c397a | 2015-01-12 17:43:04 -0800 | [diff] [blame] | 184 | |
Colin Cross | 4a0fe08 | 2017-10-19 15:30:06 -0700 | [diff] [blame] | 185 | blueprint_go_binary { |
| 186 | name: "bpmodify", |
| 187 | deps: ["blueprint-parser"], |
| 188 | srcs: ["bpmodify/bpmodify.go"], |
| 189 | } |
Dan Willemsen | 87ba294 | 2015-06-23 17:21:00 -0700 | [diff] [blame] | 190 | |
Lukacs T. Berki | ceb3c43 | 2021-09-01 08:58:07 +0200 | [diff] [blame] | 191 | blueprint_go_binary { |
Colin Cross | 4a0fe08 | 2017-10-19 15:30:06 -0700 | [diff] [blame] | 192 | name: "gotestmain", |
| 193 | srcs: ["gotestmain/gotestmain.go"], |
| 194 | } |
Dan Willemsen | 91a657e | 2015-07-22 17:05:59 -0700 | [diff] [blame] | 195 | |
Colin Cross | 5f303b9 | 2017-07-12 17:04:33 -0700 | [diff] [blame] | 196 | // 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 Cross | 4a0fe08 | 2017-10-19 15:30:06 -0700 | [diff] [blame] | 198 | bootstrap_go_package { |
| 199 | name: "gotestmain-tests", |
| 200 | pkgPath: "github.com/google/blueprint/gotestmain", |
| 201 | srcs: [ |
Colin Cross | 5f303b9 | 2017-07-12 17:04:33 -0700 | [diff] [blame] | 202 | "gotestmain/dummy.go", |
| 203 | ], |
Colin Cross | 4a0fe08 | 2017-10-19 15:30:06 -0700 | [diff] [blame] | 204 | testSrcs: [ |
Colin Cross | 5f303b9 | 2017-07-12 17:04:33 -0700 | [diff] [blame] | 205 | "gotestmain/testmain_test.go", |
| 206 | ], |
Colin Cross | 4a0fe08 | 2017-10-19 15:30:06 -0700 | [diff] [blame] | 207 | } |
Colin Cross | 5f303b9 | 2017-07-12 17:04:33 -0700 | [diff] [blame] | 208 | |
Lukacs T. Berki | ceb3c43 | 2021-09-01 08:58:07 +0200 | [diff] [blame] | 209 | blueprint_go_binary { |
Colin Cross | 4a0fe08 | 2017-10-19 15:30:06 -0700 | [diff] [blame] | 210 | name: "gotestrunner", |
| 211 | srcs: ["gotestrunner/gotestrunner.go"], |
| 212 | } |
Dan Willemsen | c7697ce | 2015-09-17 20:59:51 -0700 | [diff] [blame] | 213 | |
Lukacs T. Berki | ceb3c43 | 2021-09-01 08:58:07 +0200 | [diff] [blame] | 214 | blueprint_go_binary { |
Colin Cross | 4a0fe08 | 2017-10-19 15:30:06 -0700 | [diff] [blame] | 215 | name: "loadplugins", |
| 216 | srcs: ["loadplugins/loadplugins.go"], |
Dan Willemsen | fdeb724 | 2015-07-24 16:53:27 -0700 | [diff] [blame] | 217 | } |
Dan Willemsen | 1e72321 | 2017-07-18 19:37:37 -0700 | [diff] [blame] | 218 | |
| 219 | blueprint_go_binary { |
| 220 | name: "microfactory", |
Dan Willemsen | ff09286 | 2017-08-08 13:14:40 -0700 | [diff] [blame] | 221 | deps: ["blueprint-microfactory"], |
| 222 | srcs: ["microfactory/main/main.go"], |
| 223 | } |
| 224 | |
| 225 | bootstrap_go_package { |
| 226 | name: "blueprint-microfactory", |
| 227 | pkgPath: "github.com/google/blueprint/microfactory", |
Dan Willemsen | 1e72321 | 2017-07-18 19:37:37 -0700 | [diff] [blame] | 228 | srcs: ["microfactory/microfactory.go"], |
| 229 | testSrcs: ["microfactory/microfactory_test.go"], |
| 230 | } |