OSDN Git Service

Fix libdexfile dependencies to avoid direct dependency on libdexfile_external.
authorMartin Stjernholm <mast@google.com>
Wed, 20 Feb 2019 16:58:42 +0000 (16:58 +0000)
committerMartin Stjernholm <mast@google.com>
Sun, 24 Feb 2019 22:04:27 +0000 (22:04 +0000)
It should be dlopen'ed lazily by libdexfile_support now.

Test: mmma system/extras/simpleperf
Test: atest simpleperf_unit_test
  (1 failure in cpu_offline test, but that happens even without this CL)
Bug: 124827589
Bug: 123186083
Change-Id: Ibeb37b130f0081965b986622794f60ec75cd2e17

simpleperf/Android.bp

index 536bc9a..096f7bf 100644 (file)
@@ -99,8 +99,7 @@ cc_defaults {
     name: "libsimpleperf_dex_read_static_reqs_defaults",
     defaults: ["libdexfile_static_defaults"],
     static_libs: [
-        "libdexfile_external",
-        "libdexfile_support",
+        "libdexfile_support_static",
     ],
     header_libs: ["libdexfile_external_headers"],
     export_header_lib_headers: ["libdexfile_external_headers"],
@@ -165,9 +164,7 @@ cc_defaults {
         linux: {
             static_libs: [
                 "libunwindstack",
-                "libdexfile_support",
-                "libdexfile_external",
-                "libdexfile",
+                "libdexfile_support_static",
                 "libcutils",
                 "libprocinfo",
                 "libevent",
@@ -209,7 +206,6 @@ cc_defaults {
         linux: {
             shared_libs: [
                 "libcutils",
-                "libdexfile_external",
                 "libdexfile_support",
                 "libevent",
                 "libprocinfo",