link libjsoncpp as whole_static_lib when aidl is statically linked

aidl_interface includes libjsoncpp when turn on gen_log option.

when aidl_interface lib is statically imported by other module,
the module has to link libjsoncpp regardless of usage of the library.

so link libjsoncpp as whole_static_lib in this case.

https://android-review.googlesource.com/c/platform/system/netd/+/853730/11/Android.bp#35

Bug: 124871490
Test: m -j
Change-Id: Ia18b8d6c7a3a94ac10d7efde4383097d480d74a6
2 files changed