-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit allows `bob_filegroup` to be enabled/disabled on Android. This has no effect on Linux at this time. Change-Id: I1a9de4ba38d8f95b5c67cd283eb9fbb4141aaf1b
- Loading branch information
1 parent
08eb08e
commit fe0cf1e
Showing
17 changed files
with
142 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
build.bp | ||
nested/build.bp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
bob_glob { | ||
name: "glob", | ||
srcs: ["**/main.c"], | ||
allow_empty: false, | ||
} | ||
|
||
bob_static_library { | ||
name: "lib", | ||
srcs: [ | ||
":all_filegroup", | ||
], | ||
enabled: false, | ||
|
||
} | ||
|
||
bob_binary { | ||
name: "bin", | ||
enabled: false, | ||
srcs: [ | ||
":all_filegroup", | ||
], | ||
|
||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
bob_filegroup { | ||
name: "filegroup", | ||
srcs: ["src/dummy01.c"], | ||
enabled: false, | ||
} | ||
|
||
bob_filegroup { | ||
name: "forward_filegroup", | ||
srcs: [":filegroup"], | ||
enabled: false, | ||
} | ||
|
||
bob_filegroup { | ||
name: "all_filegroup", | ||
srcs: [ | ||
":glob", | ||
":forward_filegroup", | ||
], | ||
// Conditional | ||
builder_android_bp: { | ||
enabled: false, | ||
}, | ||
} |
Empty file.
33 changes: 33 additions & 0 deletions
33
gendiffer/tests/filegroup/enable/out/android/Android.bp.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
|
||
genrule { | ||
name: "_check_buildbp_updates_redacted", | ||
srcs: [ | ||
"build.bp", | ||
"nested/build.bp", | ||
], | ||
out: ["androidbp_up_to_date"], | ||
tool_files: ["scripts/verify_hash.py"], | ||
cmd: "python $(location scripts/verify_hash.py) --hash redacted --out $(out) -- $(in)", | ||
} | ||
|
||
filegroup { | ||
name: "all_filegroup", | ||
srcs: [ | ||
":glob", | ||
":forward_filegroup", | ||
], | ||
enabled: false, | ||
} | ||
|
||
filegroup { | ||
name: "filegroup", | ||
srcs: ["nested/src/dummy01.c"], | ||
enabled: false, | ||
} | ||
|
||
filegroup { | ||
name: "forward_filegroup", | ||
srcs: [":filegroup"], | ||
enabled: false, | ||
} | ||
|
Empty file.
1 change: 1 addition & 0 deletions
1
gendiffer/tests/filegroup/enable/out/android/expectedExitCode.int
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0 |
Empty file.
Empty file.
47 changes: 47 additions & 0 deletions
47
gendiffer/tests/filegroup/enable/out/linux/build.ninja.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# ****************************************************************************** | ||
# *** This file is generated and should not be edited *** | ||
# ****************************************************************************** | ||
# | ||
# This file contains variables, rules, and pools with name prefixes indicating | ||
# they were generated by the following Go packages: | ||
# | ||
# bootstrap [from Go package github.com/google/blueprint/bootstrap] | ||
# | ||
ninja_required_version = 1.7.0 | ||
|
||
g.bootstrap.BinDir = redacted/.bootstrap/bin | ||
|
||
g.bootstrap.buildDir = redacted | ||
|
||
g.bootstrap.ninjaBuildDir = redacted | ||
|
||
g.bootstrap.srcDir = redacted | ||
|
||
builddir = ${g.bootstrap.ninjaBuildDir} | ||
|
||
rule g.bootstrap.cp | ||
command = cp ${in} ${out} | ||
description = cp ${out} | ||
|
||
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | ||
# Singleton: bootstrap | ||
# Factory: github.com/google/blueprint/bootstrap.Main.func4 | ||
|
||
rule s.bootstrap.bigbpDocs | ||
command = ${g.bootstrap.BinDir}/minibp -p -l redacted/bplist -b ${g.bootstrap.buildDir} --docs ${out} ${g.bootstrap.srcDir}/build.bp | ||
description = minibp docs ${out} | ||
|
||
build ${g.bootstrap.buildDir}/bin/minibp: g.bootstrap.cp $ | ||
${g.bootstrap.BinDir}/minibp | ||
default ${g.bootstrap.buildDir}/bin/minibp | ||
|
||
build ${g.bootstrap.buildDir}/.primary/docs/minibp.html: s.bootstrap.bigbpDocs $ | ||
| ${g.bootstrap.BinDir}/minibp | ||
default ${g.bootstrap.buildDir}/.primary/docs/minibp.html | ||
|
||
build blueprint_docs: phony ${g.bootstrap.buildDir}/.primary/docs/minibp.html | ||
default blueprint_docs | ||
|
||
build blueprint_tools: phony | ||
default blueprint_tools | ||
|
1 change: 1 addition & 0 deletions
1
gendiffer/tests/filegroup/enable/out/linux/expectedExitCode.int
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0 |
Empty file.
Empty file.