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 "name_interface.go", 16 "ninja_defs.go", 17 "ninja_strings.go", 18 "ninja_writer.go", 19 "package_ctx.go", 20 "provider.go", 21 "scope.go", 22 "singleton_ctx.go", 23 ], 24 testSrcs: [ 25 "context_test.go", 26 "glob_test.go", 27 "module_ctx_test.go", 28 "ninja_strings_test.go", 29 "ninja_writer_test.go", 30 "provider_test.go", 31 "splice_modules_test.go", 32 "visit_test.go", 33 ], 34} 35 36bootstrap_go_package { 37 name: "blueprint-parser", 38 pkgPath: "github.com/google/blueprint/parser", 39 srcs: [ 40 "parser/ast.go", 41 "parser/modify.go", 42 "parser/parser.go", 43 "parser/printer.go", 44 "parser/sort.go", 45 ], 46 testSrcs: [ 47 "parser/modify_test.go", 48 "parser/parser_test.go", 49 "parser/printer_test.go", 50 "parser/sort_test.go", 51 ], 52} 53 54bootstrap_go_package { 55 name: "blueprint-deptools", 56 pkgPath: "github.com/google/blueprint/deptools", 57 srcs: ["deptools/depfile.go"], 58} 59 60bootstrap_go_package { 61 name: "blueprint-pathtools", 62 pkgPath: "github.com/google/blueprint/pathtools", 63 deps: [ 64 "blueprint-deptools", 65 ], 66 srcs: [ 67 "pathtools/lists.go", 68 "pathtools/fs.go", 69 "pathtools/glob.go", 70 ], 71 testSrcs: [ 72 "pathtools/fs_test.go", 73 "pathtools/glob_test.go", 74 "pathtools/lists_test.go", 75 ], 76} 77 78bootstrap_go_package { 79 name: "blueprint-proptools", 80 pkgPath: "github.com/google/blueprint/proptools", 81 deps: [ 82 "blueprint-parser", 83 ], 84 srcs: [ 85 "proptools/clone.go", 86 "proptools/escape.go", 87 "proptools/extend.go", 88 "proptools/filter.go", 89 "proptools/proptools.go", 90 "proptools/tag.go", 91 "proptools/typeequal.go", 92 "proptools/unpack.go", 93 ], 94 testSrcs: [ 95 "proptools/clone_test.go", 96 "proptools/escape_test.go", 97 "proptools/extend_test.go", 98 "proptools/filter_test.go", 99 "proptools/tag_test.go", 100 "proptools/typeequal_test.go", 101 "proptools/unpack_test.go", 102 ], 103} 104 105bootstrap_go_package { 106 name: "blueprint-bootstrap", 107 deps: [ 108 "blueprint", 109 "blueprint-deptools", 110 "blueprint-pathtools", 111 "blueprint-bootstrap-bpdoc", 112 ], 113 pkgPath: "github.com/google/blueprint/bootstrap", 114 srcs: [ 115 "bootstrap/bootstrap.go", 116 "bootstrap/cleanup.go", 117 "bootstrap/command.go", 118 "bootstrap/config.go", 119 "bootstrap/doc.go", 120 "bootstrap/glob.go", 121 "bootstrap/writedocs.go", 122 ], 123} 124 125bootstrap_go_package { 126 name: "blueprint-bootstrap-bpdoc", 127 deps: [ 128 "blueprint", 129 "blueprint-proptools", 130 ], 131 pkgPath: "github.com/google/blueprint/bootstrap/bpdoc", 132 srcs: [ 133 "bootstrap/bpdoc/bpdoc.go", 134 "bootstrap/bpdoc/properties.go", 135 "bootstrap/bpdoc/reader.go", 136 ], 137 testSrcs: [ 138 "bootstrap/bpdoc/bpdoc_test.go", 139 "bootstrap/bpdoc/properties_test.go", 140 "bootstrap/bpdoc/reader_test.go", 141 ], 142} 143 144bootstrap_go_binary { 145 name: "minibp", 146 deps: [ 147 "blueprint", 148 "blueprint-bootstrap", 149 "gotestmain-tests", 150 ], 151 srcs: ["bootstrap/minibp/main.go"], 152} 153 154bootstrap_go_binary { 155 name: "bpglob", 156 deps: ["blueprint-pathtools"], 157 srcs: ["bootstrap/bpglob/bpglob.go"], 158} 159 160blueprint_go_binary { 161 name: "bpfmt", 162 deps: ["blueprint-parser"], 163 srcs: ["bpfmt/bpfmt.go"], 164} 165 166blueprint_go_binary { 167 name: "bpmodify", 168 deps: ["blueprint-parser"], 169 srcs: ["bpmodify/bpmodify.go"], 170} 171 172bootstrap_go_binary { 173 name: "gotestmain", 174 srcs: ["gotestmain/gotestmain.go"], 175} 176 177// gotestmain tests can't be on the gotestmain module because it is an implicit dependency of tests. 178// Put the tests in their own package and make it a dependency of minibp to make sure they run. 179bootstrap_go_package { 180 name: "gotestmain-tests", 181 pkgPath: "github.com/google/blueprint/gotestmain", 182 srcs: [ 183 "gotestmain/dummy.go", 184 ], 185 testSrcs: [ 186 "gotestmain/testmain_test.go", 187 ], 188} 189 190bootstrap_go_binary { 191 name: "gotestrunner", 192 srcs: ["gotestrunner/gotestrunner.go"], 193} 194 195bootstrap_go_binary { 196 name: "loadplugins", 197 srcs: ["loadplugins/loadplugins.go"], 198} 199 200blueprint_go_binary { 201 name: "microfactory", 202 deps: ["blueprint-microfactory"], 203 srcs: ["microfactory/main/main.go"], 204} 205 206bootstrap_go_package { 207 name: "blueprint-microfactory", 208 pkgPath: "github.com/google/blueprint/microfactory", 209 srcs: ["microfactory/microfactory.go"], 210 testSrcs: ["microfactory/microfactory_test.go"], 211} 212