OSDN Git Service

rust: Refactor modules for static_lib propagation.
authorIvan Lozano <ivanlozano@google.com>
Thu, 4 Feb 2021 15:06:19 +0000 (10:06 -0500)
committerIvan Lozano <ivanlozano@google.com>
Thu, 4 Feb 2021 15:17:37 +0000 (10:17 -0500)
rust_library modules now bundle their static lib dependencies. As a
result, many of these static_lib listings are no longer necessary.

This CL also includes libcxxbridge05 in libbt_common_sys_prop_cxx and
libbt_shim_ffi in libbluetooth_rust_interop, both static libraries,
to avoid having to add these to dependencies.

Test: mma
Bug: 175886967
Bug: 179122837
Change-Id: I77c53e62d19bcda7a8ace81d7c576eed383b7c87

build/Android.bp
gd/Android.bp
gd/rust/common/Android.bp
gd/rust/shim/Android.bp
main/Android.bp
stack/test/fuzzers/Android.bp
test/headless/Android.bp

index d19634c..fb50d41 100644 (file)
@@ -83,7 +83,6 @@ fluoride_defaults {
         "libbluetooth_rust_interop",
         "liblog",
         "libcutils",
-        "libbt_shim_ffi",
     ],
     cpp_std: "c++17",
     sanitize: {
@@ -106,7 +105,6 @@ fluoride_defaults {
         "libbluetooth_gd",
         "libbluetooth_rust_interop",
         "libbt_shim_ffi",
-        "libcxxbridge05",
     ],
     target: {
         darwin: {
@@ -120,10 +118,6 @@ fluoride_defaults {
                 "libutils",
                 "libcutils",
             ],
-            static_libs: [
-                "libbt_common_sys_prop_cxx",
-                "libbt_hidl_hal_cxx",
-            ],
         },
     },
 }
index 5919ad5..d2daa7d 100644 (file)
@@ -130,10 +130,6 @@ cc_defaults {
                 "libutils",
                 "libcutils",
             ],
-            static_libs: [
-                "libbt_common_sys_prop_cxx",
-                "libbt_hidl_hal_cxx",
-            ],
         },
     },
     srcs: [
@@ -169,8 +165,6 @@ cc_defaults {
     static_libs: [
         "libbluetooth-protos",
         "libbluetooth_rust_interop",
-        "libbt_shim_ffi",
-        "libcxxbridge05",
     ],
     export_static_lib_headers: [ "libbluetooth_rust_interop" ],
 }
@@ -232,8 +226,6 @@ cc_binary {
         "libbluetooth_gd",
         "libflatbuffers-cpp",
         "libbluetooth_rust_interop",
-        "libbt_shim_ffi",
-        "libcxxbridge05",
     ],
     shared_libs: [
         "libbacktrace",
@@ -252,10 +244,6 @@ cc_binary {
                 "libutils",
                 "libcutils",
             ],
-            static_libs: [
-                "libbt_common_sys_prop_cxx",
-                "libbt_hidl_hal_cxx",
-            ],
         },
         host: {
             required: [
@@ -303,10 +291,6 @@ cc_test {
                 "libutils",
                 "libcutils",
             ],
-            static_libs: [
-                "libbt_common_sys_prop_cxx",
-                "libbt_hidl_hal_cxx",
-            ],
         },
     },
     srcs: [
@@ -341,8 +325,6 @@ cc_test {
         "libflatbuffers-cpp",
         "libgmock",
         "libbluetooth_rust_interop",
-        "libbt_shim_ffi",
-        "libcxxbridge05",
     ],
     shared_libs: [
         "libchrome",
@@ -380,8 +362,6 @@ cc_test {
     },
     static_libs: [
         "libbluetooth_rust_interop",
-        "libbt_shim_ffi",
-        "libcxxbridge05",
         "libchrome",
     ],
     shared_libs: [
@@ -396,10 +376,6 @@ cc_test {
                 "libutils",
                 "libcutils",
             ],
-            static_libs: [
-                "libbt_common_sys_prop_cxx",
-                "libbt_hidl_hal_cxx",
-            ],
         },
     },
 }
@@ -418,8 +394,6 @@ cc_defaults {
         "libgmock",
         "libgtest",
         "libbluetooth_rust_interop",
-        "libbt_shim_ffi",
-        "libcxxbridge05",
     ],
     host_supported: true,
     generated_headers: [
@@ -443,10 +417,6 @@ cc_defaults {
                 "libhidlbase",
                 "libutils",
             ],
-            static_libs: [
-                "libbt_common_sys_prop_cxx",
-                "libbt_hidl_hal_cxx",
-            ],
         },
     },
 }
index 40e3da2..fb216b3 100644 (file)
@@ -70,4 +70,5 @@ cc_library_static {
     shared_libs: [
         "libcutils",
     ],
+    whole_static_libs: ["libcxxbridge05"],
 }
index e315ea7..19b96da 100644 (file)
@@ -83,7 +83,7 @@ cc_library_static {
     shared_libs: [
         "libchrome",
     ],
-    static_libs: [
+    whole_static_libs: [
         "libbt_shim_ffi",
     ],
 }
index a5a071f..d287b76 100644 (file)
@@ -114,8 +114,6 @@ cc_library_shared {
         "libudrv-uipc",
         "libbluetooth_gd", // Gabeldorsche
         "libbluetooth_rust_interop",
-        "libbt_shim_ffi",
-        "libcxxbridge05",
     ],
     whole_static_libs: [
         "libbt-bta",
index aa2f8a8..4b10b77 100644 (file)
@@ -29,7 +29,6 @@ cc_defaults {
         "libudrv-uipc",
         "libbt-protos-lite",
         "libbluetooth_gd",
-        "libcxxbridge05",
     ],
     shared_libs: [
         "libbinder",
index f7c4bd6..3cb6980 100644 (file)
@@ -44,8 +44,6 @@ cc_test {
         "libudrv-uipc",
         "libz",
         "libbluetooth_rust_interop",
-        "libbt_shim_ffi",
-        "libcxxbridge05",
     ],
     shared_libs: [
         "android.hardware.bluetooth.a2dp@1.0",