-
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.
feat: implement
bob_toolchain
defaults
This commit enables `bob_toolchain` to be applied by default for targets which do not specify their toolchain explicitly. Change-Id: I994200a6b688c1be81bcfee2fc951e4f4f7d2ded
- Loading branch information
1 parent
64d32f2
commit aace92c
Showing
22 changed files
with
374 additions
and
6 deletions.
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
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
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,4 @@ | ||
inherits/overwrite/parent/build.bp | ||
inherits/overwrite/build.bp | ||
inherits/build.bp | ||
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,14 @@ | ||
bob_toolchain { | ||
name: "default_toolchain_config", | ||
cflags: [ | ||
"-DROOT_TOOLCHAIN=1", | ||
], | ||
} | ||
|
||
bob_library { | ||
name: "foo", | ||
srcs: [ | ||
"src.c", | ||
], | ||
build_by_default: true, | ||
} |
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,8 @@ | ||
bob_library { | ||
name: "uses_root", | ||
srcs: [ | ||
"src.c", | ||
], | ||
build_by_default: true, | ||
|
||
} |
15 changes: 15 additions & 0 deletions
15
gendiffer/tests/toolchain/nesting/app/inherits/overwrite/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,15 @@ | ||
bob_toolchain { | ||
name: "overwrites_toolchain_config", | ||
cflags: [ | ||
"-DOVERWRITES_TOOLCHAIN=1", | ||
], | ||
} | ||
|
||
bob_library { | ||
name: "overwrites", | ||
srcs: [ | ||
"src.c", | ||
], | ||
build_by_default: true, | ||
|
||
} |
10 changes: 10 additions & 0 deletions
10
gendiffer/tests/toolchain/nesting/app/inherits/overwrite/parent/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,10 @@ | ||
|
||
|
||
bob_library { | ||
name: "parent", | ||
srcs: [ | ||
"src.c", | ||
], | ||
build_by_default: true, | ||
|
||
} |
Empty file.
50 changes: 50 additions & 0 deletions
50
gendiffer/tests/toolchain/nesting/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,50 @@ | ||
|
||
genrule { | ||
name: "_check_buildbp_updates_redacted", | ||
srcs: [ | ||
"build.bp", | ||
"inherits/build.bp", | ||
"inherits/overwrite/build.bp", | ||
"inherits/overwrite/parent/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)", | ||
} | ||
|
||
cc_library { | ||
name: "foo", | ||
host_supported: false, | ||
device_supported: true, | ||
srcs: ["src.c"], | ||
cflags: ["-DROOT_TOOLCHAIN=1"], | ||
compile_multilib: "both", | ||
} | ||
|
||
cc_library { | ||
name: "overwrites", | ||
host_supported: false, | ||
device_supported: true, | ||
srcs: ["inherits/overwrite/src.c"], | ||
cflags: ["-DOVERWRITES_TOOLCHAIN=1"], | ||
compile_multilib: "both", | ||
} | ||
|
||
cc_library { | ||
name: "parent", | ||
host_supported: false, | ||
device_supported: true, | ||
srcs: ["inherits/overwrite/parent/src.c"], | ||
cflags: ["-DOVERWRITES_TOOLCHAIN=1"], | ||
compile_multilib: "both", | ||
} | ||
|
||
cc_library { | ||
name: "uses_root", | ||
host_supported: false, | ||
device_supported: true, | ||
srcs: ["inherits/src.c"], | ||
cflags: ["-DROOT_TOOLCHAIN=1"], | ||
compile_multilib: "both", | ||
} | ||
|
Empty file.
1 change: 1 addition & 0 deletions
1
gendiffer/tests/toolchain/nesting/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.
Oops, something went wrong.