platform_build_soong/cc
Vinh Tran 395a1e9508 Add shared libs from upstream cc modules to cc_aidl_library targets
In Soong, aidl cc binding code is built with all the libs defined in the cc modules. In Bazel, because cc_aidl_library creates a cc_library_static target with the generated .h and .cpp files, it needs to depend on the libs from the parent cc modules in order to build successfully.

We can also consider including static libs but that requires a larger change to cc_aidl_library macro (e.g. renaming deps to aidl_libraries and preserving deps for static libs to be consistent with cc lirary macros).

This CL only adds shared libs (e.g. (implementation_)dynamic_deps) and ignore static libs for now since they're not needed for the modules currently  allowlisted.

This fix is similar to https://android-review.googlesource.com/c/platform/build/soong/+/2219103/4/android/proto.go#207 for proto.

We can follow-up with adding static libs to cc_aidl_library later if needed.

Bug: 247151591
Test: presubmit is able to build allowlisted modules successfully
Change-Id: I40f14297f8c8f4c2a36b1e972d009824398b59cd
2022-09-21 18:14:31 -04:00
..
config Merge "Revert^2 "Drop dependency on musl_linker_script"" 2022-09-19 23:18:50 +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 Distinguish # apex and # systemapi symbols 2022-07-19 13:47:19 +09:00
symbolfile Distinguish # apex and # systemapi symbols 2022-07-19 13:47:19 +09:00
afdo.go Reformat build/soong for go 1.19 2022-08-17 10:43:13 -07:00
afdo_test.go Add tests for afdo.go 2022-01-26 17:46:33 +08:00
Android.bp Enable bp2build for cc modules relying on sysprop 2022-09-19 23:38:33 +00:00
androidmk.go Define cc_api_headers module 2022-09-01 11:24:35 +09:00
api_level.go
binary.go Convert cc_test targets with bp2build. 2022-09-01 14:59:15 +00:00
binary_sdk_member.go
binary_test.go Fix test compilation error 2022-05-09 19:36:04 +01:00
bp2build.go Add shared libs from upstream cc modules to cc_aidl_library targets 2022-09-21 18:14:31 -04:00
builder.go Merge changes I1270e8d0,I61731a5e 2022-09-01 06:37:20 +00:00
cc.go Delete SyspropMutator (again) 2022-09-15 17:41:58 +00:00
cc_test.go Revert^2 "deletion of clang_cflags & clang_asflags from Soong" 2022-09-14 19:10:51 +00: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 Memory mapped coverage (take 2) 2022-03-04 14:07:53 -08:00
fuzz.go Reformat build/soong for go 1.19 2022-08-17 10:43:13 -07: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 Reformat build/soong for go 1.19 2022-08-17 10:43:13 -07:00
genrule_test.go
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 shared libs from upstream cc modules to cc_aidl_library targets 2022-09-21 18:14:31 -04:00
library_headers.go Reexport whole_static_libs in cc_library_headers 2022-08-18 15:53:00 +00: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 Define cc_api_headers module 2022-09-01 11:24:35 +09:00
library_stub_test.go Define cc_api_headers module 2022-09-01 11:24:35 +09:00
library_test.go Fix transitive whole_static_libs on prebuilt static libraries 2022-02-11 13:51:41 -08:00
linkable.go rust: Allow rust_ffi_shared in jni_libs 2022-06-27 16:00:26 -04:00
linker.go Use LLD for Darwin host binaries 2022-06-24 13:45:32 +00:00
llndk_library.go
lto.go Pass -flto to asflags as well 2022-09-09 01:58:18 +08:00
lto_test.go Add test to verify lto mutators 2022-09-16 12:41:47 -04:00
makevars.go [cleanup] remove unused variable. 2022-09-15 17:00:39 -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 Create api_domain module type and its bp2build converter 2022-09-21 19:49:46 +00:00
ndk_library.go Add a property in ndk_library for header contributions 2022-08-30 18:24:40 +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 Copy cc_object output files to a name that matches the module 2022-09-16 10:34:09 -07: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 Merge "Support prefix_symbols for prebuilt libraries" 2022-08-22 07:44:42 +00:00
prebuilt_test.go Enable Mixed Builds for Prebuilt Library 2022-06-07 20:36:53 +00:00
proto.go Support proto modules with external references. 2022-09-14 13:02:53 -07:00
proto_test.go
pylintrc
rs.go
sabi.go
sanitize.go [memtag-stack] work around stack limit in lld 2022-09-09 14:24:11 -07:00
sanitize_test.go Revert "Revert "[soong] Add memtag-stack sanitizer, switch to li..." 2022-08-31 15:20:25 -07:00
sdk.go
sdk_test.go
snapshot_prebuilt.go Reformat build/soong for go 1.19 2022-08-17 10:43:13 -07:00
snapshot_utils.go Reformat build/soong for go 1.19 2022-08-17 10:43:13 -07:00
stl.go Remove alternative stl names in bp2build 2022-06-27 17:20:17 -04:00
strip.go
stub_library.go
sysprop.go Enable bp2build for cc modules relying on sysprop 2022-09-19 23:38:33 +00:00
test.go bp2build: Convert cc_test.test_options.tags to cc_test.tags 2022-09-16 02:32:03 +00:00
test_data_test.go
testing.go Add a property in ndk_library for header contributions 2022-08-30 18:24:40 +00:00
tidy.go No clang-tidy by default for external and vendor 2022-09-06 13:59:33 -07: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 Reformat build/soong for go 1.19 2022-08-17 10:43:13 -07:00
vendor_snapshot_test.go Fix snapshot symlinks 2022-02-24 10:29:18 +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