Commit graph

66093 commits

Author SHA1 Message Date
Treehugger Robot
281477fda7 Merge "Dynamically link static libs for sdk_library created java_library" am: 0e7d0fa05c
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2619526

Change-Id: Iddf805bdc8442343450cc56e6e9430dc94a4264a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-16 00:30:54 +00:00
Treehugger Robot
0e7d0fa05c Merge "Dynamically link static libs for sdk_library created java_library" 2023-06-15 23:39:39 +00:00
Dan Shi
9b4835c360 Remove unnecessary variable
Bug: 284179405
Test: m
Change-Id: I1b5b2559837d27e8e380bb700b2b7ad674d8b079
2023-06-15 23:22:39 +00:00
Treehugger Robot
47f56c33b9 Merge "turn off log spew" am: 886cd6d6e9
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2621432

Change-Id: I3578f2d6415f593b5c53cdf1d526a34592fbf50b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-15 23:00:26 +00:00
Treehugger Robot
886cd6d6e9 Merge "turn off log spew" 2023-06-15 22:21:38 +00:00
Cole Faust
6cac8cbb26 Add implementation whole archive deps to binaries
...as regular whole archive deps because binaries don't have
implementation whole archive deps.

Also allowlist checkpolicy which requires this change.

Test: bp2build presubmits should now build checkpolicy
Change-Id: I1f98312da249ea1f37004ccba8799449bdbc4718
2023-06-15 15:01:30 -07:00
Jihoon Kang
6c0df88809 Cleanup remaining android.JavaApiLibraryName() references
Since the name of the java_library generated from sdk_library per api
scope does not depend on the build configuration anymore, all
dependency switching "magic" via android.JavaApiLibraryName() can be
removed.

This change also removes from-text-build-specific test cases, as those
test cases depend on build configurations.

Test: m nothing && m nothing --build-from-text-stub
Bug: 287340610
Change-Id: I3bac35259e0cbaa16432a46cb2b128951c9bc075
2023-06-15 19:42:34 +00:00
Treehugger Robot
a8015f50ad Merge "Increase config fetcher timeout to 20s" am: d34e4c72f3
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2618169

Change-Id: I3750e7035704e1bd5b30f6158837f7161f7eb3e7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-15 19:37:56 +00:00
Treehugger Robot
7d698334d3 Merge "Remove bazel dev mode" am: 2428d41268
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2626534

Change-Id: Id0ef762400d158a97efc104493a45f6de7aa179e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-15 19:37:11 +00:00
Jihoon Kang
3d4d88d68e Allow java_library.exclude_static_libs property for libcore and f/b/api
exclude_static_lib property was introduced to enable static lib
switching based on build configuration. The usage of property was
limited to build/soong directory to prevent other modules from using the
proerty.

In order to allow "core-lambda-stubs" and
"android-non-updatable.stubs.*" to utilize similar static lib switching
based on build configuration, allow exclude_static_libs property to be
used in libcore and frameworks/base/api directory.

Test: m nothing
Bug: 287344503
Change-Id: I342b09c7ada03607b12dc8896ae39825d8545e92
2023-06-15 18:51:57 +00:00
Treehugger Robot
a6ba02f0ed Merge "Move bazel environment variable list to bzl files" am: b8f50fde26
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2627435

Change-Id: I8d35c9e743f13598dd29a55c537f023f9fadbdd5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-15 18:51:38 +00:00
Treehugger Robot
d34e4c72f3 Merge "Increase config fetcher timeout to 20s" 2023-06-15 18:37:53 +00:00
Ivan Lozano
4df0257fe5 rust: Make dylib-std the canonical rlib form
This removes the dylib-std suffix from rlib variants which link against
libstd dynamically. This is by far the common case.

This fixes an issue where 'm <rust_library_rlib>' would fail since Make
would expect the suffix to be included (e.g. 'm libfoo.dylib-std').

Bug: 173312517
Bug: 268086496
Test: m <rust_library_rlib> # without a suffix
Change-Id: I1e5778c57468302a8d672d5eb540047d8bb79314
2023-06-15 18:29:22 +00:00
Treehugger Robot
2428d41268 Merge "Remove bazel dev mode" 2023-06-15 18:28:13 +00:00
Treehugger Robot
b8f50fde26 Merge "Move bazel environment variable list to bzl files" 2023-06-15 18:25:40 +00:00
Jihoon Kang
1147b31eb0 Dynamically link static libs for sdk_library created java_library
Rename java_library created inside sdk_library with the ".from-source"
suffix, and set it as static lib of the top level java_library, which
gets java_api_library instead as static lib during from-text stub build.

Test: m nothing && m nothing --build-from-text-stub
Bug: 286446015
Change-Id: I32e8ea264987e9f9df05e462292bd54e45074912
2023-06-15 18:18:09 +00:00
Jason Macnak
394f1b7b86 Fix local var error, warn if no outputs, handle "}generate{"
1. UnboundLocalError: cannot access local variable 'output' where
   it is not associated with a value

2. `build/soong/tests/genrule_sandbox_test.py WmediumdServerProto_cc`
   would try to build the entire world due to 3)

3. WmediumdServerProto_cc 's module action desc had '}generate{'
   without a space which would cause 2)

Bug: b/287470077
Test: build/soong/tests/genrule_sandbox_test.py WmediumdServerProto_cc
Change-Id: Ie9d5db44195a6f700cc876ec889bd01c11e66cff
2023-06-15 10:59:20 -07:00
Jason Macnak
be29dc3d4f Remove WmediumdServerProto_[cc|h] from SandboxingDenyModuleList
Bug: b/287470077
Test: GENRULE_SANDBOXING=true m WmediumdServerProto_cc
Test: GENRULE_SANDBOXING=true m WmediumdServerProto_h
Test: build/soong/tests/genrule_sandbox_test.py WmediumdServerProto_cc
Test: build/soong/tests/genrule_sandbox_test.py WmediumdServerProto_h
Change-Id: I38079eb7b4bfb60f1b4c3adf6c774f207d7ec55e
2023-06-15 10:58:55 -07:00
Treehugger Robot
940707d3fe Merge "Remove debug printf." am: abcfc77717
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2625880

Change-Id: I0c22fc0bbc2dcc4944419d43f7ecbf513e0b8db7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-15 17:43:57 +00:00
Treehugger Robot
abcfc77717 Merge "Remove debug printf." 2023-06-15 17:18:39 +00:00
Jason Wu
614d0f2db1 Merge "Fix bp2build breakage by denylisting //system/apex/libs/libapexsupport/..." am: f7a603199c
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2628129

Change-Id: I02ce431bc7d6d192b600b1399a191130acfdc1ee
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-15 16:36:07 +00:00
Jason Wu
f7a603199c Merge "Fix bp2build breakage by denylisting //system/apex/libs/libapexsupport/..." 2023-06-15 15:50:16 +00:00
Elliott Hughes
b801d6de7c Merge "riscv64: enable Zbs." am: 7225dd87f3
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2626329

Change-Id: Id13e5283cf33e7830eb0010201f083481e17063a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-15 15:06:08 +00:00
Treehugger Robot
a81dd34c44 Merge "Remove print statement" am: 5e3594fcf4
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2626250

Change-Id: I8158f0b1d3c6f3f6d322839875638a946d91782f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-15 15:05:44 +00:00
Elliott Hughes
7225dd87f3 Merge "riscv64: enable Zbs." 2023-06-15 14:28:46 +00:00
Treehugger Robot
5e3594fcf4 Merge "Remove print statement" 2023-06-15 14:24:46 +00:00
Chris Parsons
21f80277c3 Remove bazel dev mode
This mode is no longer in use, and is dead code.

Fixes: 282809863
Test: Presubmits
Change-Id: I45ab7d7c9dee153f1cbc66262c2cf9f1e9487a28
2023-06-15 14:14:19 +00:00
Jingwen Chen
a1a17759e1 Fix bp2build breakage by denylisting //system/apex/libs/libapexsupport/...
Added in
https://android-review.git.corp.google.com/c/platform/system/apex/+/2623829/,
but the modules depend on rust_* modules.

Test: bp2build-incremental presubmit
Change-Id: I229a2442e1b8a89ab768b54dfa713a8b97908436
2023-06-15 11:07:39 +00:00
Jingwen Chen
0b8386f532 Remove debug printf.
(assuming it's a leftover - it's getting printed on every build.)

Test: presubmits
Change-Id: I5b098df4c00c241b00143e4e1bdfa0f27a3489c6
2023-06-15 09:37:38 +00:00
Charisee Chiw
d0a769dd40 Merge "rustc-1.70.0 Build 10322039" am: 324f64df92
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2627208

Change-Id: Id4786a213ce0298a4aa67e9c40334e7b36180592
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-15 06:52:45 +00:00
Charisee Chiw
324f64df92 Merge "rustc-1.70.0 Build 10322039" 2023-06-15 06:03:09 +00:00
Treehugger Robot
e609d23bc3 Merge "Revert "Use installExecutable for cc binaries"" am: e3056e0d78
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2624314

Change-Id: I765949f2015bfee6dbf197751e4f31e316132c07
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-15 02:26:08 +00:00
Treehugger Robot
e3056e0d78 Merge "Revert "Use installExecutable for cc binaries"" 2023-06-15 01:39:25 +00:00
Cole Faust
8a161be19b Move bazel environment variable list to bzl files
So that it's easier to maintain by being closer to the actual long-term
usage.

Bug: 279095899
Test: m nothing
Change-Id: I0b7cfa2eeb48595dd3081b458bbd1156ec2184a3
2023-06-14 15:45:12 -07:00
Charisee
4fa57fbadb rustc-1.70.0 Build 10322039
bug: 285036397
Test: m rust
Change-Id: I44fc85e53d23c834007cbd1922376a7a64af2bb4
2023-06-14 22:30:12 +00:00
Jason Wu
a21b4567fa Merge "denylist logcat to pass bp2build-incremental" am: 6e2d59f295
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2626549

Change-Id: I848114048e874582e068478335465aa9fa11bf9b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-14 22:18:28 +00:00
Jason Wu
6e2d59f295 Merge "denylist logcat to pass bp2build-incremental" 2023-06-14 21:42:14 +00:00
Mark Dacek
af77b0fb59 Merge "Add sponge id field to bazel metrics proto" am: 1ca95c1671
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2624915

Change-Id: Iba1f806cf559ab89f6b6f2a316068ebaa747c74b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-14 20:05:06 +00:00
Mark Dacek
3d476d4d0b Merge "Add integration test for ensuring that stale metrics files are deleted." am: ff0f42a3ac
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2617312

Change-Id: I5b86e1bdeefde667de77ae2b452b1969521d7609
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-14 20:04:01 +00:00
Mark Dacek
1ca95c1671 Merge "Add sponge id field to bazel metrics proto" 2023-06-14 19:28:10 +00:00
Mark Dacek
ff0f42a3ac Merge "Add integration test for ensuring that stale metrics files are deleted." 2023-06-14 19:14:31 +00:00
Trevor Radcliffe
7d5001c804 Merge "Bp2build Sanitizer Blocklist" am: cbaa0d6eb9
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2623054

Change-Id: I592655ac8f6ac14216b5ef8b0b5b41e1a04076e6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-14 18:11:56 +00:00
Vinh Tran
e82ad53257 Merge "Revert "Revert "Revert "Add aidl.deps prop to include aidl implicit deps explicitly in Android.bp"""" am: 9b5198f3c7
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2622680

Change-Id: I88db5c76a5cfce5e90e62f6fcbe8438430e7eb65
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-14 18:10:35 +00:00
Trevor Radcliffe
cbaa0d6eb9 Merge "Bp2build Sanitizer Blocklist" 2023-06-14 18:05:30 +00:00
Elliott Hughes
fb294e39bf Bump the platform default up to C17.
This is already the "default default" for gcc and clang.

Bug: http://b/232413369
Test: treehugger
Change-Id: I3c0df7c63e8fca1b7692ad867d349a645559c209
2023-06-14 10:42:45 -07:00
Vinh Tran
9b5198f3c7 Merge "Revert "Revert "Revert "Add aidl.deps prop to include aidl implicit deps explicitly in Android.bp"""" 2023-06-14 17:28:40 +00:00
Jason Wu
5d5a3bb963 denylist logcat to pass bp2build-incremental
Bug: 286488545
Test: bp2build.sh
Change-Id: I0940b833c6bf4f9f3780293684a6c64c0c72e32f
2023-06-14 13:26:35 -04:00
David Duarte
3d005143a2 Merge "Remove pandora-python-gen-src from SandboxingDenyModuleList" am: cb991cf1ae
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2624899

Change-Id: I5749bf713b041dd1838895985729864e1b61eb8a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-14 17:02:14 +00:00
Matthew Maurer
08e959fbc1 Merge "rust: Add support for CARGO_PKG_NAME" am: 6b4d7cf4ae
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2623218

Change-Id: Id85be320277f4327a5f4184632a7b69080840acc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-14 17:01:55 +00:00
Zi Wang
c9f255a115 Merge "Support multiple filters in zipsync" am: 1458515e21
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2623217

Change-Id: I2677f48ad6c3335230d938c316777fd3ba20ec21
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-14 17:01:05 +00:00