Dear android-building team,
    Hello, I am a personal developer focus on AOSP.
    I am getting stuck in how to add shared libraries dependence to art on 
Android Q.

I want to add libcutils.so and libprocessgroup.so to libart================
diff --git a/compiler/Android.bp b/compiler/Android.bp
old mode 100644
new mode 100755
index 52bd89f..b0e2981
--- a/compiler/Android.bp
+++ b/compiler/Android.bp
@@ -174,6 +174,10 @@ art_cc_defaults {
     generated_sources: ["art_compiler_operator_srcs"],
     shared_libs: [
         "libbase",
+        "libcutils",
+        "libprocessgroup",
     ],
     include_dirs: ["art/disassembler"],
     header_libs: [
diff --git a/runtime/Android.bp b/runtime/Android.bp
old mode 100644
new mode 100755
index cb675f9..e777dda
--- a/runtime/Android.bp
+++ b/runtime/Android.bp
@@ -398,6 +398,10 @@ libart_cc_defaults {
         "libnativeloader",
         "libbacktrace",
         "liblog",
+        "libcutils",
+        "libprocessgroup",
         // For common macros.
         "libbase",
     ],
================================================================

then get these build errors.===========================================
FAILED: 
out/soong/.intermediates/art/build/apex/art-check-debug-apex-gen/gen/art-check-debug-apex-gen.dummy
out/soong/host/linux-x86/bin/sbox --sandbox-path out/soong/.temp 
--output-root 
out/soong/.intermediates/art/build/apex/art-check-debug-apex-gen/gen -c 
'out/soong/host/linux-x86/bin/art-apex-tester --debugfs 
out/soong/host/linux-x86/bin/debugfs --tmpdir __SBOX_OUT_DIR__ --debug 
out/soong/.intermediates/art/build/apex/com.android.runtime.debug/android_common_com.android.runtime.debug/com.android.runtime.debug.apex
 
&& touch __SBOX_OUT_FILES__' 
 __SBOX_OUT_DIR__/art-check-debug-apex-gen.dummy
--bitness=auto, trying to autodetect. This may be incorrect!
  Detected multilib
Unexpected file 'lib/libcutils.so'
Unexpected file 'lib/libprocessgroup.so'
Unexpected file 'lib64/libcutils.so'
Unexpected file 'lib64/libprocessgroup.so'
No superfluous libraries checker FAILED
  ================================================================ 

 By looking up the root casue of this error, I find out 
*art/build/apex/art_apex_test.py* doesn't allow superfluous libraries add 
to *com.android.runtime* apex image.

But with the old way to add shared libraries would alway build those apex 
specific libraries:=====
out/target/product/qssi/obj_arm/SHARED_LIBRARIES/com.android.runtime.debug.libprocessgroup_intermediates
out/target/product/qssi/obj_arm/SHARED_LIBRARIES/com.android.runtime.debug.libcutils_intermediates
================================================================ 

    That is my confusion about how to add shared libraries dependence to 
art on Android Q. Please kindly help me.

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/857e0988-5c06-40ea-8fb5-95be212e1b24%40googlegroups.com.

Reply via email to