Colin Cross
5789858aa8
Register the kythe singleton on the Context instead of globally
...
Test: all soong tests
Change-Id: Ief43ff51e66db2d3c895b2a6952385e31b9d669b
2020-11-17 10:50:19 -08:00
Colin Cross
121292911a
Store ninja file deps from PackageVarContext in the config
...
Store ninja file deps from ExistentPathForSource on a
PackageVarContext in the config instead of the PackageContext, as
the PackageContext may be shared between multiple tests running
in parallel.
Test: all soong tests
Change-Id: Ib1809a4dd4a82696e0fe48a87eac21a44684ecb5
2020-11-17 10:50:19 -08:00
Colin Cross
06fa588d1a
Store SingletonMakeVarsProviders in the config
...
Store SingletonMakeVarsProviders in the config instead of a global
variable to avoid races between tests running in parallel.
Test: all soong tests
Change-Id: I2ab64f368b5ac673fd985399d4421ed018abc562
2020-11-17 10:47:24 -08:00
Ivan Lozano
9b44383788
rust: Add header library support to rust_bindgen.
...
Allow rust_bindgen modules to define dependencies that only provide
headers and may not necessarily need to be linked in.
Bug: 161141999
Test: Soong tests pass.
Test: Example module has appropriate include flags when compiling.
Change-Id: Ic9ce8b1204008ad8dcb18766c914e48bb292d485
2020-11-17 13:40:50 -05:00
Treehugger Robot
50790b6be4
Merge "Add keymint to vndk." am: beab64ea81
am: 9d69703838
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1431273
Change-Id: I1311ae7a4221361471f1eeca3ce784f81ae3244c
2020-11-17 17:10:03 +00:00
Treehugger Robot
9d69703838
Merge "Add keymint to vndk." am: beab64ea81
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1431273
Change-Id: I9c0c19a369dbfe758d682a572410fe6939da9a9a
2020-11-17 16:55:17 +00:00
Treehugger Robot
beab64ea81
Merge "Add keymint to vndk."
2020-11-17 16:13:50 +00:00
Ivan Lozano
a6f0ef6032
Merge "rust: Fix incorrect expected gcno file for dylibs" am: 3d0f191c35
am: 1e034e7ce1
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1500970
Change-Id: Ic9a384defbf47d7c97a492a306fc8491e1730236
2020-11-17 15:42:52 +00:00
Ivan Lozano
1e034e7ce1
Merge "rust: Fix incorrect expected gcno file for dylibs" am: 3d0f191c35
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1500970
Change-Id: I2450c40b1978ee8f9325239f00a4451b46406d50
2020-11-17 15:30:11 +00:00
Ivan Lozano
3d0f191c35
Merge "rust: Fix incorrect expected gcno file for dylibs"
2020-11-17 15:18:03 +00:00
Ivan Lozano
d7ddf051d3
rust: Fix incorrect expected gcno file for dylibs
...
For Rust dylibs we generate a file suffix of .dylib.so. rustc seems to
split the output filename for the gcno file at the first '.', so instead
of libfoo.dylib.gcno (which our build system expects), it produces
libfoo.gcno.
This fixes the mismatch so the build system can find the gcno file that
gets produced for Rust dylibs.
Bug: 170983066
Test: CLANG_COVERAGE=true NATIVE_COVERAGE_PATHS=external/rust/crates \
m libandroid_log_sys
Change-Id: Icba48bf10ab06c255bd17053d57feb889b1f9ee5
2020-11-17 08:08:21 -05:00
Paul Duffin
de2ee3a348
Merge "Switch boot jars package check to use dexdump xml output" am: 969ca6701c
am: 0a72ce0d85
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1496337
Change-Id: I4cdc43b8e0f3913fa75bb25b0382747152c084b6
2020-11-17 12:54:06 +00:00
Paul Duffin
0a72ce0d85
Merge "Switch boot jars package check to use dexdump xml output" am: 969ca6701c
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1496337
Change-Id: I4364d156c84c57acb4b01709a25a56b446e58e9e
2020-11-17 12:38:45 +00:00
Paul Duffin
969ca6701c
Merge "Switch boot jars package check to use dexdump xml output"
2020-11-17 12:16:32 +00:00
Ulyana Trafimovich
f0c0057668
Merge changes Iebfbf2ff,Ibd974268 am: d8d8e726a5
am: c4232f60d6
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1478656
Change-Id: Iaeb9648d8900f63fc46e42e333d5ee0d143f8536
2020-11-17 11:26:59 +00:00
Ulyana Trafimovich
c4232f60d6
Merge changes Iebfbf2ff,Ibd974268 am: d8d8e726a5
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1478656
Change-Id: I7d67b21e6f2590dd502f1212a70639160a5fafbc
2020-11-17 10:51:02 +00:00
Ulyana Trafimovich
d8d8e726a5
Merge changes Iebfbf2ff,Ibd974268
...
* changes:
Rename fields and methods to reflect class loader context changes.
Do not add dependencies of shared SDK libraries to manifest_fixer.
2020-11-17 10:22:00 +00:00
Jingwen Chen
7a5391a979
soong_ui's bazel.go: document/comment with tiny refactoring.
...
This patch adds information behind the Bazel USE_BAZEL=1 execution
pipeline.
Test: m
Bug: 173474588
Change-Id: I54bdd26fb14c8a371de0922d193419112e8c3ece
2020-11-17 03:46:23 -05:00
Yo Chiang
803c40daa2
prebuilt_etc: Improve comments and slight refactoring
...
Comment changes:
* Add top level package description.
* Clarify `OutputFileProducer` usage for `prebuilt_etc.src` field.
* Clarify output file basename selection rule.
Refactor changes:
* Don't emit superfluous `LOCAL_UNINSTALLABLE_MODULE := false` lines.
* `for _, i := range list { entry.AddStrings(prop, i) }` =>
`entry.AddStrings(prop, list...)`
Bug: 173379413
Test: TH presubmit
Change-Id: Iab90aea5ff2497525ebe1600d3ce5a480923760a
2020-11-17 15:46:07 +08:00
Colin Cross
1c4a64d945
Merge "Revert "Annotate dependency tags for dependencies of installed files"" am: e3d308b5a5
am: 1e9bf4a2d4
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1500597
Change-Id: I62b61e96eb5cc6a4ef37ed51ae4518afb7e72106
2020-11-17 07:01:50 +00:00
Colin Cross
1e9bf4a2d4
Merge "Revert "Annotate dependency tags for dependencies of installed files"" am: e3d308b5a5
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1500597
Change-Id: I4eff34a7b09bad10a0d76b977a61bd39734aaf98
2020-11-17 06:47:33 +00:00
Colin Cross
e3d308b5a5
Merge "Revert "Annotate dependency tags for dependencies of installed files""
2020-11-17 06:32:57 +00:00
Colin Cross
b5ae193b8f
Revert "Annotate dependency tags for dependencies of installed files"
...
This reverts commit 62a0cfd054
.
Reason for revert: b/173475545
Change-Id: I4e834200c8e68dfa1b8144dfd1fa95ca68554980
2020-11-17 06:32:06 +00:00
Inseob Kim
f6d606ebea
Always turn on compatible property
...
It's mandatory for devices launching with Android P or later.
Bug: 170082975
Test: m
Change-Id: I22578c3b77d28abc8a09b88324ef3702d0ccafde
2020-11-17 06:29:23 +00:00
Sasha Smundak
8eedba6184
Document usage, perform minor cleanups.
...
Test: treehugger
Bug: 173466220
Change-Id: I5aa09c2941c0eceb8ae635b9e613ad932d38aebb
2020-11-16 19:00:27 -08:00
Treehugger Robot
efe4519b1d
Merge "Always set apex_available in SDK snapshots." am: 0a829f2a0a
am: 43cc7f16f6
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1484480
Change-Id: I72bcee3d5a36f8d82576490a8a9abf76f3f65601
2020-11-17 02:25:18 +00:00
Joseph Murphy
bb47531ab0
Merge "Adds a workaround to fix version inconsistency" am: bac4ee008b
am: 10fa2d924e
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1402212
Change-Id: I96c76a98e0d58de2d30e617d0b0c0017da041800
2020-11-17 02:25:10 +00:00
Treehugger Robot
43cc7f16f6
Merge "Always set apex_available in SDK snapshots." am: 0a829f2a0a
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1484480
Change-Id: I7dd77ce55b90ef6ffa0b7128444f41af9bc8c76f
2020-11-17 02:05:13 +00:00
Joseph Murphy
10fa2d924e
Merge "Adds a workaround to fix version inconsistency" am: bac4ee008b
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1402212
Change-Id: If3d9546e4ca2c0dc7e41c96e05a1fef79cee5ffd
2020-11-17 02:02:32 +00:00
Jingwen Chen
49f1583bcc
Merge "Set PATH and --action_env=PATH for the Bazel build in soong_ui." am: 556dafcdbf
am: f8835ce575
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1499283
Change-Id: I7019b863df1924cb3bd8aeeb882c4298f8460830
2020-11-17 01:48:11 +00:00
Treehugger Robot
0a829f2a0a
Merge "Always set apex_available in SDK snapshots."
2020-11-17 01:30:46 +00:00
Joseph Murphy
bac4ee008b
Merge "Adds a workaround to fix version inconsistency"
2020-11-17 01:23:39 +00:00
Jose Galmes
f729458e69
Support for recovery snapshot.
...
Bug: 171231437
Test: source build/envsetup.sh
Test: ALLOW_MISSING_DEPENDENCIES=true m -j nothing
Change-Id: I6b35fbb0b90ffffa941ea108cbd31a454b2dd403
2020-11-16 17:09:36 -08:00
Jingwen Chen
f8835ce575
Merge "Set PATH and --action_env=PATH for the Bazel build in soong_ui." am: 556dafcdbf
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1499283
Change-Id: I864ce9a102b150c13d129852e774660e20d2de8f
2020-11-17 00:14:40 +00:00
Colin Cross
104085c573
Merge "Replace android.WriteFile rule with android.WriteFileRule" am: 1af783fae7
am: e37a8e2d51
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1498169
Change-Id: I016d612e91f099b0291771d040a42f24ec34154c
2020-11-17 00:11:09 +00:00
Colin Cross
24e1b2cff9
Merge changes Ic22603a5,I5330b571 am: f15c0558bf
am: 6ae2d3dc85
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1494957
Change-Id: Iaa74ee6698241d8f83cb0c4223f2f56ac60c0f53
2020-11-17 00:11:02 +00:00
Treehugger Robot
0b22c47235
Merge "Fix bug in python module hasExtention." am: bc1f77e590
am: 18878365a6
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1500870
Change-Id: I96889090f170fcabeecf391a9f4719290819aeab
2020-11-17 00:10:24 +00:00
Jaewoong Jung
f2200adccb
Add and update comments in env and android_env.go
...
Bug: 173450116
Test: m nothing
Change-Id: I582a483d11c2ca23fd6e9597e49cdfb7e69152de
2020-11-16 16:01:27 -08:00
Jingwen Chen
556dafcdbf
Merge "Set PATH and --action_env=PATH for the Bazel build in soong_ui."
2020-11-16 23:51:10 +00:00
Colin Cross
e37a8e2d51
Merge "Replace android.WriteFile rule with android.WriteFileRule" am: 1af783fae7
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1498169
Change-Id: I6745509020145188d097044af68c3643036c0872
2020-11-16 23:37:18 +00:00
Colin Cross
6ae2d3dc85
Merge changes Ic22603a5,I5330b571 am: f15c0558bf
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1494957
Change-Id: Ibc07bacf48fc50738b6e3302daf08258b98c2f70
2020-11-16 23:36:32 +00:00
Colin Cross
1af783fae7
Merge "Replace android.WriteFile rule with android.WriteFileRule"
2020-11-16 23:11:41 +00:00
Colin Cross
f15c0558bf
Merge changes Ic22603a5,I5330b571
...
* changes:
Annotate dependency tags for dependencies of installed files
Use the the preferred architecture symlink as the tool path if it exists
2020-11-16 23:11:10 +00:00
Treehugger Robot
18878365a6
Merge "Fix bug in python module hasExtention." am: bc1f77e590
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1500870
Change-Id: I441efad8ab0bb8c5bca42d4244fc7f1d23be741e
2020-11-16 23:08:22 +00:00
Treehugger Robot
bc1f77e590
Merge "Fix bug in python module hasExtention."
2020-11-16 22:56:52 +00:00
Liz Kammer
3dfd3ce478
Fix bug in python module hasExtention.
...
Test: m nothing
Test: soong go tests
Change-Id: I1944a3bbb871bc1021c841d944e765bb0cadba86
2020-11-16 11:30:55 -08:00
Dan Shi
d79572f73e
Add unit_test test option in test configs
...
This change allows a test (native, java, rust or python) to be included
in host-unit-tests suite when test option `unit_test` is set to true.
Bug: 172006742
Test: m host-unit-tests
Change-Id: I69d3eb5b51198c549e2e6914ceac3a4fc33c3cf2
2020-11-16 11:05:00 -08:00
Ulyana Trafimovich
ce8cd22021
Merge "Add nested class loader subcontext at the proper hierarchy level." am: 0066864a02
am: c5bb9fe652
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1486218
Change-Id: I7fb72c42608f1de55f9660a98ea69e8141c8b711
2020-11-16 17:51:21 +00:00
Ulyana Trafimovich
8fdfb14593
Merge "Disallow adding nested conditional class loader context." am: adff039572
am: 946355e8c9
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1486217
Change-Id: I7b1d23355d06fa472f6af239b52a5ad1d64616a9
2020-11-16 17:51:08 +00:00
Paul Duffin
cd4f673ceb
Switch boot jars package check to use dexdump xml output
...
The xml output from dexdump is more stable than the text output so this
change switches to use that.
Bug: 171479578
Test: m check-boot-jars - for failing and passing cases
Change-Id: Ie347b1b685951524d5ae09db280248c61b4228ee
2020-11-16 17:46:16 +00:00