Christopher Parsons
aa3e435857
Merge "Treat src=name filegroups as handcrafted targets" into main
2023-10-02 17:35:44 +00:00
Zi Wang
2260933688
Allowlist tradefed-common-util and some dependents for tradefed
...
Test: CI
Bug: 283193845
Change-Id: Id9e8eefcf47080e786c62466658c7cb1f31b055d
2023-10-02 09:56:34 -07:00
Romain Jobredeaux
fc6a6fd081
Merge "Use manual BUILD files in jdk8 and allowlist apache-commons-compress" into main am: e2007bfd0e
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2767831
Change-Id: I39fbdd11d59b1b3905cd55ebd4146913b8e64e5b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-02 14:19:44 +00:00
Romain Jobredeaux
e2007bfd0e
Merge "Use manual BUILD files in jdk8 and allowlist apache-commons-compress" into main
2023-10-02 13:38:50 +00:00
Spandan Das
dc7d7f7557
Handle symlinks in isPackageBoundary
...
isPackageBoundary looks at ShouldKeepExistingFile before checking if
that directory contains a BUILD file or not. ShouldKeepExistingFile
should be complemented with a isSymlink check. This is necessary because
we copy all symlinks to the synthetic workspace, and the resolved
symlink might point to a directory containing a BUILD file.
This additional clause is redundant if the directory has been
allowlisted for keepExistingBuildFile (e.g. build/bazel, recursive)
Test: b build //bionic/libc:versioner-dependencies (top of stack)
Change-Id: I5b23262f89ea34a78de4ccade6d27e4c5dd95c2e
2023-09-29 21:04:30 +00:00
Romain Jobredeaux
3fe1edde31
Use manual BUILD files in jdk8 and allowlist apache-commons-compress
...
Bug: 302008402
Bug: 302587886
Change-Id: I91401bf3fcda4c83ad2bb9d782b4021ffe6fd103
2023-09-29 15:08:55 -04:00
Liz Kammer
79ff08f12c
Expand regex for likely aidl filegroups
...
Test: go test soong tests
Change-Id: Iab7abea8e2d11583cb4a8ecd4b27368f61dd40e0
2023-09-29 12:38:42 -04:00
Mark White
14a6903e77
Merge "Added new framework-pdf jar inside MediaProvider module" into main am: 477a31271d
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2760586
Change-Id: I2ae058860ad10e700934ff3648a2d51ad81bf0ba
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-29 13:26:48 +00:00
Mark White
477a31271d
Merge "Added new framework-pdf jar inside MediaProvider module" into main
2023-09-29 12:21:33 +00:00
Chris Parsons
2ef472be7a
Treat src=name filegroups as handcrafted targets
...
This is groundwork for allowlist v2, as such targets are still
effectively referencable via their file syntax; thus, rdep targets of
these filegroups should still be treated as convertible.
Fixes: 302025822
Test: Unit test update
Change-Id: I93445ff75e7c0570530725d086e47c1532833c06
2023-09-28 23:07:00 +00:00
Christopher Parsons
49ff8ddaa7
Merge "support aidl bp2build changes" into main am: dec9ce6693
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2757771
Change-Id: I95902c66e394c3cdb1d1fbe77eeb62fa2b5e1709
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-28 21:43:33 +00:00
Christopher Parsons
dec9ce6693
Merge "support aidl bp2build changes" into main
2023-09-28 20:19:43 +00:00
Cole Faust
32670ab73d
Merge "AVB and selinux support in partitions" into main am: 6ed1e0fd59
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2766206
Change-Id: I8d89ca7a67dfd129bcd73b8758bb76703fc13283
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-28 17:23:44 +00:00
Cole Faust
6ed1e0fd59
Merge "AVB and selinux support in partitions" into main
2023-09-28 16:38:28 +00:00
Jingwen Chen
be81da7e7e
Merge "Allowlist directories for tradefed's deps." into main am: 6b73be150c
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2763425
Change-Id: Ibaea54cfece3200a546989ed869f5a018e2d74ef
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-28 08:04:41 +00:00
Jingwen Chen
6b73be150c
Merge "Allowlist directories for tradefed's deps." into main
2023-09-28 06:51:29 +00:00
Maxim Siniavine
12663c872e
Merge changes from topic "revert-2755310-HIIDCMFNIU" into main am: 4aa82a13db
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2766348
Change-Id: I51b0213f78192a3a6d8fc92a3e995e2fb16a606f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-28 01:55:28 +00:00
Maxim Siniavine
57639c5e65
Revert "Add flagged api hide conditional to droidstubs" am: 1180919dda
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2766347
Change-Id: Iecdfb508043d33ed23479d4fe758980943b629d6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-28 01:55:22 +00:00
Maxim Siniavine
4aa82a13db
Merge changes from topic "revert-2755310-HIIDCMFNIU" into main
...
* changes:
Revert "Add soong config variable Release_expose_flagged_api"
Revert "Add flagged api hide conditional to droidstubs"
2023-09-28 01:08:44 +00:00
Maxim Siniavine
1180919dda
Revert "Add flagged api hide conditional to droidstubs"
...
Revert submission 2755310
Reason for revert: Broken build b/302407753
Reverted changes: /q/submissionid:2755310
Change-Id: I56306fc3b7e5608d21dbefe18d6a886561599f40
2023-09-28 01:01:59 +00:00
Maxim Siniavine
5548bf3053
Revert "Add soong config variable Release_expose_flagged_api"
...
Revert submission 2755310
Reason for revert: Broken build b/302407753
Reverted changes: /q/submissionid:2755310
Change-Id: Ib5c01033882500296989a7c4476a723d95292aab
2023-09-28 01:01:59 +00:00
Romain Jobredeaux
b0e61183f3
Merge changes from topic "bazel_framework_res" into main am: 641b62b205
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2720593
Change-Id: Ifb2c83f9d7390a2f40083ab4e3f8625bbe5f45af
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-27 21:47:27 +00:00
Chris Parsons
2173b5f578
support aidl bp2build changes
...
- Allowlist an aidl module by package, not name (to support a small
module name change)
- Implement some unit test framework changes which facilitate better
aidl bp2build testing
- Support a convenience function to add a load hook for registering a
module as "has a bazel definition of a given target name"
Bug: 301676937
Test: m bp2build, verified the aidl target was generated before/after
this CL.
Test: Presubmits
Test: Ran bp2build progress and ensured that aidl_interface targets
under frameworks/ continued to appear converted
Change-Id: I62412057d6f61a2ce2bc39488c75af793eb14c94
2023-09-27 21:30:19 +00:00
Cole Faust
b5055394a9
AVB and selinux support in partitions
...
Bug: 297269187
Test: m bazel_sandwich (updated partition_inspector to show selinux contexts, but still haven't figured out how to show avb information)
Change-Id: I6911c2fc75495f9722887925d8609c9a171901c6
2023-09-27 14:14:14 -07:00
Romain Jobredeaux
641b62b205
Merge changes from topic "bazel_framework_res" into main
...
* changes:
bp2build support for framework-res
Keep rules_testing BUILD files
2023-09-27 20:52:50 +00:00
Treehugger Robot
96c36f1606
Merge "Add frameworks/base/mime to allowlist" into main am: 1eeda315c8
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2747518
Change-Id: Ibe47a852792b0b60c5f31b41cbbdbdf918c017e8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-27 19:44:42 +00:00
Treehugger Robot
1eeda315c8
Merge "Add frameworks/base/mime to allowlist" into main
2023-09-27 18:52:42 +00:00
Jihoon Kang
ff593197d9
Merge changes from topic "expose_flagged_api" into main am: af26c102b8
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2755310
Change-Id: Ib2f36facf87375c0502f5645b413e1d2b1b60815
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-27 17:52:34 +00:00
Jihoon Kang
af26c102b8
Merge changes from topic "expose_flagged_api" into main
...
* changes:
Add flagged api hide conditional to droidstubs
Add soong config variable Release_expose_flagged_api
2023-09-27 17:09:27 +00:00
Jingwen Chen
7501a1b15b
Allowlist directories for tradefed's deps.
...
Fix: 302094734
Test: presubmits/bp2build-incremental
Test: b build //tools/tradefederation/core/util_apps/... --config=android
Change-Id: I3d35650a1001defb74eb93a62b361109a5baccd9
2023-09-27 13:10:45 +00:00
Sam Delmerico
fcf6a3c1d4
Merge changes from topic "reland-rust-sbox-1" into main am: ec59517f6a
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2761808
Change-Id: I8f4ad3d412915b05763324b3e2e96c3af1ce8678
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-27 09:13:36 +00:00
Sam Delmerico
6fea084d2b
Revert^4 "allow Ninja variables in RuleBuilder API" am: 285b66a117
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2761807
Change-Id: Ia3ddf40e8f6611eb8c78051e4dae435df5ad8263
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-27 09:13:31 +00:00
Sam Delmerico
942a640911
Revert^4 "add rust_toolchain_rustc_prebuilt module type" am: f2b16069bb
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2761805
Change-Id: I4cbbd46025c81e327daff9f4691133aa3b80dc06
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-27 09:13:22 +00:00
Sam Delmerico
ec59517f6a
Merge changes from topic "reland-rust-sbox-1" into main
...
* changes:
Revert^2 "conditionally escape rule builder command"
Revert^4 "allow Ninja variables in RuleBuilder API"
Revert^4 "add crate_root property to rust modules"
Revert^4 "add rust_toolchain_rustc_prebuilt module type"
2023-09-27 08:10:26 +00:00
Justin Yun
af1fde43f9
Generate product variants by default
...
PRODUCT_PRODUCT_VNDK_VERSION is set to 'current' by default. Now, we
can generate product variants without checking the
PRODUCT_PRODUCT_VNDK_VERSION build variable. Remove reading the
PRODUCT_PRODUCT_VNDK_VERSION variable from soong and generate product
variants by default.
Bug: 302255959
Test: m
Change-Id: I9a9b2076f4367c5ce9a393bbb206f8dee3884bd8
2023-09-27 16:36:40 +09:00
Treehugger Robot
6d66f26e74
Merge "Allowlist libflagtest and FlagMacrosTests." into main am: c5b9abba30
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2759040
Change-Id: I47b70a92547b52eecc7ab5db03646a33529a2a3f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-27 00:20:27 +00:00
Treehugger Robot
c5b9abba30
Merge "Allowlist libflagtest and FlagMacrosTests." into main
2023-09-27 00:18:46 +00:00
Zi Wang
79c8edd421
Merge "Allowlist part of tradefed deps" into main am: ffb9a2af93
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2759797
Change-Id: I1f260b14d060d7b7ec7e219baed4ad4559b60c2c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-26 23:23:07 +00:00
Jihoon Kang
d91a8e806a
Add flagged api hide conditional to droidstubs
...
APIs annotated with @FlaggedApi should not be included in the artifact
when building sdk target products in the "next" release configuration.
This change adds such logic by passing additional flag to metalava in
droidstubs.
The flag does not need to be passed to metalava invocation done in
java_api_library, as java_api_library generates stubs using api
signature files (i.e. *-current.txt files), and they will not contain
apis marked @FlaggedApi. The metalava invocation in droidstubs is
responsible for removing such apis.
Test: go test ./java && m TARGET_PRODUCT=sdk TESTING_TARGET_RELEASE_NEXT=true nothing and inspect ninja command for generating stubs and verify the flag is included
Bug: 299570421
Change-Id: Ia4b699b6e3ff6324f050eecc9ff5b622fdc04621
2023-09-26 22:46:05 +00:00
Jihoon Kang
03f1aa064a
Add soong config variable Release_expose_flagged_api
...
The variable is a release config variable which will be used to
determine whether if the api marked @FlaggedApi is exposed or not.
Test: m nothing
Bug: 299570421
Change-Id: I5647608065543cf5059836f6d6e8906a23145541
2023-09-26 22:32:50 +00:00
Liz Kammer
06d442e954
Add frameworks/base/mime to allowlist
...
Test: b build //frameworks/base/mime/...
Test: b build //frameworks/base/mime/... --config=android
Change-Id: If73e04e33487bbb63e14475b34f34b31b1386f16
2023-09-26 22:22:58 +00:00
Zi Wang
ffb9a2af93
Merge "Allowlist part of tradefed deps" into main
2023-09-26 22:20:02 +00:00
Romain Jobredeaux
9c06ef353b
bp2build support for framework-res
...
Change-Id: I5b32a702e02b5f1ec08d5608d766a8a0c08d845c
Bug: 276928228
Bug: 297356405
2023-09-26 15:06:50 -04:00
Romain Jobredeaux
c9e585eabf
Keep rules_testing BUILD files
...
Change-Id: I9036ac0c372f1935e29477bdd1a42203f65e5385
2023-09-26 15:04:13 -04:00
Jihoon Kang
9e613388e3
Merge "Import make variable NextReleaseHideFlaggedApi to Soong" into main am: e4bb4d4e6b
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2755309
Change-Id: I9416a1016d8fe652db6c40ef5470ee46621e054b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-26 18:20:33 +00:00
Treehugger Robot
9a53950763
Merge "Add system/tools/hidl to allowlist" into main am: 7c02986d60
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2744701
Change-Id: I27eb891fe323c5699ff2fa64ac9baa8ecab8e77b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-26 18:20:19 +00:00
Jihoon Kang
e4bb4d4e6b
Merge "Import make variable NextReleaseHideFlaggedApi to Soong" into main
2023-09-26 17:49:25 +00:00
Treehugger Robot
7c02986d60
Merge "Add system/tools/hidl to allowlist" into main
2023-09-26 16:59:03 +00:00
Zi Wang
aa516c562e
Allowlist part of tradefed deps
...
Test: CI
Bug: 283193845
Change-Id: Idab167cc1698f40a3853967f31533bdfb6fbd455
2023-09-26 09:39:57 -07:00
Jingwen Chen
e14b481913
Allowlist system/core/libstats/expresslog am: c6f3c10615
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2762805
Change-Id: I48517210dd37efa1cd1aab709487e4887a7d5334
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-26 05:01:27 +00:00
Jingwen Chen
c6f3c10615
Allowlist system/core/libstats/expresslog
...
Fixes: 302046711
Test: b build //system/core/libstats/expresslog:libexpresslog --config=android
Change-Id: I904fa0e6bd31d454ec38be91dbeecb765593266c
2023-09-26 02:02:08 +00:00
Jihoon Kang
cfbc4077b3
Import make variable NextReleaseHideFlaggedApi to Soong
...
This change imports NextReleaseHideFlaggedApi exported from soong_config
Test: m nothing
Bug: 299570421
Change-Id: I410596a39d2ba9ad353c5cf48bd38b1e843633b2
2023-09-25 20:54:46 +00:00
Cole Faust
7c10bc2e58
Merge "Emit a system image target for the current product" into main am: 71aa535721
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2758087
Change-Id: Ib90eda741288a29c3b0d432a208ec4a09ef8af23
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-25 18:09:20 +00:00
Cole Faust
71aa535721
Merge "Emit a system image target for the current product" into main
2023-09-25 17:08:34 +00:00
Alyssa Ketpreechasawat
34feb68b28
Disable hiddenapi check for building from prebuilts.
...
Add ReleaseDefaultModuleBuildFromSource to config.productVariables and
use this parameter to disable hiddenapi check.
Test: DEFAULT_MODULE_BUILD_FROM_SOURCE=false m (not failing hiddenapi
check after disabling)
Bug: 301871981
Change-Id: I86b3f3bc21d546022a503a1c6a8a641d4e785565
2023-09-25 15:45:42 +00:00
Jingwen Chen
b70c096a65
Allowlist libflagtest and FlagMacrosTests.
...
Test: atest-dev FlagMacrosTest --roboleaf-mode=dev
Fixes: 300335177
Change-Id: I44a63b0a1aa6bef30736f72d01d7a80930e2f48d
2023-09-25 14:58:54 +00:00
Sam Delmerico
285b66a117
Revert^4 "allow Ninja variables in RuleBuilder API"
...
789a7e0883
Change-Id: Iee1156adf0ad6e6d2ae7e22d90a447d4b564e59f
2023-09-25 12:13:17 +00:00
Sam Delmerico
f2b16069bb
Revert^4 "add rust_toolchain_rustc_prebuilt module type"
...
930fd8bfb1
Change-Id: Id3f3a66022a496aab7db93670a7bdf8507384875
2023-09-25 12:13:17 +00:00
Sam Delmerico
d46f6c81de
Revert^2 "conditionally escape rule builder command"
...
53ed08aec0
Change-Id: Ic6e754bb270dbd3fa67ec31b5cbc1c5ef77d3238
2023-09-25 12:13:17 +00:00
Colin Cross
b0fe75a004
Merge changes from topics "revert-2629131-sandbox-rust-inputs-JRFPQTIPEY", "revert-2758566-WBNIADIEXA" into main am: 40c7bae1df
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2760293
Change-Id: I05800e293df18c7a6079abbb02af8ce94b0b716a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-23 05:54:58 +00:00
Wen-yi Chu
60b2da8b43
Revert^3 "allow Ninja variables in RuleBuilder API" am: 789a7e0883
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2760291
Change-Id: I48dbb3b94265634344f2037a5b2c9f69f80db9bc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-23 05:54:52 +00:00
Wen-yi Chu
5de40ab122
Revert "conditionally escape rule builder command" am: 53ed08aec0
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2760290
Change-Id: I6601196a66e8cd1a0a6993c42d851913a73e127d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-23 05:54:49 +00:00
Wen-yi Chu
5a2dfb3d25
Revert "support sandboxed rust rules" am: 41326c1f41
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2760289
Change-Id: Ifa1ec899f66954979baee61755822788a30fbffa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-23 05:54:45 +00:00
Colin Cross
40c7bae1df
Merge changes from topics "revert-2629131-sandbox-rust-inputs-JRFPQTIPEY", "revert-2758566-WBNIADIEXA" into main
...
* changes:
Revert^3 "add rust_toolchain_rustc_prebuilt module type"
Revert^3 "add crate_root property to rust modules"
Revert^3 "allow Ninja variables in RuleBuilder API"
Revert "conditionally escape rule builder command"
Revert "support sandboxed rust rules"
Revert "fix failing rust_aconfig_library test"
Revert "rustSetToolchainSource to use linux-x86 srcs"
Revert "remove rust deps on clang prebuilts"
2023-09-23 05:19:13 +00:00
Zi Wang
ada4983493
Merge "Pass java_library libs and static_libs to java_*_proto_library" into main am: 7c5b6d5273
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2759538
Change-Id: Ibd96e46776b1a3a038c5fab4bcb7d0d8895a0441
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-23 04:58:36 +00:00
Zi Wang
7c5b6d5273
Merge "Pass java_library libs and static_libs to java_*_proto_library" into main
2023-09-23 03:45:48 +00:00
Treehugger Robot
febe41d738
Merge "Switch bp2build mutator to bottom up" into main am: 11b20b2993
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2760865
Change-Id: Id965f8ee11d2e7c64cc7e085bc902a00ec0daed2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-23 01:20:30 +00:00
Treehugger Robot
11b20b2993
Merge "Switch bp2build mutator to bottom up" into main
2023-09-23 00:05:47 +00:00
Wonsik Kim
9ca0761342
Merge "Add libcodec2_aidl into allowlist" into main am: ee03e4e577
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2734654
Change-Id: I08aaa6e8afbdb830cacc43fc6ca295d4193cc00d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-22 22:39:24 +00:00
Wonsik Kim
ee03e4e577
Merge "Add libcodec2_aidl into allowlist" into main
2023-09-22 22:12:33 +00:00
Wen-yi Chu
789a7e0883
Revert^3 "allow Ninja variables in RuleBuilder API"
...
0e2d63e4d2
Change-Id: I4a22fb398fc7bfdf86613829dfbc9c35fab11ee7
2023-09-22 22:05:54 +00:00
Wen-yi Chu
53ed08aec0
Revert "conditionally escape rule builder command"
...
Revert submission 2629131-sandbox-rust-inputs
Reason for revert: Fail on android build.
Reverted changes: /q/submissionid:2629131-sandbox-rust-inputs
Change-Id: I0d70fb9bbb9597d5fa68e764cdcf57f1a0333037
2023-09-22 22:05:54 +00:00
Wen-yi Chu
41326c1f41
Revert "support sandboxed rust rules"
...
Revert submission 2629131-sandbox-rust-inputs
Reason for revert: Fail on android build.
Reverted changes: /q/submissionid:2629131-sandbox-rust-inputs
Change-Id: Ifd9aa46e80a12d8f4ffa0a2daa74b96727cbb7e6
2023-09-22 22:05:54 +00:00
Wen-yi Chu
930fd8bfb1
Revert^3 "add rust_toolchain_rustc_prebuilt module type"
...
9333ac1249
Change-Id: Ic7f064806553a0cfbc286136a764b5ea3898d06c
2023-09-22 22:05:54 +00:00
Cole Faust
cb193ec471
Emit a system image target for the current product
...
This system image can be built with bazel instead of make.
Bug: 297269187
Test: m bazel_sandwich
Change-Id: I5fd61a28f664d8310435c3b7e5dbdd89a7ec6159
2023-09-22 14:42:33 -07:00
Christopher Parsons
07eb212463
Merge "Handle already existing targets of different name" into main am: 68a3d9b33e
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2759611
Change-Id: I0e37761d86b7eea343b6dc96ed5124358e4e70ee
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-22 19:55:56 +00:00
Chris Parsons
6666d0f6b1
Switch bp2build mutator to bottom up
...
This should be no-op, as the underlying mutator has not changed yet.
Some other refactoring is required and done in this CL:
- Delete some old, dead ApiBp2build code
- Fix casting to TopDownMutator when it's not necessary
This change is required to prepare for allowlist v2 work, as only
BottomUp mutators can AddDependency.
Bug: 285631638
Test: m nothing
Test: presubmits
Change-Id: I5212a5f5634cc13056195783e6df37ff8eb000da
2023-09-22 19:19:22 +00:00
Christopher Parsons
68a3d9b33e
Merge "Handle already existing targets of different name" into main
2023-09-22 18:52:07 +00:00
Zi Wang
4dbd0e8688
Pass java_library libs and static_libs to java_*_proto_library
...
If a java_library module has proto srcs, a java_*_proto_library target
will be created for it. Proto sources are generated and then compiled
by a java_library target. We need to pass the libs and static_libs of
the java_library module to this java_library target so that
the compile-time classpath is correct.
Test: updated unit tests and CI
Bug: 301469542
Change-Id: I05b2efce6fda2223e85728b3c4c7b1815d04c3dd
2023-09-22 11:20:06 -07:00
Mark White
a1c9bb08b5
Added new framework-pdf jar inside MediaProvider module
...
Bug: 301574837
Test: presubmit and m framework-pdf
Change-Id: Ib5294ef9d1c632777af0ca9225d459cbc188e589
2023-09-22 13:28:51 +00:00
Motomu Utsumi
e8a0f01c8e
Merge "Remove unused file path" into main am: 9c5b51e4f6
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2759105
Change-Id: I480d6fd45deb303cf0cf356f8347669b1a45cfff
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-22 02:49:03 +00:00
Motomu Utsumi
9c5b51e4f6
Merge "Remove unused file path" into main
2023-09-22 02:06:54 +00:00
Spandan Das
71df5ce60d
Merge "Create a bp2build converter for ndk_headers" into main am: 7ba007a3c6
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2756529
Change-Id: I41d485cba0736761c9b7c0e5bc538384091d040b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-22 00:03:18 +00:00
Zi Wang
d0f497825c
Merge "Allowlist grpc-java and its deps" into main am: 0dc9d095b4
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2754985
Change-Id: I454d7c3f6ef985a6f6c66fcfdbc1466645390851
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-22 00:03:04 +00:00
Spandan Das
7ba007a3c6
Merge "Create a bp2build converter for ndk_headers" into main
2023-09-21 23:11:33 +00:00
Zi Wang
0dc9d095b4
Merge "Allowlist grpc-java and its deps" into main
2023-09-21 22:52:34 +00:00
Cole Faust
df432bae53
Merge "Decouple the target build variant from the platform" into main am: 747ecf4b1e
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2758405
Change-Id: I971f7983f3a3550269f85f96035003edba292ddb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-21 21:24:56 +00:00
Cole Faust
747ecf4b1e
Merge "Decouple the target build variant from the platform" into main
2023-09-21 21:18:47 +00:00
Chris Parsons
0c4de1f234
Handle already existing targets of different name
...
In other words, if, in bp2build, module "foo" would generate "foo",
and "foo_two", and "foo_two" already exists in a build file,
bp2build should label "foo" as being unconvertible.
Fixes: 301321658
Fixes: 301312582
Bug: 285631638
Test: Unit tests
Test: Verified that `m bp2build` results in bit-for-bit identical
contents for out/soong/bp2build before and after this change.
Change-Id: Icbbdd69fce83579ec9b172d04b2bf1f294698f70
2023-09-21 20:58:25 +00:00
Treehugger Robot
f7566167dd
Merge "Revert^2 "bp2build converter for android_test_helper_app."" into main am: a56002a473
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2759108
Change-Id: I9457cfd0e55045b6b5d5814999751891eed934fb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-21 18:40:19 +00:00
Yu Liu
b84a5aaec3
Merge "Convert cc_aconfig_library to bazel." into main am: 62f7302701
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2751020
Change-Id: I226eb08792eefe5750f4343dc0778176e89703d2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-21 18:39:31 +00:00
Liz Kammer
0db75201a9
Add system/tools/hidl to allowlist
...
Test: b build //system/tools/hidl/...
Test: b build //system/tools/hidl/... --config=android
Change-Id: I28d0e50aa91b193309029655460edbacec21c1c0
2023-09-21 14:27:44 -04:00
Treehugger Robot
a56002a473
Merge "Revert^2 "bp2build converter for android_test_helper_app."" into main
2023-09-21 17:56:35 +00:00
Yu Liu
62f7302701
Merge "Convert cc_aconfig_library to bazel." into main
2023-09-21 17:43:07 +00:00
Spandan Das
5c4debfcd3
Merge "Always convert ndk_library" into main am: 02f2211931
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2753345
Change-Id: Ia4b3796b68bf568d1d88410826882220cc25cae2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-21 16:53:37 +00:00
Zi Wang
63fc0f6292
Allowlist grpc-java and its deps
...
Test: CI
Bug: 300135965
Change-Id: I8d7b320a17c4070badd3224e8408be6dd2599d19
2023-09-21 09:41:09 -07:00
Spandan Das
02f2211931
Merge "Always convert ndk_library" into main
2023-09-21 16:18:49 +00:00
Jingwen Chen
050f0fa35b
Merge "Revert "bp2build converter for android_test_helper_app."" into main am: 38b7be9d29
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2759106
Change-Id: I2c0c4621425d709ee3d98bdeaf5ebe00a0ee3aaa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-21 16:00:14 +00:00
Jingwen Chen
915ddd751b
Merge "bp2build converter for android_test_helper_app." into main am: 72e22018c3
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2757525
Change-Id: I6ce6183e2ae3a2a0ebc5dfc8884fb27268831a7a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-21 15:59:43 +00:00
Jingwen Chen
6528999872
Revert^2 "bp2build converter for android_test_helper_app."
...
2395286cda
Change-Id: I698c1e62b87f3d8338d8d207d06f62ec680d71c9
2023-09-21 15:16:59 +00:00
Jingwen Chen
38b7be9d29
Merge "Revert "bp2build converter for android_test_helper_app."" into main
2023-09-21 15:14:29 +00:00
Jingwen Chen
2395286cda
Revert "bp2build converter for android_test_helper_app."
...
Revert submission 2757525-android_test_helper_app
Reason for revert: broke builds
Reverted changes: /q/submissionid:2757525-android_test_helper_app
Change-Id: I0e5f55078221d7f2151f1bbaa55bebdf5051c03c
2023-09-21 15:12:19 +00:00
Jingwen Chen
72e22018c3
Merge "bp2build converter for android_test_helper_app." into main
2023-09-21 15:09:06 +00:00
Romain Jobredeaux
4bc34aa84e
Merge "Bp2build support for JNI deps of android_app." into main am: 1c4048e08d
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2622674
Change-Id: Ie3d0fefd42a14038e97cbecb5e93f677dca3cbda
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-21 15:04:52 +00:00
Romain Jobredeaux
1c4048e08d
Merge "Bp2build support for JNI deps of android_app." into main
2023-09-21 14:36:02 +00:00
Liz Kammer
588e2a497e
Merge "Add keep sorted tags" into main am: 53b33d07b1
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2755387
Change-Id: I211078ec021eab35ef03fcade46b9cbfe09b0a42
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-21 13:18:10 +00:00
Liz Kammer
e29da0ff11
Merge "Handle prebuilt vs source selection in bp2build" into main am: af7c166f10
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2755386
Change-Id: I6a38effb18b47b4eb4d858290bc4f8d245b4ccd9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-21 13:17:48 +00:00
Liz Kammer
53b33d07b1
Merge "Add keep sorted tags" into main
2023-09-21 12:16:10 +00:00
Liz Kammer
af7c166f10
Merge "Handle prebuilt vs source selection in bp2build" into main
2023-09-21 12:15:54 +00:00
Motomu Utsumi
fca0ccc744
Remove unused file path
...
frameworks/libs/net was moved to the packages/modules/Connectivity
Bug: 296014682
Test: TH
Change-Id: I1c17eb0cb4a2d6d2526b26fd800f206e93d4e009
2023-09-21 11:38:14 +00:00
Treehugger Robot
03de3b588f
Merge changes I8cf28041,If271c5f7 into main am: 59da77e19c
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2756946
Change-Id: I5b241be4e9f1c01f7e96f0397c80c3b52b6e29e9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-21 03:26:30 +00:00
Yu Liu
855cfc2fac
Convert cc_aconfig_library to bazel.
...
Bug: 297358249
Test: Unit test and CI
Change-Id: Ic84128b0df16efe4255b52b83670ec9902c09383
2023-09-20 17:46:46 -07:00
Cole Faust
f3cf34e096
Decouple the target build variant from the platform
...
Bug: 301334589
Test: Presubmits
Change-Id: Id8ac0874a2d132d9965e339fd8dc705a7434bffb
2023-09-20 17:08:30 -07:00
Wonsik Kim
a536287e29
Add libcodec2_aidl into allowlist
...
Test: m
Change-Id: If2e14b91d6c715e505957e88ffccc1673b00ae94
2023-09-20 16:36:18 -07:00
Spandan Das
319711b0bc
Create a bp2build converter for ndk_headers
...
And add this module type to alwaysConvertList
Test: go test ./bp2build
Bug: 300504837
Change-Id: Ic09738ab47e7c497287b73de0f952d52aa78dd17
2023-09-20 23:04:02 +00:00
Spandan Das
e993475ca6
Always convert ndk_library
...
This soong module will be converted to a cc_stub_suite macro in the
bp2build workspace
Test: TH
Bug: 298085502
Change-Id: I32a1a908d292e04b43d9be3efe7b16d1e4534466
2023-09-20 23:04:02 +00:00
Spandan Das
1262f359a4
Allowlist jni_libs and transitive deps of b/297405812
...
This is an internal android_test (for now), but the deps are in aosp
Bug: 297405812
Test: TH
Change-Id: If271c5f7d159eafd9db739c2699e4470ce44c825
2023-09-20 23:04:02 +00:00
Romain Jobredeaux
947dfa760b
Bp2build support for JNI deps of android_app.
...
Change-Id: I3f934ecb0323129e1bb1eb75527395e39467380d
Bug: 297405812
2023-09-20 16:09:13 -04:00
Sam Delmerico
631a5ea5f9
Merge changes from topics "revert-2746976-revert-2605644-rulebuilder-ninja-vars-OAAWYCDDLT-KMAGKVIXAT", "sandbox-rust-inputs" into main am: 52d1cc334b
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2629131
Change-Id: I226da59220fedaa2ebb0344604aa97cae3d975de
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-20 19:25:25 +00:00
Sam Delmerico
8e80e4a155
conditionally escape rule builder command am: d96a60685a
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2751019
Change-Id: I31eeb068f367331a29a693eaffc1d6bdd2d4d809
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-20 19:25:22 +00:00
Sam Delmerico
346f0c6242
Revert^2 "allow Ninja variables in RuleBuilder API" am: 0e2d63e4d2
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2746468
Change-Id: I14a836d3c1dfa5a1cdd2b0f75a3c6c0eb26e351d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-20 19:25:18 +00:00
Sam Delmerico
c640053ddc
Revert^2 "add rust_toolchain_rustc_prebuilt module type" am: 9333ac1249
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2746466
Change-Id: I324e0b0cb0926158b7f6de2efe93a0126495f501
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-20 19:25:02 +00:00
Sam Delmerico
52d1cc334b
Merge changes from topics "revert-2746976-revert-2605644-rulebuilder-ninja-vars-OAAWYCDDLT-KMAGKVIXAT", "sandbox-rust-inputs" into main
...
* changes:
support sandboxed rust rules
conditionally escape rule builder command
Revert^2 "allow Ninja variables in RuleBuilder API"
Revert^2 "add crate_root property to rust modules"
Revert^2 "add rust_toolchain_rustc_prebuilt module type"
2023-09-20 18:48:21 +00:00
Christopher Parsons
95f97af223
Merge "Have ConvertWBp2build use Bp2buildMutatorContext" into main am: c331812a59
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2756986
Change-Id: I541a63831ce789071cae8554e801fe323be3c6bd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-20 18:32:15 +00:00
Christopher Parsons
c331812a59
Merge "Have ConvertWBp2build use Bp2buildMutatorContext" into main
2023-09-20 17:56:24 +00:00
Liz Kammer
2485bcc6aa
Merge "Don't panic for unhandled product vars" into main am: 8e9ccda5d8
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2755066
Change-Id: I0bf38192856b2383bcaa7c121c21adc5976bb981
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-20 15:50:51 +00:00
Liz Kammer
8e9ccda5d8
Merge "Don't panic for unhandled product vars" into main
2023-09-20 15:10:18 +00:00
Chris Parsons
637458d326
Have ConvertWBp2build use Bp2buildMutatorContext
...
This no-op refactoring facilitates some upcoming functional changes for
"bp2build allowlist v2". The work requires that the bp2build conversion
mutator be changed from a TopDown mutator to a BottomUp mutator.
Refactoring all bp2build-related methods so that they use Bp2buildMutatorContext
makes it easier to make this functional change without touching tens of
files and multiple projects.
Bug: 285631638
Test: m bp2build
Change-Id: I3d1ef3064146e959c6f0dc315350fc9764bf2bd2
2023-09-20 14:49:35 +00:00
Jingwen Chen
2848be4236
bp2build converter for android_test_helper_app.
...
This module converts simply to an android_binary, but with testonly = True.
Test: new unit tests
Test: new example app
Fixes: 283518652
Change-Id: If6b7661c32caa7dada6d492cce106d96236f6205
2023-09-20 14:31:17 +00:00
Liz Kammer
c4298a325d
Merge changes from topic "prebuilt-cc-shared-always" into main am: 9e12c78637
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2755385
Change-Id: Id551b291d40a64b5c48aea5e77bf0e47941408fe
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-20 14:03:51 +00:00
Liz Kammer
e356c3a031
Always convert prebuilt libraries am: e0cbc983ec
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2754807
Change-Id: I172119cd82c5d08d3f3b9db83880e90e04a25191
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-20 14:03:47 +00:00
Liz Kammer
3c94d1a55d
Always convert prebuilt cc library headers am: 86a407f284
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2754806
Change-Id: I3f359524e03a303ea1130059177690223789d785
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-20 14:03:43 +00:00
Liz Kammer
9e12c78637
Merge changes from topic "prebuilt-cc-shared-always" into main
...
* changes:
Implement bp2build for java_sdk_library_import
Always convert prebuilt libraries
Always convert prebuilt cc library headers
2023-09-20 13:13:51 +00:00
Cole Faust
d36d0e5082
Merge "Move the android_platform next to it's entrypoint product config file" into main am: c0f7bd1a15
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2755346
Change-Id: I1042a44c0a4a1ea25a46b66d5fec903f646b4eda
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-19 21:16:34 +00:00
Cole Faust
c0f7bd1a15
Merge "Move the android_platform next to it's entrypoint product config file" into main
2023-09-19 20:42:52 +00:00
Liz Kammer
01de3ac619
Add keep sorted tags
...
Test: n/a
Change-Id: Ibfb96b3e9c2f4707eb585714069bbb81671457b4
2023-09-19 16:04:41 -04:00
Liz Kammer
e1b39a5286
Handle prebuilt vs source selection in bp2build
...
Test: enable mainline modules build from prebuilts and build
Bug: 300640274
Change-Id: Ib1d6bbca7e0ab459515d3cf6378741e8368e7327
2023-09-19 16:04:39 -04:00
Liz Kammer
9e2a5a7d6d
Don't panic for unhandled product vars
...
Instead, we return an error. This allows us to access some product
variable information earlier when it will not be used as an attribute
without panicing
Test: m nothing
Change-Id: Id094b2b9e1364a8d174d99b3824fa149fb235b3e
2023-09-19 15:58:22 -04:00
Liz Kammer
e0cbc983ec
Always convert prebuilt libraries
...
Test: CI
Test: patch in CL using prebuilt mainline modules & build
Bug: 300640274
Change-Id: Ie00b111a04198b266985f3e1c34c960844c0a327
2023-09-19 15:58:22 -04:00
Liz Kammer
9a97a8f62a
Implement bp2build for java_sdk_library_import
...
Test: go test bp2build conversion tests
Test: enable modules build from prebuilt and m nothing
Bug: 300640274
Change-Id: I8c015aec546d052bef6c42869e12db4e87d39780
2023-09-19 15:58:22 -04:00
Liz Kammer
86a407f284
Always convert prebuilt cc library headers
...
Test: go tests
Test: CI
Test: patch in CL using prebuilts for mainline modules and build
Bug: 300640274
Change-Id: I73f70dac679e341670e1484ce57bc984f413d409
2023-09-19 15:58:20 -04:00
Cole Faust
b4cb0c857f
Move the android_platform next to it's entrypoint product config file
...
Because we're going to start generating partition images for the
product, and the partitions will eventually be checked in, we want
them to be in sensible locations. And the platform should be there as
well so all the targets for a product are co-located.
Bug: 297269187
Test: m nothing && b build --config=android //build/bazel/examples/apex/minimal:build.bazel.examples.apex.minimal
Change-Id: Iaa25c44aa00295ada279d5fd49b5498bbafb89d5
2023-09-19 09:54:59 -07:00
Jingwen Chen
3aaf1a80bd
Merge "[bp2build] android_test bp2build." into main am: 088c4b652b
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2727561
Change-Id: Id15bc7e836370645f6777ecc4ad1f34cd678ba07
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-19 00:04:46 +00:00
Jingwen Chen
088c4b652b
Merge "[bp2build] android_test bp2build." into main
2023-09-18 23:27:14 +00:00
Treehugger Robot
48b6649189
Merge "Sort always convert by type list" into main am: 35f1ae0721
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2754805
Change-Id: Ib624dd4be4dd06aae0f6ab4338113089d3b4fb36
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-18 18:55:13 +00:00
Treehugger Robot
35f1ae0721
Merge "Sort always convert by type list" into main
2023-09-18 18:03:58 +00:00
Liz Kammer
4fc71fff30
Sort always convert by type list
...
Test: CI
Change-Id: Icdf1f4e8132d959b494e2570854ee06973a816b0
2023-09-18 09:11:18 -04:00
Jingwen Chen
e12c083198
[bp2build] android_test bp2build.
...
android_test is just an android_app, but the test bits are handled
purely in Starlark (tradefed_test_impl).
This enables building HelloWorldTests (android_test) with Bazel.
Bug: 297030120
Bug: 297029612
Test: WIP
Change-Id: I6d287c94b31698ea247da48e4cd6b5a75bc71e11
2023-09-18 12:39:06 +00:00
Sam Delmerico
a588d153c8
support sandboxed rust rules
...
This commit adds support for compiling rust rules inside the sbox
sandbox. To compile a rust module with sandboxing enabled, the entry
point to the crate must be specified via the `crate_root` property, and
all input sources and compile-time data must be specified via the `srcs`
and `compile_data` properties.
Bug: 286077158
Change-Id: I8c9dc5cf7578037a583b4be2e2f73cf20ffd4408
2023-09-15 22:46:56 +00:00
Sam Delmerico
d96a60685a
conditionally escape rule builder command
...
For rules which use RuleBuilder with Ninja variables (using the
BuildWithUnescapedNinjaVars function) but are not sandboxed, the command
output by RuleBuilder must not be escaped, or else Ninja variables will
not be evaluated until they are run on the command line.
Test: m libnum_traits liboid_registry crosvm droid
Change-Id: I81611368ab1975220f7f517df2f57646deac2af8
2023-09-15 22:41:58 +00:00
Sam Delmerico
0e2d63e4d2
Revert^2 "allow Ninja variables in RuleBuilder API"
...
7b02d8159e
Change-Id: I9f2031162b019e51b869ea0db151c86db447b23d
2023-09-15 22:41:56 +00:00
Sam Delmerico
9333ac1249
Revert^2 "add rust_toolchain_rustc_prebuilt module type"
...
400749d1f0
Change-Id: I63f04e13605c43f800f01f45345e4b3dc61aefb7
2023-09-15 22:40:16 +00:00
Treehugger Robot
3a01b22df2
Merge "Allowlist ndk STL dependencies" into main am: 9f7028852c
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2750725
Change-Id: I6419fd0cb9cb50e9f2d993df8d77456458a3c5b9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-15 21:49:46 +00:00
Treehugger Robot
9f7028852c
Merge "Allowlist ndk STL dependencies" into main
2023-09-15 21:23:49 +00:00
Yu Liu
8c21c60e66
Merge "Support aconfig_declarations, aconfig_values and aconfig_value_set" into main am: e6153b54bc
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2741124
Change-Id: I69520f0c66a3b42c7c161cedbf06ae711d9f93e4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-15 17:22:06 +00:00
Yu Liu
e6153b54bc
Merge "Support aconfig_declarations, aconfig_values and aconfig_value_set" into main
2023-09-15 16:46:01 +00:00
Christopher Parsons
215849163c
Merge "Add unit test for parsing build files in bp2build" into main am: 3671c385c7
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2751688
Change-Id: I69cb0e41bfd6bca70683a1f35e3c1dce0feb517e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-15 01:14:23 +00:00
Christopher Parsons
3671c385c7
Merge "Add unit test for parsing build files in bp2build" into main
2023-09-15 00:04:09 +00:00
Usta (Tsering) Shrestha
8ae2b77eaa
Merge "Bp2build-convert droiddoc_exported_dir" into main am: 4e86d7a342
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2734933
Change-Id: I27cccf8626c2ae3a29816b5fa4a94b9c67f7182d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-14 20:44:17 +00:00
Chris Parsons
5011e61c71
Add unit test for parsing build files in bp2build
...
This involves some minor changes to testing infrastructure.
This is a rollforward of aosp/2628496 with a couple of minor changes:
- In ParseBuildFiles, filter out all build files that are kept due
to ShouldKeepExistingBuildFileForDir
- Add some minor test infrastructure for StubbedBuildDefinitions, with a
couple of proof of concept tests used to demonstrate its usage. This
pattern will become immensely more common as we implement allowlist v2
(as we will need to update all tests which today simulate build
definitions that have missing deps)
Bug: 285631638
Fixes: 286545783
Test: bp2build.sh
Test: m nothing
Change-Id: I7c3a03b02098e39dd8e51d327482b440f294478f
2023-09-14 19:19:28 +00:00
Spandan Das
3d6ac190f2
Allowlist ndk STL dependencies
...
Bug: 298088835
Test: TH
Change-Id: I43942ad17645c99de82a966d674ef80100eaffd0
2023-09-14 17:34:30 +00:00
usta
72c6c6c8be
Bp2build-convert droiddoc_exported_dir
...
Bug: 283299388
Test: `m bp2build` and manual inspection
Change-Id: Ieec2094e446bb030f30103a7e1a06e35cbdcc72e
2023-09-14 12:06:54 -04:00
Treehugger Robot
ccceb1b092
Merge "Allowlist more targets for framework" into main am: ece322f640
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2745834
Change-Id: I1c8531acc3f0dd62291b5cc77a6625f11d9d3236
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-13 22:08:24 +00:00
Liz Kammer
b70eae04ce
Allowlist more targets for framework
...
Test: bp2build.sh
Change-Id: I4bd080dd795f40d9095157fe4ba4ec7f0e251757
2023-09-13 11:28:02 -04:00
Liz Kammer
b6d89afe2d
Merge "Sort do not convert for unconverted deps" into main am: 7ebb91a449
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2744700
Change-Id: Id2fb4d9070d0880186c1c65c55b106ad26fa005b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-12 15:22:07 +00:00
Liz Kammer
f673c2ea9f
Sort do not convert for unconverted deps
...
Test: n/a
Change-Id: Id86986f17d23fe47e47b303a1828478b8e887513
2023-09-12 09:08:17 -04:00
Treehugger Robot
684cdf8a49
Merge "Allowlist packages instead of modules" into main am: 0e3da8162c
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2747533
Change-Id: I29f570158b77e6623909c76464f80631236e0b48
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-12 02:14:10 +00:00
Treehugger Robot
0e3da8162c
Merge "Allowlist packages instead of modules" into main
2023-09-12 01:53:49 +00:00
Zi Wang
28907d4680
Merge "Allowlist libprotobuf-java-full" into main am: 37aa1729b0
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2746115
Change-Id: I5a8d551d5f39932cbe9d44088d5bb75294019f67
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-11 22:59:44 +00:00
Zi Wang
37aa1729b0
Merge "Allowlist libprotobuf-java-full" into main
2023-09-11 22:50:40 +00:00
Vinh Tran
9226051310
Allowlist packages instead of modules
...
bp2build doesn't support allowlisting fully qualified module names. Hence, when modules such as libui and libbinder have duplicate names with corresponding fdo_profile modules, bp2build yields an error. See b/299663210 for more context.
Test: CI
Bug: 299663210
Change-Id: Ic175f5aea38139d34c5df8b9d02e7d82d9b3fc10
2023-09-11 18:15:35 -04:00
Cole Faust
acb8ca12a0
Merge "Allow actions to read BUILD_BROKEN_INCORRECT_PARTITION_IMAGES" into main am: 7a05d1392a
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2746357
Change-Id: I6efc7cf9adabf83c9e0d86d49b56f7db73ec763f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-11 18:07:51 +00:00
Cole Faust
7a05d1392a
Merge "Allow actions to read BUILD_BROKEN_INCORRECT_PARTITION_IMAGES" into main
2023-09-11 17:25:18 +00:00
Yu Liu
2cc802a442
Support aconfig_declarations, aconfig_values and aconfig_value_set
...
Bug: 297356603
Test: Unit tests
Change-Id: I2f797578a35322440db0f281b4d46b6652512e00
2023-09-09 12:33:40 -07:00
Treehugger Robot
b6a5fe6bcc
Merge "Re-enable partition test" into main am: edbf854aa5
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2745801
Change-Id: I261046406a9fa429abd21e3655523e5f62cefdfd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-08 23:42:20 +00:00
Treehugger Robot
edbf854aa5
Merge "Re-enable partition test" into main
2023-09-08 23:16:58 +00:00
Cole Faust
ded796030b
Allow actions to read BUILD_BROKEN_INCORRECT_PARTITION_IMAGES
...
To maintain good backwards compatibility with the legacy partition
building behavior, allow actions to read
BUILD_BROKEN_INCORRECT_PARTITION_IMAGES so that we don't have to rerun
analysis.
Bug: 205632228
Test: Presubmits
Change-Id: I2b55c0143cbdaf010e6b5fd0c3d51d6930a94eff
2023-09-08 15:58:13 -07:00
Sam Delmerico
45b366c587
Merge changes from topic "revert-2605644-rulebuilder-ninja-vars-OAAWYCDDLT" into main am: 1d3740a274
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2746977
Change-Id: Ie660c5611ea4938afa8abd0e64d1db788a811ae1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-08 21:20:28 +00:00
Sam Delmerico
f7ea23c683
Revert "allow Ninja variables in RuleBuilder API" am: 7b02d8159e
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2746975
Change-Id: I3fa604a507c4fe1370ca8706ed6edb1e80953cd6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-08 21:20:15 +00:00
Sam Delmerico
1d3740a274
Merge changes from topic "revert-2605644-rulebuilder-ninja-vars-OAAWYCDDLT" into main
...
* changes:
Revert "add rust_toolchain_rustc_prebuilt module type"
Revert "add crate_root property to rust modules"
Revert "allow Ninja variables in RuleBuilder API"
2023-09-08 20:46:55 +00:00
Cole Faust
9a6fa98cd3
Re-enable partition test
...
Due to the series of recent reverts, it's working now.
Bug: 297269187
Test: m bazel_sandwich
Change-Id: I010a942918467713e08b900aec06c7011c40c3be
2023-09-08 12:00:39 -07:00
Treehugger Robot
3a9ce197a9
Merge changes I86f30b99,I2769c0d5 into main am: 3fb2002c9e
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2746855
Change-Id: Ie61359bea67a9afdf9e1e2e3e29568edfeccba79
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-08 16:31:33 +00:00
Treehugger Robot
e701757b08
Merge "Add all of hardware/interfaces/media to allowlist" into main am: b091d3b688
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2746853
Change-Id: I19f41491f92834e3803998e134a84e140b603214
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-08 16:31:16 +00:00
Sam Delmerico
7b02d8159e
Revert "allow Ninja variables in RuleBuilder API"
...
Revert submission 2605644-rulebuilder-ninja-vars
Reason for revert: b/299568218
Reverted changes: /q/submissionid:2605644-rulebuilder-ninja-vars
Change-Id: Ia738c100b8431dea6151939a800b992f877b5bb8
2023-09-08 16:10:54 +00:00
Sam Delmerico
400749d1f0
Revert "add rust_toolchain_rustc_prebuilt module type"
...
Revert submission 2605644-rulebuilder-ninja-vars
Reason for revert: b/299568218
Reverted changes: /q/submissionid:2605644-rulebuilder-ninja-vars
Change-Id: Ic3d1ba7e8a61427b52f31cc3f187c9d5a7d9a7bb
2023-09-08 16:10:47 +00:00
Treehugger Robot
3fb2002c9e
Merge changes I86f30b99,I2769c0d5 into main
...
* changes:
Do not convert resource dirs without resources
Do not convert java libraries with core_platform
2023-09-08 16:04:45 +00:00
Treehugger Robot
b091d3b688
Merge "Add all of hardware/interfaces/media to allowlist" into main
2023-09-08 16:04:44 +00:00
Liz Kammer
33dddf5a7e
Do not convert resource dirs without resources
...
Previously we would convert to java_resources when there were no
resources and get an error.
Test: b build //external/libphonenumber/... --config=android
Change-Id: I86f30b993a3ffdb20000f6a4c5261e2c4c74263c
2023-09-08 09:44:00 -04:00
Liz Kammer
4fd2edb638
Add all of hardware/interfaces/media to allowlist
...
Test: b build //hardware/interfaces/media/... //system/tools/hidl/... \
--config=android
Test: b build //hardware/interfaces/media/... //system/tools/hidl/... -k
Change-Id: Icc0f8ebb87b269c93e1b3b37e8c162772a2384ec
2023-09-08 09:39:37 -04:00
Firman Prayoga
0380f273af
Merge "Revert "Re-enable the partition test"" into main am: 20ae294850
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2746103
Change-Id: I87ee174e0d57422fdab723b2fb0add6a3618fb97
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-08 04:30:10 +00:00
Firman Prayoga
20ae294850
Merge "Revert "Re-enable the partition test"" into main
2023-09-08 04:02:58 +00:00
Cole Faust
5abc4bfb6e
Revert "Re-enable the partition test"
...
Revert submission 2745814-bazel_staging_dir_file_list
Reason for revert: So we can revert the staging directories change
Reverted changes: /q/submissionid:2745814-bazel_staging_dir_file_list
Change-Id: I3e997f29efcaf68ef102d33595609dd709f43d7d
2023-09-08 03:15:32 +00:00
Treehugger Robot
3940f12384
Merge changes from topics "rulebuilder-ninja-vars", "rustc_prebuilt_build_tool" into main am: 9abcf649a7
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2605644
Change-Id: I31d2d73a069bd8d67e82e59c70ea0f94c15e5fb5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-08 00:32:09 +00:00
Sam Delmerico
28ef26653e
add rust_toolchain_rustc_prebuilt module type am: b45c844ce7
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2654319
Change-Id: I451980fd7b155c389fb0eafc5ff0842ab50029f9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-08 00:31:58 +00:00
Cole Faust
48bb7636d7
Merge "Re-enable the partition test" into main am: 509ca8dfaf
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2746116
Change-Id: I9b80fa78c616be5b93cba73136fdc545cbfbfb0f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-08 00:30:52 +00:00
Treehugger Robot
9abcf649a7
Merge changes from topics "rulebuilder-ninja-vars", "rustc_prebuilt_build_tool" into main
...
* changes:
allow Ninja variables in RuleBuilder API
add crate_root property to rust modules
add rust_toolchain_rustc_prebuilt module type
2023-09-08 00:10:18 +00:00
Cole Faust
509ca8dfaf
Merge "Re-enable the partition test" into main
2023-09-07 23:35:01 +00:00
Sam Delmerico
1f9bb26656
allow Ninja variables in RuleBuilder API
...
The RuleBuilder API would not expand Ninja variables because the
variables would be written verbatim to the sandbox manifest file. This
commit allows a rule to specify that the manifest file should be written
in an un-escaped format so that Ninja variables are expanded before
writing the manifest file.
Bug: 286077158
Test: rust sandboxing topic + go test
Change-Id: I1915431f6e24d04d343dacc213c9079674ec8251
2023-09-07 20:56:02 +00:00
Treehugger Robot
c6d011630f
Merge "bp2build: block src == name for prebuilt_* modules" into main am: 3f0aa4d618
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2740453
Change-Id: I685e1e8c347ae18b76a288d11c1f4f98e821efa3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-07 19:54:41 +00:00
Treehugger Robot
3f0aa4d618
Merge "bp2build: block src == name for prebuilt_* modules" into main
2023-09-07 19:41:04 +00:00