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
Treehugger Robot
2b93f0cfb9
Merge "Mark android apps with jni_uses_*_apis as unconvertible" into main am: 8d3ea47ec1
am: a1b17990dd
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2755569
Change-Id: I706967f2c3bc0798306ce7ef7d367bbe08923528
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-21 04:25:12 +00:00
Treehugger Robot
a1b17990dd
Merge "Mark android apps with jni_uses_*_apis as unconvertible" into main am: 8d3ea47ec1
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2755569
Change-Id: I1fc63295438b1e33ab5d7a21dfdc21f8469f7507
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-21 04:20:01 +00:00
Alix
ee51bd6588
Mark android_* modules with java_resources as unconvertible
...
Change-Id: I9da921feaf9edb5fe7d1b1cb733494f90d8c64b3
BUG: 300470246
2023-09-21 03:58:24 +00:00
Treehugger Robot
8d3ea47ec1
Merge "Mark android apps with jni_uses_*_apis as unconvertible" into main
2023-09-21 03:38:05 +00:00
Treehugger Robot
ba8d17586a
Merge "Enable restat for kapt stubs rules" into main am: f2d858e5ba
am: 61958c4581
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2755510
Change-Id: I623bf8f9ecec17b6e85675246b01acd6be0a5951
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-20 22:10:16 +00:00
Treehugger Robot
99ccb40d0a
Merge "Use same symbol for all receiver functions" into main am: 7ae5a5b8cb
am: 1ceda3d5f8
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2756985
Change-Id: I9f0bf636c62b05a7d41c6b11930f6d77a207b38c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-20 22:10:05 +00:00
Treehugger Robot
61958c4581
Merge "Enable restat for kapt stubs rules" into main am: f2d858e5ba
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2755510
Change-Id: Id1bda3613b5073ccd8786e81379676f08d637d55
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-20 21:12:53 +00:00
Treehugger Robot
1ceda3d5f8
Merge "Use same symbol for all receiver functions" into main am: 7ae5a5b8cb
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2756985
Change-Id: I75bf73d10820621dac581358255f9d0295510d50
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-20 21:12:40 +00:00
Treehugger Robot
f2d858e5ba
Merge "Enable restat for kapt stubs rules" into main
2023-09-20 20:40:28 +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
Spandan Das
0e0a880fdd
Mark android apps with jni_uses_*_apis as unconvertible
...
These properties are used to determine if the app should include the sdk
variant of jni libs. Till we support this, mark androi_app/android_test
that set this property as uncovertible in allowlist v2
Bug: 299360988
Test: created a test app in an android.bp and verified that an
equivalent target is not created if either of these props are set
Change-Id: I925745d2667866a12b71788dc8f1bb1e1f3472cc
2023-09-20 19:53:30 +00:00
Christopher Parsons
88db04e1a9
Merge "Have ConvertWBp2build use Bp2buildMutatorContext" into main am: c331812a59
am: 95f97af223
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2756986
Change-Id: If359a892ba0234fd8cb6842bfb0109644bd1a448
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-20 18:36:11 +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
usta
0391ca4eaa
Use same symbol for all receiver functions
...
cosmetic change
Bug: NA
Test: NA
Change-Id: I1781de1bd2108547f4da2a967d72a3a56e7362ed
2023-09-20 18:01:44 +00:00
Colin Cross
ed27322aa5
Enable restat for kapt stubs rules
...
The output of the kapt stubs rules only change when the public interface
of a kotlin class changes, which makes them a good candidate for restat.
This will prevent some unnecessary reruns of turbine annotation
processing.
Bug: 297356926
Test: builds
Change-Id: I39bd63284fd37058f69a0a3dace1ea5f4f50e8b5
2023-09-20 09:53:39 -07:00
Liz Kammer
336739ca4a
Merge changes from topic "prebuilt-cc-shared-always" into main am: 9e12c78637
am: c4298a325d
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2755385
Change-Id: I7e9b54f36fa6fb32b3c070579859a66bdf3600d7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-20 15:01:49 +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
Christopher Parsons
aa457e173a
Merge "Refactor bp2build tests for allowlist v2" into main am: 06ac78ce40
am: 3092afc3c2
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2755925
Change-Id: Id717d1038a870056db7ff47701e196410b979615
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-19 21:21:36 +00:00
Christopher Parsons
3092afc3c2
Merge "Refactor bp2build tests for allowlist v2" into main am: 06ac78ce40
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2755925
Change-Id: I67fedb5715b0d6cdb90f7f7af0187289a504f955
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-19 20:24:22 +00: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
Chris Parsons
cd209035aa
Refactor bp2build tests for allowlist v2
...
Allowlist v2 will change bp2build by automatically disabling rdeps of
unconvertible modules. Many bp2build tests create bp2build stub modules
without an implementation,
This CL changes setup of such tests to also contain a BUILD file with
"stub implementations" of equivalent targets, to keep these test targets
convertible.
To verify this change in-place, this CL removes `bp2build_available:
false` from these dependencies.
This is a test-only change for bp2build tests.
Bug: 285631638
Test: m bp2build
Change-Id: I489480cbc4158a416b7abf57c35a6e2bc2ad6173
2023-09-19 17:04:11 +00:00
Jingwen Chen
3a02b22205
Merge "[bp2build] android_test bp2build." into main am: 088c4b652b
am: 3aaf1a80bd
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2727561
Change-Id: I629c0b2f44b1a50cb4f487d077f63036cf96862d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-19 00:11:04 +00:00
Jihoon Kang
567f0186a3
Merge "Create java_api_contribution_import from sdk_library_import" into main am: 18a33e51c6
am: 578ece61ed
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2748475
Change-Id: Ia0ecca22ae35d210bec2567f0c3adbacb38860fa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-19 00:10:55 +00:00
Treehugger Robot
0053d8082b
Merge changes I8466db71,I83180699 into main am: e50b0f5558
am: 0efaada4cd
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2752165
Change-Id: Id91c263c06e3316ad27b237ce475a65384b6bdf0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-19 00:09:38 +00: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
Jihoon Kang
578ece61ed
Merge "Create java_api_contribution_import from sdk_library_import" into main am: 18a33e51c6
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2748475
Change-Id: I86d682265a510ee60359c2517250c5f7459d3182
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-18 23:16:25 +00:00
Treehugger Robot
0efaada4cd
Merge changes I8466db71,I83180699 into main am: e50b0f5558
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2752165
Change-Id: Ic32fdf1452442b879c86d52f94f9de03317ae566
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-18 23:15:08 +00:00
Jihoon Kang
18a33e51c6
Merge "Create java_api_contribution_import from sdk_library_import" into main
2023-09-18 22:24:51 +00:00
Treehugger Robot
e50b0f5558
Merge changes I8466db71,I83180699 into main
...
* changes:
Sort api files by api surface in java_api_library
Add java_api_contribution_import module type
2023-09-18 22:23:33 +00:00
Treehugger Robot
96d1710972
Merge "Unconditionally generate hash-based proguard mapping files" into main am: 46465666cc
am: 92547162cd
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2752996
Change-Id: I25d720af1c0cfc711a77e31f66506bd767353672
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-18 20:34:27 +00:00
Treehugger Robot
fcc7fcf1eb
Merge "don't compress JNI libs extracted from aar_import" into main am: 35bc07cb2a
am: 16542620eb
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2636192
Change-Id: I44642943e4154ac2d13cdfbdcda4a6bc5035838a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-18 20:33:46 +00:00
Jihoon Kang
71c868340e
Create java_api_contribution_import from sdk_library_import
...
This change modifies sdk_library_import so that it directly creates
java_api_contribution per api scope. The module creates api_contribution
module for api scopes where the api file is specified.
Test: m nothing && MODULE_BUILD_FROM_SOURCE=false m nothing
--build-from-text-stub and inspect ninja dependency of java_api_library
Bug: 300175323
Change-Id: I74be3b4f1efef7f7d1cb8bd7b6c893b9cef0f370
2023-09-18 19:33:28 +00:00
Jihoon Kang
8fe1982e8b
Sort api files by api surface in java_api_library
...
metalava requires api files to be sorted in the narrower api scope to
the wider api scope when passed as inputs. Previously, the api files
were sorted based on the naming convention, but some api files in
prebuilts do not necessarily follow the naming convention (i.e.
*-current.txt). Therefore, utilize the api surface information provided
by the java_api_contribution provider instead of the naming convention
to sort the api files.
Test: m nothing
Bug: 300175323
Change-Id: I8466db712bff8fef906186bd272d85682877533d
2023-09-18 19:33:01 +00:00
Treehugger Robot
92547162cd
Merge "Unconditionally generate hash-based proguard mapping files" into main am: 46465666cc
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2752996
Change-Id: I826e56a4f20739e0fc05f94ecddb68b6fc938309
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-18 18:56:21 +00:00
Treehugger Robot
16542620eb
Merge "don't compress JNI libs extracted from aar_import" into main am: 35bc07cb2a
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2636192
Change-Id: I7c94b0fb24d2c4a272308a932f1261638d94a546
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-18 18:56:02 +00:00
Treehugger Robot
46465666cc
Merge "Unconditionally generate hash-based proguard mapping files" into main
2023-09-18 18:33:38 +00:00
Treehugger Robot
35bc07cb2a
Merge "don't compress JNI libs extracted from aar_import" into main
2023-09-18 18:20:52 +00:00
Jared Duke
b832fbb643
Unconditionally generate hash-based proguard mapping files
...
Previously, this was restricted to targets that enable R8 full mode, but
that was really just a temporary carveout to avoid disrupting other
targets. Since then, R8 full mode has been enabled by default for all
app targets, and the hash-based mapping mechanism is further integrated
into various debugging and retracing pipelines.
As of now, there are are only a very small number of targets that have
enabled optimization/obfuscation and are still using R8 compat mode, so
the build-time impact of this change should be minimal, and there should
be no functional runtime side effects.
Bug: 297566172
Test: m framework-appsearch + inspect proguard mapping
Change-Id: I5dfea60f60dc37b8445c8fddba6a4eab0dc41d96
2023-09-18 16:05:16 +00:00
Romain Jobredeaux
3132f843f1
Use raw {min,target}_sdk_version properties in android_app converter
...
The logic of EffectiveVersionString is product-variable dependent and
is being implemented bazel-side in order to produce product agnostic
BUILD files. A required additional product variable is added to the
export list, and the "updatable" property of android_app is also bp2build-converted.
Handling of max sdk version was not correct (it does not affect
manifest values in Soong), so removing it for now.
Bug: 274474008
Bug: 274474002
Test: CI
Change-Id: I7a10bfabf914c8e86064b7ce61926701f87517e3
2023-09-18 10:02:35 -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
Jihoon Kang
fdf323697e
Add java_api_contribution_import module type
...
java_api_contribution_import is a prebuilt module type of
java_api_contribution. It's build actions are identical to those of
java_api_contribution.
Test: m nothing
Bug: 300174357
Change-Id: I831806990b37b340af21858eb2bab5de62fdf7a9
2023-09-15 22:52:52 +00:00
Zi Wang
7ccd48617c
Merge changes from topic "drop_deps_no_srcs" into main am: 5d982b398e
am: cccefd7433
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2752995
Change-Id: I2bf4f8a67332da3d970ed7e24fc612658c4523ee
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-15 21:57:54 +00:00
Zi Wang
cccefd7433
Merge changes from topic "drop_deps_no_srcs" into main am: 5d982b398e
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2752995
Change-Id: I095b48f0bbe31fdc65df43a81693b7dfb7c60da8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-15 20:59:17 +00:00
Zi Wang
5d982b398e
Merge changes from topic "drop_deps_no_srcs" into main
...
* changes:
Always drop deps from java_library with no srcs
Do not append deps to exports when java_library has only proto srcs
2023-09-15 20:39:35 +00:00
Zi Wang
dd93636f1e
Always drop deps from java_library with no srcs
...
This is the follow up from aosp/2750763
Test: CI and added unit test
Bug: 285952385
Change-Id: I64703ee4fa742b718ffb43f2af1b6ab43ddeb606
2023-09-15 10:37:16 -07:00
Usta (Tsering) Shrestha
7110fa52bb
Merge "Bp2build-convert droiddoc_exported_dir" into main am: 4e86d7a342
am: 8ae2b77eaa
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2734933
Change-Id: I33b0c647364ac9f252b8f020a5eb4f3cc1472080
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-14 21:42:14 +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
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
Cole Faust
0fd5fd76eb
Merge "Error out if skip_preprocessed_apk_checks is set when it's not necessary" into main am: 3835509f95
am: 14469155af
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2744114
Change-Id: I48988961f898c44741765db93636be923bf105d3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-14 00:46:36 +00:00
Cole Faust
14469155af
Merge "Error out if skip_preprocessed_apk_checks is set when it's not necessary" into main am: 3835509f95
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2744114
Change-Id: I271bc87a21adb967073ece7de25a602ff0b10894
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-13 23:50:22 +00:00
Cole Faust
3835509f95
Merge "Error out if skip_preprocessed_apk_checks is set when it's not necessary" into main
2023-09-13 22:38:33 +00:00
Zi Wang
f038cde8df
Do not append deps to exports when java_library has only proto srcs
...
This is to address the comment in aosp/2748099
Test: CI
Bug: 285952385
Change-Id: I0bc8c76e2bc9ee113ced8642e0ab93a95799211c
2023-09-13 10:15:10 -07:00
Jihoon Kang
17cec69ff7
Merge "Utilize -quiet
flag in java_api_library" into main am: ef1fc04e1a
am: 8f9e1c9f85
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2749441
Change-Id: I8a516ff4158b597a5030dbc9ad5127b74c0773fa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-13 17:14:23 +00:00
Jihoon Kang
8f9e1c9f85
Merge "Utilize -quiet
flag in java_api_library" into main am: ef1fc04e1a
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2749441
Change-Id: I4adba57beef04d888e794f48b573c74de8f9d18f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-13 16:19:57 +00:00
Jihoon Kang
ef1fc04e1a
Merge "Utilize -quiet
flag in java_api_library" into main
2023-09-13 15:57:11 +00:00
Paul Duffin
5c6a7f24d9
Merge "Replace --api-overloaded-method--order with --format-defaults" into main am: 93961bfbe5
am: 3f23d2686b
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2748754
Change-Id: I91c29e959b092ef70a34b63e1aba168afb6630cb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-13 13:56:12 +00:00
Paul Duffin
3f23d2686b
Merge "Replace --api-overloaded-method--order with --format-defaults" into main am: 93961bfbe5
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2748754
Change-Id: Ie90cc44469ca4ffdd27070d0c9cb956e31140050
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-13 13:02:00 +00:00
Paul Duffin
93961bfbe5
Merge "Replace --api-overloaded-method--order with --format-defaults" into main
2023-09-13 11:57:03 +00:00
Zi Wang
7018df6938
Merge "Bp2build: handle the case where java_library has only proto srcs" into main am: c90e1ec784
am: bc36c7e264
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2748099
Change-Id: I869460457bdfcbd5a70081cac7b67ad04aed3345
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-13 02:13:58 +00:00
Zi Wang
bc36c7e264
Merge "Bp2build: handle the case where java_library has only proto srcs" into main am: c90e1ec784
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2748099
Change-Id: I61e88db98415997ea27b0d590e65f36dc8f1e153
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-13 01:19:40 +00:00
Jihoon Kang
d02a43668a
Utilize -quiet
flag in java_api_library
...
java_api_library finds and zips class files based on pattern matching,
leading to multiple missing files warnings being printed to console
during from-text stub build. This change passes the `-quiet` flag to
soong_zip to prevent such warnings from being printed.
Test: m --build-from-text-stub and inspect console output
Bug: 300166930
Change-Id: I23d49b5e3a29d2127f5e917169620e18a98bc06b
2023-09-13 00:11:01 +00:00
Paul Duffin
504d356579
Replace --api-overloaded-method--order with --format-defaults
...
Bug: 300052204
Test: m checkapi
Change-Id: I8952a828437872ceebf7f9da4dc297173ed2a90b
2023-09-13 00:00:58 +01:00
Zi Wang
774c6eaf10
Bp2build: handle the case where java_library has only proto srcs
...
java_library doesn't accept deps when there are no srcs because
no compilation happens, but it accepts exports.
The deps from the module are not necessary for compiling the protos,
in which case they are unnecessary as deps on the java_library as well
since they are not be propagated to any dependencies.
So we can put the deps to exports and drop deps here.
Test: CI and added unit test
Bug: 285952385
Change-Id: Ie54a4ac0db592fb96fede64f0e67df309dca9c1d
2023-09-12 10:41:42 -07:00
Romain Jobredeaux
0b02d44081
Merge "Re-order android_app bp2build converter logic." into main am: 2195f24ec4
am: 80a3c08c0c
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2744723
Change-Id: I15b9f9c8674bda690ebb7a86ddbc281d978b415d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-12 15:25:58 +00:00
Romain Jobredeaux
80a3c08c0c
Merge "Re-order android_app bp2build converter logic." into main am: 2195f24ec4
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2744723
Change-Id: I9415e5badd071725187936d3b5f11243e27fbb15
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-12 14:32:34 +00:00
Romain Jobredeaux
d2cc5037c2
Re-order android_app bp2build converter logic.
...
This change is a no-op but makes it easier to single out framework-res
for conversion in subsequent CL aosp/2720593.
Bug: 276928228
Test: CI
Change-Id: I7c7338add1857697912dec3c34b7c43e06d2d12d
2023-09-11 16:37:50 -04:00
Treehugger Robot
0aa01115e4
Merge changes I86f30b99,I2769c0d5 into main am: 3fb2002c9e
am: 3a9ce197a9
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2746855
Change-Id: I5d9542e0bda630bf785f8a613396f6997fee71e5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-08 17:23:54 +00: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
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
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
65942c8467
Do not convert java libraries with core_platform
...
Test: go bp2build tests
Change-Id: I2769c0d589c304caeb24a8ecba38a4a5ee6c63e5
2023-09-08 09:43:57 -04:00
Treehugger Robot
278c9d0636
Merge "android_app APEX_GLOBAL_MIN_SDK_VERSION_OVERRIDE" into main am: 8763530dff
am: 040d3deedb
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2718294
Change-Id: I9eb8c42cd6bc1cf7deb7626e7b84519527f4a44d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-07 18:10:50 +00:00
Cole Faust
ee8bcdb34d
Merge "Revert^2 "Only allow setting presigned without preprocessed on targetSdk < 30"" into main am: 1b365e350a
am: 70f839fe01
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2744898
Change-Id: Ib55b1b9ff7e88f9985e61b5b40305e74aaa67423
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-07 18:10:05 +00:00
Treehugger Robot
040d3deedb
Merge "android_app APEX_GLOBAL_MIN_SDK_VERSION_OVERRIDE" into main am: 8763530dff
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2718294
Change-Id: I4d70528e0eda3cdf229c64ddb8cc99eb119015d8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-07 17:20:02 +00:00
Cole Faust
70f839fe01
Merge "Revert^2 "Only allow setting presigned without preprocessed on targetSdk < 30"" into main am: 1b365e350a
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2744898
Change-Id: I6472d8ab1c2fbc221f04f6c63cb6be77d38688fe
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-07 17:19:06 +00:00
Treehugger Robot
8763530dff
Merge "android_app APEX_GLOBAL_MIN_SDK_VERSION_OVERRIDE" into main
2023-09-07 16:55:45 +00:00
Cole Faust
1b365e350a
Merge "Revert^2 "Only allow setting presigned without preprocessed on targetSdk < 30"" into main
2023-09-07 16:42:08 +00:00
Treehugger Robot
86633be948
Merge "Modify static lib stub library visiblity" into main am: 968c735108
am: f7fc893c2a
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2744913
Change-Id: I2a9e372c57bc02780d456bb98ceb1966cf90392b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-07 14:06:14 +00:00
Treehugger Robot
f7fc893c2a
Merge "Modify static lib stub library visiblity" into main am: 968c735108
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2744913
Change-Id: Idbe5d3ee533ceabb35172a586cd89ae567d16554
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-07 13:14:13 +00:00
Treehugger Robot
968c735108
Merge "Modify static lib stub library visiblity" into main
2023-09-07 12:07:17 +00:00
Cole Faust
51d7bfd9a1
Revert^2 "Only allow setting presigned without preprocessed on targetSdk < 30"
...
This reverts commit d293e28f52
.
Reason for revert: The underlying issue was fixed in ag/24685010
Change-Id: I06810d37dba37aa12f9a1e14b0749f1e1eb41136
2023-09-07 05:31:32 +00:00
Karl Shaffer
57c4e6b2af
Merge "Revert "Only allow setting presigned without preprocessed on targetSdk < 30"" into main am: d79c10f71f
am: f6182066f9
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2744115
Change-Id: Iff68934026b2abb1427b222596468e5ec8013fb8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-07 02:54:27 +00:00
Karl Shaffer
f6182066f9
Merge "Revert "Only allow setting presigned without preprocessed on targetSdk < 30"" into main am: d79c10f71f
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2744115
Change-Id: I5c43aac2f67fe33f6a021aafedb1d9222e133147
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-07 02:01:09 +00:00
Jihoon Kang
786df93db0
Modify static lib stub library visiblity
...
java_sdk_library generates stub java_library module which compiles the
stub generated from either source or txt files, which is toggled based
on the build configuration. The java_api_library/java_library module
that compiles the stubs should not be directly accessible to the modules
outside of the sdk_library module scope, thus modify their visibility as
private.
Test: m nothing
Bug: 299373105
Change-Id: Ia4a08bf6e65c521814c82f54ea43cc8d367834e3
2023-09-07 01:22:12 +00:00
Karl Shaffer
d79c10f71f
Merge "Revert "Only allow setting presigned without preprocessed on targetSdk < 30"" into main
2023-09-07 00:58:24 +00:00
Karl Shaffer
d293e28f52
Revert "Only allow setting presigned without preprocessed on targetSdk < 30"
...
This reverts commit 6158528e15
.
Reason for revert: DroidMonitor-triggered revert due to breakage https://android-build.corp.google.com/builds/quarterdeck?branch=git_udc-d1-dev-plus-aosp&target=aosp_bramble-trunk_staging-userdebug&lkgb=10771573&lkbb=10771600&fkbb=10771587 , bug https://buganizer.corp.google.com/issues/299369971
BUG: 299369971
Change-Id: I6bf6eb5c0fb9e30197e145121adc7ed58871526f
2023-09-07 00:51:09 +00:00
Cole Faust
9c5c09f0ad
Error out if skip_preprocessed_apk_checks is set when it's not necessary
...
So that we don't erroneously add skip_preprocessed_apk_checks
everywhere.
Bug: 185811447
Test: Presubmits
Change-Id: Icb1c6163d170ca4181c5c6a814b51fda4777746f
2023-09-06 16:11:44 -07:00
Cole Faust
031f822e63
Merge "Only allow setting presigned without preprocessed on targetSdk < 30" into main am: 2f681324c2
am: 41c46414f2
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2659055
Change-Id: I3c12f70337bc2632535dce04bdb0707c0224c1df
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-06 22:56:14 +00:00
Cole Faust
41c46414f2
Merge "Only allow setting presigned without preprocessed on targetSdk < 30" into main am: 2f681324c2
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2659055
Change-Id: I8e784838bc6316f23b0b99554496e3692ecdcc9f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-06 22:04:41 +00:00