diff options
author | Dan Willemsen <dwillemsen@google.com> | 2016-11-03 02:39:18 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2016-11-03 02:39:18 +0000 |
commit | eb716e25590a50541c5c2b3be81ae0468ac35690 (patch) | |
tree | 25d9aa5fb94f0e09196420fc9dcecad101e87e07 | |
parent | 318af8be27ee681db5c72792065788f050f94735 (diff) | |
parent | 627803256fd4eadd53614aa1477f7289d99866ca (diff) | |
download | build_soong-eb716e25590a50541c5c2b3be81ae0468ac35690.tar.gz build_soong-eb716e25590a50541c5c2b3be81ae0468ac35690.tar.bz2 build_soong-eb716e25590a50541c5c2b3be81ae0468ac35690.zip |
Merge "Update build.ninja.in for blueprint upgrade"
-rw-r--r-- | build.ninja.in | 62 |
1 files changed, 27 insertions, 35 deletions
diff --git a/build.ninja.in b/build.ninja.in index e22f1463..7e6e949f 100644 --- a/build.ninja.in +++ b/build.ninja.in @@ -7,7 +7,7 @@ # # bootstrap [from Go package github.com/google/blueprint/bootstrap] # -ninja_required_version = 1.6.0 +ninja_required_version = 1.7.0 g.bootstrap.buildDir = @@BuildDir@@ @@ -34,6 +34,12 @@ rule g.bootstrap.bootstrap description = bootstrap ${in} generator = true +rule g.bootstrap.build.ninja + command = ${builder} ${extra} -b ${g.bootstrap.buildDir} -d ${out}.d -o ${out} ${in} + depfile = ${out}.d + description = ${builder} ${out} + restat = true + rule g.bootstrap.compile command = GOROOT='${g.bootstrap.goRoot}' ${g.bootstrap.compileCmd} -o ${out} -p ${pkgPath} -complete ${incFlags} -pack ${in} description = compile ${out} @@ -120,7 +126,10 @@ default ${g.bootstrap.buildDir}/.bootstrap/blueprint/test/test build ${g.bootstrap.buildDir}/.bootstrap/blueprint/test/test.passed: $ g.bootstrap.test $ ${g.bootstrap.buildDir}/.bootstrap/blueprint/test/test | $ - ${g.bootstrap.goTestRunnerCmd} + ${g.bootstrap.goTestRunnerCmd} || $ + ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/test/test.passed $ + ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/test/test.passed $ + ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/test/test.passed pkg = github.com/google/blueprint pkgSrcDir = ${g.bootstrap.srcDir}/build/blueprint default ${g.bootstrap.buildDir}/.bootstrap/blueprint/test/test.passed @@ -142,8 +151,7 @@ build $ ${g.bootstrap.compileCmd} $ ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a $ ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/pkg/github.com/google/blueprint/pathtools.a $ - ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/pkg/github.com/google/blueprint/proptools.a $ - || ${g.bootstrap.buildDir}/.bootstrap/blueprint/test/test.passed + ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/pkg/github.com/google/blueprint/proptools.a incFlags = -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/pkg -I ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/pkg pkgPath = github.com/google/blueprint default $ @@ -276,8 +284,7 @@ build $ ${g.bootstrap.srcDir}/build/blueprint/parser/parser.go $ ${g.bootstrap.srcDir}/build/blueprint/parser/printer.go $ ${g.bootstrap.srcDir}/build/blueprint/parser/sort.go | $ - ${g.bootstrap.compileCmd} || $ - ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/test/test.passed + ${g.bootstrap.compileCmd} pkgPath = github.com/google/blueprint/parser default $ ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/pkg/github.com/google/blueprint/parser.a @@ -337,8 +344,7 @@ build $ : g.bootstrap.compile $ ${g.bootstrap.srcDir}/build/blueprint/pathtools/lists.go $ ${g.bootstrap.srcDir}/build/blueprint/pathtools/glob.go | $ - ${g.bootstrap.compileCmd} || $ - ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/test/test.passed + ${g.bootstrap.compileCmd} pkgPath = github.com/google/blueprint/pathtools default $ ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/pkg/github.com/google/blueprint/pathtools.a @@ -410,8 +416,7 @@ build $ ${g.bootstrap.srcDir}/build/blueprint/proptools/extend.go $ ${g.bootstrap.srcDir}/build/blueprint/proptools/proptools.go $ ${g.bootstrap.srcDir}/build/blueprint/proptools/typeequal.go | $ - ${g.bootstrap.compileCmd} || $ - ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/test/test.passed + ${g.bootstrap.compileCmd} pkgPath = github.com/google/blueprint/proptools default $ ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/pkg/github.com/google/blueprint/proptools.a @@ -493,40 +498,27 @@ build ${g.bootstrap.buildDir}/.bootstrap/minibp/obj/a.out: g.bootstrap.link $ default ${g.bootstrap.buildDir}/.bootstrap/minibp/obj/a.out build ${g.bootstrap.BinDir}/minibp: g.bootstrap.cp $ - ${g.bootstrap.buildDir}/.bootstrap/minibp/obj/a.out + ${g.bootstrap.buildDir}/.bootstrap/minibp/obj/a.out || $ + ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/test/test.passed $ + ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/test/test.passed $ + ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/test/test.passed $ + ${g.bootstrap.buildDir}/.bootstrap/blueprint/test/test.passed default ${g.bootstrap.BinDir}/minibp # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # Singleton: bootstrap # Factory: github.com/google/blueprint/bootstrap.newSingletonFactory.func1 -rule s.bootstrap.primarybp - command = ${g.bootstrap.BinDir}/minibp --build-primary ${runTests} -b ${g.bootstrap.buildDir} -d ${outfile}.d -o ${outfile} ${in} - depfile = ${outfile}.d - description = minibp ${outfile} - -rule s.bootstrap.minibp - command = ${g.bootstrap.BinDir}/minibp ${runTests} -b ${g.bootstrap.buildDir} -d ${out}.d -o ${out} ${in} - depfile = ${out}.d - description = minibp ${out} - restat = true - -build ${g.bootstrap.buildDir}/.bootstrap/build.ninja: s.bootstrap.primarybp $ - ${g.bootstrap.srcDir}/Android.bp | ${g.bootstrap.BinDir}/gotestmain $ - ${g.bootstrap.BinDir}/gotestrunner ${g.bootstrap.BinDir}/minibp $ - ${g.bootstrap.srcDir}/Android.bp $ - ${g.bootstrap.buildDir}/.bootstrap/blueprint/test/github.com/google/blueprint.a $ - ${g.bootstrap.buildDir}/.bootstrap/blueprint-parser/test/github.com/google/blueprint/parser.a $ - ${g.bootstrap.buildDir}/.bootstrap/blueprint-pathtools/test/github.com/google/blueprint/pathtools.a $ - ${g.bootstrap.buildDir}/.bootstrap/blueprint-proptools/test/github.com/google/blueprint/proptools.a - outfile = ${g.bootstrap.buildDir}/.bootstrap/build.ninja - runTests = -t +build ${g.bootstrap.buildDir}/.bootstrap/build.ninja: g.bootstrap.build.ninja $ + ${g.bootstrap.srcDir}/Android.bp | ${builder} + builder = ${g.bootstrap.BinDir}/minibp + extra = --build-primary -t default ${g.bootstrap.buildDir}/.bootstrap/build.ninja build ${g.bootstrap.buildDir}/.minibootstrap/build.ninja.in: $ - s.bootstrap.minibp ${g.bootstrap.srcDir}/Android.bp | $ - ${g.bootstrap.BinDir}/minibp - runTests = -t + g.bootstrap.build.ninja ${g.bootstrap.srcDir}/Android.bp | ${builder} + builder = ${g.bootstrap.BinDir}/minibp + extra = -t default ${g.bootstrap.buildDir}/.minibootstrap/build.ninja.in build ${g.bootstrap.buildDir}/.minibootstrap/build.ninja: $ |