Mark RS libs as VNDK-SP

The RS libs are used by RS HAL implementations which are Same-process
HALs. In order to make the RS libs available to the HALs, they are
marked as VNDK-SP.

Bug: 64425518
Bug: 64395154
Test: BOARD_VNDK_VERSION=current m -j libRSDriver.vendor
Test: BOARD_VNDK_VERSION=current m -j libRS_internal.vendor
Test: BOARD_VNDK_VERSION=current m -j libRSCpuRef.vendor

Merged-In: Ia5c9d59b98b6a910a8cb76be1e823da542ca043a
Change-Id: Ia5c9d59b98b6a910a8cb76be1e823da542ca043a
(cherry picked from commit 6fa614124bdf4b5b5cfe8bbd51ee95a6d4dadbb6)
diff --git a/cpp/Android.bp b/cpp/Android.bp
index c3b44ed..fabb9cb 100644
--- a/cpp/Android.bp
+++ b/cpp/Android.bp
@@ -1,9 +1,13 @@
 cc_library_static {
     name: "libRSDispatch",
+    vendor_available: true,
 
     srcs: ["rsDispatch.cpp"],
 
-    include_dirs: ["frameworks/rs"],
+    include_dirs: [
+        "frameworks/rs",
+        "libnativehelper/include_jni",
+    ],
 
     cflags: [
         "-Wall",
@@ -13,8 +17,9 @@
         "-DRS_COMPATIBILITY_LIB",
     ],
 
+
     sdk_version: "9",
-    shared_libs: ["libdl"],
+    shared_libs: ["libdl", "liblog"],
     // Used in librsjni, which is built as NDK code => no ASan.
     sanitize: {
         never: true,