platform_build_soong/cc
Jingwen Chen 3952a9039e mixed builds: add cc_test bazel handler, and add adbd_test to staging allowlist.
This will allow the test_suites_{arm64, x86_64} CI targets on
git_master-bazel to build adbd_test with bazel in `m`.

This is currently implemented similar to the cc_binary handler to
hydrate the output path field.

The tradefed config is still currently handled by Soong in
testBinary#install, which is called from both ProcessBazelQueryResponse
and GenerateAndroidBuildActions. We'll move the tradefed config path to
a mixed builds handler when it's ready on the cc_test bazel rule side.

Tested with `atest` with cuttlefish. Since `atest` doesn't have a way to pass
--bazel-mode-staging to its internal call to Soong, so I manually tested
this by adding adbt_test to the prod allowlist, and confirmed that the
installed adbd_test is the same binary as the one in bazel-out.

Test: $ showcommands adbd_test | grep bazel-out | tail -n1

```
/bin/bash -c "rm -f
out/target/product/vsoc_x86_64/data/nativetest64/adbd_test/adbd_test &&
cp -f -d
out/bazel/output/execroot/__main__/bazel-out/android_x86_64_silvermont-opt-ST-59d4124ca041/bin/packages/modules/adb/adbd_test
out/target/product/vsoc_x86_64/data/nativetest64/adbd_test/adbd_test"
```

Test: Add adbd_test to prod allowlist and run 'lunch aosp_cf_x86_64_phone-userdebug; atest adbd_test', all tests pass.
Bug: 258426425
Bug: 261692372
Change-Id: I6be329f39d607af8daa1dc772b23e8dd0247418c
2022-12-15 08:01:44 +00:00
..
config Merge "Add arch variants for Intel Atom CPUs" 2022-12-14 03:32:13 +00:00
libbuildversion Set the dist dir for musl targets of build_version_test 2022-04-28 14:18:59 +00:00
ndk_api_coverage_parser Distinguish # apex and # systemapi symbols 2022-07-19 13:47:19 +09:00
ndkstubgen Add --no-ndk to ndkstubgen 2022-10-05 09:06:49 +09:00
symbolfile Add riscv64. 2022-10-10 15:33:50 +00:00
afdo.go Remove AfdoAdditionalProfileDirs product variable 2022-11-11 03:29:31 +00:00
afdo_test.go Add more afdo testing 2022-12-02 10:40:43 -05:00
Android.bp Enable bp2build for cc modules relying on sysprop 2022-09-19 23:38:33 +00:00
androidmk.go Merge "Allow hwasan variant for vendor_snapshot_static modules" 2022-12-02 00:27:22 +00:00
api_level.go Move checking of minApiForArch for apex into cc 2022-10-07 16:04:50 -07:00
binary.go Convert apex_available (for supported modules) to bazel tags. 2022-12-01 06:25:25 +00:00
binary_sdk_member.go
binary_test.go Add CcUnstrippedInfo provider and use it in mixed builds 2022-10-12 17:36:47 -07:00
bp2build.go Merge changes from topics "bp2build_cc_object_dynamic_deps", "bp2build_cc_prebuilt_object" 2022-12-13 16:25:58 +00:00
builder.go Deprecate ABI reference dumps in gzip 2022-11-30 15:02:18 +08:00
cc.go mixed builds: add cc_test bazel handler, and add adbd_test to staging allowlist. 2022-12-15 08:01:44 +00:00
cc_test.go Add tests verifying link actions for cc libraries 2022-09-30 12:57:00 -04:00
ccdeps.go
cflag_artifacts.go
check.go Add linker_scripts property 2022-05-05 16:36:56 +01:00
cmakelists.go
compdb.go
compiler.go Revert^2 "deletion of clang_cflags & clang_asflags from Soong" 2022-09-14 19:10:51 +00:00
compiler_test.go
coverage.go [coverage] On coverage+hwasan build, disable hwasan global instrumentation 2022-10-12 19:32:48 +00:00
fuzz.go Update sanitize to not modify user properties 2022-11-22 13:14:39 -05:00
gen.go Enable bp2build for cc modules relying on sysprop 2022-09-19 23:38:33 +00:00
gen_test.go Write Soong tests to confirm Sysprop directories 2022-08-29 18:46:50 +00:00
genrule.go soong: add os name to cc_genrule 2022-12-01 20:01:03 +00:00
genrule_test.go Make cc_genrule.srcs configurable. 2022-10-19 12:35:26 -07:00
image.go Reformat build/soong for go 1.19 2022-08-17 10:43:13 -07:00
image_sdk_traits.go
installer.go Fix typo in installer.go 2022-05-05 16:36:56 +01:00
kernel_headers.go
library.go Add bp2build conversion to reference to fdo_profile targets 2022-12-12 12:16:43 -05:00
library_headers.go add APEX transitive dependency validation 2022-12-13 14:32:19 -05:00
library_headers_test.go
library_sdk_member.go Handle multiple linkages in sdk snapshots 2022-05-23 10:51:22 -04:00
library_stub.go Use relaxed check for prebuilt src 2022-12-05 22:27:06 +00:00
library_stub_test.go Rename export_headers of cc_api_variant 2022-12-02 10:31:48 +09:00
library_test.go Add CcUnstrippedInfo provider and use it in mixed builds 2022-10-12 17:36:47 -07:00
linkable.go Specify jnilib partition in Android-<target>.mk 2022-10-04 03:26:05 +00:00
linker.go Fix "--version_script" typo in doc. 2022-12-13 06:53:08 +00:00
llndk_library.go
lto.go Set -fno-emulated-tls for riscv64 2022-10-20 14:31:24 -07:00
lto_test.go Extend lto_test 2022-12-02 10:39:43 -05:00
makevars.go Removed unused GCC references 2022-09-30 19:32:48 -07:00
native_bridge_sdk_trait.go
ndk_abi.go Disable ABI dumping for hwasan builds. 2022-04-19 22:01:43 +00:00
ndk_headers.go Move API providing modules from bp2build to api_bp2build workspace 2022-10-04 17:33:32 +00:00
ndk_library.go Improve error output for missing ABI dumps. 2022-11-29 17:20:16 +00:00
ndk_prebuilt.go
ndk_sysroot.go bp2build for ndk_headers 2022-08-31 19:40:22 +00:00
ndk_test.go Add a property in ndk_library for header contributions 2022-08-30 18:24:40 +00:00
object.go Merge "add APEX transitive dependency validation" 2022-12-14 15:40:47 +00:00
object_test.go Copy cc_object output files to a name that matches the module 2022-09-16 10:34:09 -07:00
OWNERS add ALLOW_LOCAL_TIDY_TRUE and some tests 2022-04-26 13:30:32 -07:00
pgo.go Remove sampling profile support from pgo rule 2022-06-07 15:23:08 +08:00
prebuilt.go Add bp2build support for cc_prebuilt_object 2022-12-09 13:58:58 -08:00
prebuilt_test.go Support mixed building for cc_prebuilt_binary 2022-10-11 18:13:54 +00:00
proto.go add APEX transitive dependency validation 2022-12-13 14:32:19 -05:00
proto_test.go
pylintrc
rs.go
sabi.go
sanitize.go Merge "Remove workaround for -fexceptions and stack MTE" 2022-12-02 00:52:41 +00:00
sanitize_test.go Merge "Add test that shared libs don't propagate ubsan rt" 2022-12-06 21:29:03 +00:00
sdk.go Support NDK variant of cc_api_variant 2022-11-30 16:36:14 +09:00
sdk_test.go
snapshot_prebuilt.go Allow hwasan variant for vendor_snapshot_static modules 2022-11-24 17:51:08 +09:00
snapshot_utils.go Reformat build/soong for go 1.19 2022-08-17 10:43:13 -07:00
stl.go add comments to keep STL code in sync with Bazel 2022-10-14 12:25:13 -04:00
strip.go Revert "Disable stripping for riscv64" 2022-11-11 00:59:14 +00:00
stub_library.go
sysprop.go Enable bp2build for cc modules relying on sysprop 2022-09-19 23:38:33 +00:00
test.go mixed builds: add cc_test bazel handler, and add adbd_test to staging allowlist. 2022-12-15 08:01:44 +00:00
test_data_test.go
testing.go Fix Errorf format string for error 2022-10-06 15:24:11 +00:00
tidy.go export clang-tidy extraArgFlags to Bazel 2022-11-10 14:35:23 -05:00
tidy_test.go Prepare to obsolete -warnings-as-errors in tidy_flags 2022-06-12 20:25:43 -07:00
util.go Delete some unused functions. 2022-04-25 16:00:17 -04:00
vendor_public_library.go Reformat build/soong for go 1.19 2022-08-17 10:43:13 -07:00
vendor_public_library_test.go
vendor_snapshot.go Add overrides support for snapshots 2022-10-04 14:42:02 +09:00
vendor_snapshot_test.go Allow hwasan variant for vendor_snapshot_static modules 2022-11-24 17:51:08 +09:00
vndk.go Remove obsolete notice property. 2022-07-29 17:54:40 +00:00
vndk_prebuilt.go Reformat build/soong for go 1.19 2022-08-17 10:43:13 -07:00