No description
Find a file
Colin Cross 2da8492b9d Add Providers to Blueprint
Providers are a new concept for Blueprint, based on providers in Bazel:
https://docs.bazel.build/versions/master/skylark/rules.html#providers

Providers aim to simplify the interaction between modules by replacing
type asserting to arbitrary interfaces with requesting optional data
objects from modules.  This will also move Blueprint closer to supporting
incremental analysis by serializing the providers and only rerunning
the analysis phase on modules whose inputs have changed.

Change-Id: I39f5f78b372412a7dbf151ceccb3f917f6c874bf
2020-09-22 18:20:18 -07:00
.github/workflows Use github actions instead of travis 2020-06-15 10:32:10 -07:00
bootstrap Enable variants of bootstrap modules 2020-09-09 14:32:42 -07:00
bpfmt Correctly report errors in bpfmt 2019-05-21 11:03:00 -07:00
bpmodify bpmodify: handle nested properties 2020-04-03 02:16:55 +08:00
deptools Make WriteDepFile escape spaces and special characters 2015-04-14 23:34:24 -04:00
gotestmain Support examples as tests 2019-02-15 15:13:37 -08:00
gotestrunner gotestrunner: Make GOROOT absolute before chdir 2017-01-18 14:42:09 -08:00
loadplugins Implement plugins for bootstrap go modules 2015-09-14 15:35:12 -07:00
microfactory Disable parallel compilation when using race detector 2018-04-30 14:44:22 -07:00
parser Implement list of maps 2020-03-02 17:26:20 -08:00
pathtools Fix reading absolute paths through OsFs 2020-01-10 13:52:22 -08:00
proptools Fix bug in buildPropertyMap in previous commit. 2020-03-03 17:42:38 -08:00
tests Make test_tree_tests.sh slightly easier to read 2017-10-30 15:00:19 -07:00
.gitignore Import globbing from Soong 2016-11-03 13:54:03 -07:00
.gofmt.sh Use github actions instead of travis 2020-06-15 10:32:10 -07:00
blueprint.bash Use microfactory to build the bootstrap minibp 2017-07-24 14:02:51 -07:00
blueprint_impl.bash Run globs during earlier bootstrap phases 2018-07-06 10:39:38 -07:00
Blueprints Add Providers to Blueprint 2020-09-22 18:20:18 -07:00
bootstrap.bash Add flag to use validations for tests 2020-07-09 14:28:20 -07:00
context.go Add Providers to Blueprint 2020-09-22 18:20:18 -07:00
context_test.go Support pausing parallelVisit 2020-09-16 12:58:39 -07:00
CONTRIBUTING.md Add CONTRIBUTING.md file 2015-03-16 00:12:49 -07:00
doc.go Fix Ninja build system site link 2019-03-23 16:31:07 +02:00
glob.go Add ShouldFollowSymlinks argument to pathtools.Glob 2018-09-24 15:09:32 -07:00
glob_test.go Fix glob cache conflict when excludes=nil and excludes=[]string{} 2018-02-23 14:03:56 -08:00
go.mod Add proptools.Int and proptools.IntDefault 2019-09-25 14:52:54 -07:00
LICENSE Add license headers and LICENSE file 2015-01-23 14:23:27 -08:00
live_tracker.go Add Validations support to Blueprint 2020-07-09 14:28:20 -07:00
mangle.go Add license headers and LICENSE file 2015-01-23 14:23:27 -08:00
module_ctx.go Add Providers to Blueprint 2020-09-22 18:20:18 -07:00
module_ctx_test.go Maintain ordering between variants and aliases 2020-09-09 18:29:15 -07:00
name_interface.go Maintain ordering between variants and aliases 2020-09-09 18:29:15 -07:00
ninja_defs.go Add Validations support to Blueprint 2020-07-09 14:28:20 -07:00
ninja_strings.go Make ninjaString an interface 2020-01-29 16:23:40 -08:00
ninja_strings_test.go Make ninjaString an interface 2020-01-29 16:23:40 -08:00
ninja_writer.go Add Validations support to Blueprint 2020-07-09 14:28:20 -07:00
ninja_writer_test.go Add Validations support to Blueprint 2020-07-09 14:28:20 -07:00
package_ctx.go Make ninjaString an interface 2020-01-29 16:23:40 -08:00
provider.go Add Providers to Blueprint 2020-09-22 18:20:18 -07:00
provider_test.go Add Providers to Blueprint 2020-09-22 18:20:18 -07:00
README.md Use github actions instead of travis 2020-06-15 10:32:10 -07:00
scope.go Make ninjaString an interface 2020-01-29 16:23:40 -08:00
singleton_ctx.go Add Providers to Blueprint 2020-09-22 18:20:18 -07:00
splice_modules_test.go Maintain ordering between variants and aliases 2020-09-09 18:29:15 -07:00
visit_test.go Maintain ordering between variants and aliases 2020-09-09 18:29:15 -07:00

Blueprint Build System

build

Blueprint is a meta-build system that reads in Blueprints files that describe modules that need to be built, and produces a Ninja manifest describing the commands that need to be run and their dependencies. Where most build systems use built-in rules or a domain-specific language to describe the logic for converting module descriptions to build rules, Blueprint delegates this to per-project build logic written in Go. For large, heterogenous projects this allows the inherent complexity of the build logic to be maintained in a high-level language, while still allowing simple changes to individual modules by modifying easy to understand Blueprints files.