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
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
ef1fc04e1a
Merge "Utilize -quiet
flag in java_api_library" into main
2023-09-13 15:57:11 +00:00
Paul Duffin
93961bfbe5
Merge "Replace --api-overloaded-method--order with --format-defaults" into main
2023-09-13 11:57:03 +00:00
Treehugger Robot
132fd39897
Merge "Add -quiet
option in soong_zip" into main
2023-09-13 02:29:02 +00:00
Treehugger Robot
83c0ea6e26
Merge "Use ndk_system STL header library" into main
2023-09-13 00:34:15 +00:00
Zi Wang
c90e1ec784
Merge "Bp2build: handle the case where java_library has only proto srcs" into main
2023-09-13 00:30:39 +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
Jihoon Kang
3730d7e653
Add -quiet
option in soong_zip
...
The quiet option prevents warnings from being printed to the console.
Test: m soong_zip
Bug: 300166930
Change-Id: I4c2c5f16c45c2874a2a2cbb1e3f397124043e472
2023-09-13 00:10:47 +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
Ivan Lozano
d753c2e53c
Merge "rust: Emit frame pointers on 64-bit device targets." into main
2023-09-12 20:53:58 +00:00
Sebastian Pickl
3d2b08fe0d
Merge "Revert "Change symlink_forest to use relative symlinks."" into main
2023-09-12 18:53:47 +00:00
Sebastian Pickl
90355f79bf
Revert "Change symlink_forest to use relative symlinks."
...
Revert submission 2673616-relativesymlinks-fix
Reason for revert: this breaks tests verified with go/abtd https://android-build.googleplex.com/builds/abtd/run/L36000000963001181
Bug: 300122962
Reverted changes: /q/submissionid:2673616-relativesymlinks-fix
Change-Id: I5a97c4fbe4df5727c0604a07137093d0f00c7776
2023-09-12 18:51:39 +00:00
Elliott Hughes
5c12fb922d
Merge "riscv64: enable V." into main
2023-09-12 17:57:50 +00: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
Ivan Lozano
085efff213
rust: Emit frame pointers on 64-bit device targets.
...
Frame pointers can aid in unwinding and reading stack traces.
Bug: 298267402
Test: m rust
Change-Id: I48bf5ef9ffa9912d6af5fc2b7297f250d15718ea
2023-09-12 13:28:37 -04:00
Shikha Panwar
3942df00ec
Merge "Soong support for rollback index." into main
2023-09-12 17:15:59 +00:00
Mark Dacek
4eabebec69
Merge "Change symlink_forest to use relative symlinks." into main
2023-09-12 15:47:42 +00:00
Liz Kammer
7ebb91a449
Merge "Sort do not convert for unconverted deps" into main
2023-09-12 14:39:28 +00:00
Romain Jobredeaux
2195f24ec4
Merge "Re-order android_app bp2build converter logic." into main
2023-09-12 13:56:00 +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
Shikha Panwar
e56c9017c1
Soong support for rollback index.
...
avbtool already supports --rollback_index. Allow soong support as well
to enable images to include it in their targets.
Test: Builds
Test: avbtool info_image on a target built using rule `avb_add_hash_footer`
Bug: 296830692
Change-Id: Id32f30d026b01172c5dadc0698938acb2c2c8e35
2023-09-12 11:42:29 +00:00
MarkDacek
b98b3a429f
Change symlink_forest to use relative symlinks.
...
Also add script to remove the Bazel output base.
This will assist with supporting movable checkouts alongside
mixed builds.
Bug: 259191764
Test: m && (move topic and prepare_moved_top.sh) && m
Test: m && prepare_moved_top.sh && m
Test: build/soong/tests/relative_symlinks_test.sh
Change-Id: I0f53da8d99f752fad496cf3ac61b01f001b7296d
2023-09-12 04:02:23 +00:00
Treehugger Robot
0e3da8162c
Merge "Allowlist packages instead of modules" into main
2023-09-12 01:53:49 +00:00
Treehugger Robot
7db882793b
Merge changes from topic "aidl_interface_hdrs" into main
...
* changes:
export SimpleModuleDoNotConvertBp2build for AIDL
export SetStubsForDynamicDeps for use in AIDL
2023-09-12 01:52:03 +00:00
Jooyung Han
fc7ba26f1c
Merge changes from topics "fix-apex-linkerconfig", "fix-apex-vintf" into main
...
* changes:
apex: validate vintf fragments in vendor APEX
apex: invoke `conv_linker_config validate` as validation
2023-09-12 01:39:07 +00:00
Zi Wang
37aa1729b0
Merge "Allowlist libprotobuf-java-full" into main
2023-09-11 22:50:40 +00:00
Treehugger Robot
e79010c7ca
Merge "Revert "rustc-1.72.0 Build 10752340"" into main
2023-09-11 22:29:04 +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
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
James Farrell
5d4be57cac
Revert "rustc-1.72.0 Build 10752340"
...
Revert submission 2736851-rust-1.72
Reason for revert: Breaks Mac builds
Change-Id: I94a30e61f9f717ad135fbef7ec7241730f583110
2023-09-11 20:01:49 +00:00
Treehugger Robot
d15dcb7158
Merge "rustc-1.72.0 Build 10752340" into main
2023-09-11 18:20:20 +00:00
Treehugger Robot
3d4e1eaa3f
Merge "Remove link to internal doc in Soong AOSP README." into main
2023-09-11 17:41:21 +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
Jingwen Chen
fcf8a46385
Remove link to internal doc in Soong AOSP README.
...
Test: n/a
Change-Id: Ic0a997938a5dc4fbb46f401daa3cb3f6e8c2c54b
2023-09-11 08:24:23 +00:00
Sam Delmerico
130d75b6b3
export SimpleModuleDoNotConvertBp2build for AIDL
...
Bug: 298246873
Change-Id: I06ed7bb8fc1139731a2b48440a91aeb7f383efff
2023-09-10 19:05:54 +00:00
Sam Delmerico
dd6caa739d
export SetStubsForDynamicDeps for use in AIDL
...
Bug: 298249725
Change-Id: Ia93b320783eccf04fef167a26e2efb401c0e4236
2023-09-10 18:15:45 +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
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
Cole Faust
096b7e83bc
Merge "Don't allow tree artifacts in mixed builds" into main
2023-09-08 18:02:29 +00:00
Spandan Das
ff8fb5c6cc
Merge "Write the list of ndk libraries to cc_toolchain/ndk_libs.bzl" into main
2023-09-08 17:11:06 +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
Sam Delmerico
5162ff14fc
Revert "add crate_root property to rust modules"
...
Revert submission 2605644-rulebuilder-ninja-vars
Reason for revert: b/299568218
Reverted changes: /q/submissionid:2605644-rulebuilder-ninja-vars
Change-Id: I17645fcff117909c09a016157235805f0974340b
2023-09-08 16:10:47 +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
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
65942c8467
Do not convert java libraries with core_platform
...
Test: go bp2build tests
Change-Id: I2769c0d589c304caeb24a8ecba38a4a5ee6c63e5
2023-09-08 09:43:57 -04:00