Yu Liu
0bf0865f83
Merge "Change java_test_host to support cov variant." into main
2023-10-11 16:15:40 +00:00
Zhi Dou
20078e9795
Add UnsupportedAppUsage to java_aconfig_library dependency am: 1b052b0078
am: 06f6aa131a
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2776648
Change-Id: I9daf3f5063d1742f524e32234c8a00c332ff969e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-10-11 00:37:16 +00:00
Yu Liu
d8aa20062a
Change java_test_host to support cov variant.
...
Bug: 279960392
Test: CI and m --skip-soong-tests TARGET_PRODUCT=aosp_x86_64 EMMA_INSTRUMENT=true CLANG_COVERAGE=true NATIVE_COVERAGE_PATHS="external/cronet" mts
Change-Id: I4489ed725aee6097e6e340f5f6d06ecaf1c64222
2023-10-10 16:00:32 -07:00
Jihoon Kang
c1f2ef053a
Merge "Introduce system_modules property to java_api_library" into main am: 90c3f5fac4
am: 6df74f24b6
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2774869
Change-Id: I9306c7be5a60431b2ae326c638729feedd7bbf97
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-10-10 20:09:58 +00:00
Zhi Dou
1b052b0078
Add UnsupportedAppUsage to java_aconfig_library dependency
...
Generated flag requires UnsupportedAppUsage annotation to expose the
flag to CTS tests.
Bug: 301272559
Test: presubit
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:5e2c96a93b4c16b224c090570a10697400a42c0a )
Merged-In: I90c87596ca80766ece429ddee1b45723b01d2760
Change-Id: I90c87596ca80766ece429ddee1b45723b01d2760
2023-10-10 19:36:00 +00:00
Jihoon Kang
90c3f5fac4
Merge "Introduce system_modules property to java_api_library" into main
2023-10-10 18:33:18 +00:00
Paul Duffin
629b9d287d
Retain concrete overrides of abstract methods by default
...
Bug: 299366704
Test: m checkapi
Change-Id: I3d9fafefe90a98568c16d80c30e4d1d88a22c350
2023-10-10 17:50:25 +01:00
Alix
f7a1027c6b
Use an option struct in aapt.buildActions & manifestMerger
...
Change-Id: Ia056ab321e1fd146ed0cdb98fc2d4455601f648c
Test: Treehugger
2023-10-10 14:31:03 +00:00
Ian Zerny
db2d35b8ac
Ignore dex files in input archives
...
Bug: 303264288
Test: m checkbuild
Change-Id: Idce6a8226ca94b257b0ba7b3416b5b1bbffc3140
2023-10-10 14:35:14 +02:00
Jihoon Kang
4ec24870e0
Introduce system_modules property to java_api_library
...
System_modules property provides the jars passed as bootclasspath when
compiling the stubs in the java_api_library where its creating
java_sdk_library's sdk_version is none, as the jars will not be provided
from the full_surface_stub_libs but compiled by itself in the child
change.
The jar provided by the system_modules will also be passed to metalava
to resolve hierarchy coming from outer dependencies.
Test: m --build-from-text-stub
Bug: 288624417
Change-Id: I8f3b89efa24bceb070d7a37fae3c7334dd7f0868
2023-10-09 17:44:54 +00:00
Krzysztof Kosiński
f0b5c69f64
Clean up obsolete aliases for Truth. am: 5a55439d12
am: fd3d016a70
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2778191
Change-Id: I2100953abf25bf9fb1cbc52530002d94612c5685
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-10-08 04:12:44 +00:00
Krzysztof Kosiński
5a55439d12
Clean up obsolete aliases for Truth.
...
Bug: 255714762
Test: presubmit
Change-Id: I2d7ef129bc8cad247d805ad392f05cd9d517b67e
2023-10-07 19:59:58 +00:00
Treehugger Robot
459c689b9d
Merge "Update Headers_only to a bool pointer" into main am: 9ea1d061b7
am: 077566faf4
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2775982
Change-Id: If3d23d2c67d81becc00332cac5cf022e451a158d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-10-06 20:37:07 +00:00
Treehugger Robot
9ea1d061b7
Merge "Update Headers_only to a bool pointer" into main
2023-10-06 19:59:17 +00:00
Treehugger Robot
21698a7c14
Merge "Remove unnecessary arch variant for patch module" into main am: aa46295842
am: 633fde4719
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2775981
Change-Id: Ie82f053a6e2d5e576ad1f5df2157c78c51117769
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-10-06 16:46:13 +00:00
Treehugger Robot
aa46295842
Merge "Remove unnecessary arch variant for patch module" into main
2023-10-06 15:20:20 +00:00
Zi Wang
b55cc83aa5
Merge "Add support for java_library proto plugin in bp2build" into main am: b0f3ff43e5
am: 674022ced0
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2768495
Change-Id: I383f1241634231f84aac1dd17a4743b28a16c473
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-10-05 23:42:54 +00:00
Liz Kammer
6077263084
Update Headers_only to a bool pointer
...
This makes it easier to identify intentionally setting the property
Test: m nothing
Change-Id: Id89d1e64da3809025f63cafe7557e57a80e0ffee
2023-10-05 17:18:44 -04:00
Liz Kammer
0a470a3c14
Remove unnecessary arch variant for patch module
...
Test: CI
Change-Id: Ibc058407ffb09afa38d9248f4391019e8786602b
2023-10-05 17:02:00 -04:00
Zi Wang
dbaf6a9dd0
Add support for java_library proto plugin in bp2build
...
Test: Added unit test and CI
Bug: 303064670
Change-Id: Idb96ac322aafcb6789ea2002b84a6905d5ec488f
2023-10-05 12:53:23 -07:00
Treehugger Robot
0453c9526c
Merge "Don't create withres-withoutdex files for R8" into main am: 31a5b2c1ef
am: c2c6d39f72
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2768496
Change-Id: I5d0fda68c6ad33e70e6b26c8fa0b36e6607c08c8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-10-04 17:48:14 +00:00
Treehugger Robot
742a8bbddd
Merge "Remove unnecessary flag for Kotlin compiles" into main am: c68afc4e9f
am: 1f02fc33a2
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2769266
Change-Id: Ic71072da968635e554f6c3713fe3f9316aa44285
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-10-04 17:48:06 +00:00
Treehugger Robot
31a5b2c1ef
Merge "Don't create withres-withoutdex files for R8" into main
2023-10-04 17:32:52 +00:00
Treehugger Robot
c68afc4e9f
Merge "Remove unnecessary flag for Kotlin compiles" into main
2023-10-04 17:07:22 +00:00
Anton Hansson
88cf24b098
Merge "Support passing lint baseline to doclava" into main am: ddbfdb7f7e
am: dc99bafb1d
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2769206
Change-Id: Icaa3a09d152ae1e840df31401107b24a3686b0a1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-10-04 16:43:54 +00:00
Anton Hansson
ddbfdb7f7e
Merge "Support passing lint baseline to doclava" into main
2023-10-04 15:53:49 +00:00
Liz Kammer
e10fef75f1
Remove unnecessary flag for Kotlin compiles
...
This has been fixed in upstream Kotlin
Test: add /tmp/build.txt file and m metalava
Change-Id: I6d088548ee5a31452ad637bbdd75e26c8863926d
2023-10-04 10:37:05 -04:00
Treehugger Robot
e77d2e4197
Merge "Don't delete withres-withoutdex jar from R8 rules" into main am: 72928074f5
am: 4003606c5f
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2769925
Change-Id: I592565fda708934caf3089671311abd209fe951e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-10-03 20:24:23 +00:00
Treehugger Robot
72928074f5
Merge "Don't delete withres-withoutdex jar from R8 rules" into main
2023-10-03 19:17:56 +00:00
Jihoon Kang
40386ed37e
Merge changes from topic "expose_flagged_api_revert" into main am: a7e5e29ec1
am: 3d1cecda28
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2769001
Change-Id: I330c0434af550bc6355342c7c27c20de47080a03
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-10-03 18:32:50 +00:00
Yu Liu
60ee7d23cd
Merge "Convert java_aconfig_library to bazel." into main am: 7a90fcfa45
am: 2d7db62bcc
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2755429
Change-Id: I8b7b53149dc04abde9dcdaf468c0227a0384bc26
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-10-03 18:32:28 +00:00
Colin Cross
8484082fad
Don't create withres-withoutdex files for R8
...
The withres-withoutdex files were added in b/195558228 because D8
produced errors when given an input jar that contained both class
and dex files:
Error: com.android.tools.r8.internal.Cc: Cannot create android app from an archive 'out/soong/.intermediates/libcore/libcore-crypto-tests/android_common/withres/libcore-crypto-tests.jar' containing both DEX and Java-bytecode content
It turns out R8 doesn't have this problem, it defaults to ignoring *.dex
files unless the com.android.tools.r8.allowDexInputToR8 system property
is set. Remove the withres-withoutdex files when using R8, but keep
it in place for D8 for now.
Bug: 302573555
Bug: 303264288
Bug: 303064127
Test: m checkbuild
Test: m Calendar && m Calendar
Test: m framework-minus-apex && m framework-minus-apex
Change-Id: Ib6410f7fef6faf5913476c6423cdd27215c68c45
2023-10-03 18:27:28 +00:00
Jihoon Kang
a7e5e29ec1
Merge changes from topic "expose_flagged_api_revert" into main
...
* changes:
Revert^2 "Add flagged api hide conditional to droidstubs"
Revert^2 "Add soong config variable Release_expose_flagged_api"
2023-10-03 17:55:16 +00:00
Yu Liu
7a90fcfa45
Merge "Convert java_aconfig_library to bazel." into main
2023-10-03 17:29:26 +00:00
Colin Cross
b716ceb832
Don't delete withres-withoutdex jar from R8 rules
...
R8 rules produce a depfile generated by R8. R8 sees the withres-withoutdex
jar as an input, and so adds it to the depfile. If the jar is deleted
after running R8 then ninja will always consider the rule dirty, as the
input file listed in the depfile is missing.
Fixes: 303064127
Test: m Calendar && m Calendar
Test: m framework-minus-apex && m framework-minus-apex
Change-Id: I5cbd780b56fc131b58598d6e569a8a78b7fe9395
2023-10-03 16:42:48 +00:00
Anton Hansson
b06bb5762e
Support passing lint baseline to doclava
...
There are many issues in the docs, so allow specifying a baseline
file that allows existing lint errors in doclava.
Bug: 217734059
Test: m docs
Change-Id: I8997e47a497e1366247e8354be492805f300a16e
2023-10-03 12:15:19 +00:00
Jihoon Kang
c831389625
Revert^2 "Add flagged api hide conditional to droidstubs"
...
This reverts commit 1180919dda
.
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 && m TARGET_PRODUCT=sdk TARGET_RELEASE=trunk_food nothing and inspect ninja command for generating stubs and verify the flag is not included
Bug: 299570421
Change-Id: I4967376c0236bad729398af80fa59b48dbab5f21
2023-10-03 01:04:00 +00:00
Thiébaud Weksteen
9e0a9d859a
Merge changes from topic "linter_integration_tests" into main am: 77b232da24
am: 11e2cee9a6
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2769019
Change-Id: Id42122ad6f40e317cec4a05e0989f15197d22d0b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-10-02 23:59:43 +00:00
Thiébaud Weksteen
77b232da24
Merge changes from topic "linter_integration_tests" into main
...
* changes:
Add .lint tagged output to Java modules
Add lint.suppress_exit_code attribute
2023-10-02 23:26:39 +00:00
Yu Liu
f2b94010c8
Convert java_aconfig_library to bazel.
...
Bug: 297357579
Test: Unit test and AconfigJavaHostTest
Change-Id: Icf944cc0b2a7382107923d49b2d2ff0eb4113638
2023-10-02 15:04:19 -07:00
Thiébaud Weksteen
d054436434
Add .lint tagged output to Java modules
...
The linter output can be referenced in other modules for further
processing.
Bug: 302400088
Test: m nothing
Change-Id: I1809b70d8d98ced5d8f3d5f068c6639c782ebebc
2023-10-02 10:12:30 +11:00
Treehugger Robot
ad0a6f614f
Merge "Delete temporary files after d8 and r8 rules" into main am: 956f79c5d4
am: 737cf4dc67
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2768187
Change-Id: I0605811c5d0e17a4b8d4e69f9502869924f6ef7a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-09-29 14:35:42 +00:00
Treehugger Robot
956f79c5d4
Merge "Delete temporary files after d8 and r8 rules" into main
2023-09-29 13:27:57 +00:00
Colin Cross
56e2840a57
Delete temporary files after d8 and r8 rules
...
Delete files created within the d8 and r8 rules that are not considered
output files by ninja. This should reduce disk space usage without
affecting incremental build performance.
Bug: 302573555
Test: m checkbuild
Change-Id: Ifea86888c2f385415735ade7d80cf315bc4d057e
2023-09-28 17:43:35 -07:00
Thiébaud Weksteen
9c0dff9ae5
Add lint.suppress_exit_code attribute
...
The Android lint --exitcode parameter can be skipped using
ANDROID_LINT_SUPPRESS_EXIT_CODE. Expose a similar attribute to Java
modules to ignore the exit code.
This is useful for integration testing. It is possible to build
libraries that report an error when linted. Othewise, such module would
break the checkbuild target.
Bug: 302400088
Test: m nothing
Change-Id: I372c42184f40d25753a688c380c0c63e9758ca00
2023-09-29 10:24:13 +10:00
Anton Hansson
3efbb3649e
Merge "Make the srcjar for bcp available in OutputFiles" into main am: 0843b79d8c
am: 4e34213372
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2760367
Change-Id: Ifdcedf2168b38559e2c5973bbacb5ad3ae38dd3e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-09-28 18:28:58 +00:00
Anton Hansson
f7931b390a
Merge "Add srcjar output for platform_bootclasspath" into main am: c38757d0c0
am: 10d91d7107
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2757569
Change-Id: I6ebb3f0be38af38f2f862593a3f185579d231d7d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-09-28 18:28:50 +00:00
Anton Hansson
4a1fdf1964
Merge "Collect transitive source files for java modules" into main am: 9231132099
am: ea95719555
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2757568
Change-Id: Idad894c8cf621d172f8dc6f9504064de379d0bec
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-09-28 18:28:40 +00:00
Zi Wang
965367f3e0
Merge "Always drop deps from android_library with no srcs" into main am: 2201343fce
am: 50225c86b6
...
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2765453
Change-Id: I1e4500e867959ceae0e96498fa6270772513befa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com >
2023-09-28 18:27:58 +00:00
Anton Hansson
0843b79d8c
Merge "Make the srcjar for bcp available in OutputFiles" into main
2023-09-28 17:09:50 +00:00