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