Display: Create the vendor copy of vendor.display.config@1.0

Create separate copies for vendor and system for accessing
hidl extension libraries.

Change-Id: I5885bf5ee3e5cae0afc742f369b111c7b1d1aa9b
diff --git a/display/config/1.0/Android.bp b/display/config/1.0/Android.bp
index 6921126..a74bb0d 100644
--- a/display/config/1.0/Android.bp
+++ b/display/config/1.0/Android.bp
@@ -10,7 +10,7 @@
 genrule {
     name: "vendor.display.config@1.0_genc++",
     tools: ["hidl-gen"],
-    cmd: "$(location hidl-gen) -o $(genDir) -Lc++-sources -randroid.hidl:system/libhidl/transport -rvendor:vendor/qcom/opensource/interfaces vendor.display.config@1.0",
+    cmd: "$(location hidl-gen) -o $(genDir) -Lc++-sources -randroid.hidl:system/libhidl/transport -rvendor:vendor/qcom/opensource/interfaces/ vendor.display.config@1.0",
     srcs: [
         ":vendor.display.config@1.0_hal",
     ],
@@ -22,7 +22,7 @@
 genrule {
     name: "vendor.display.config@1.0_genc++_headers",
     tools: ["hidl-gen"],
-    cmd: "$(location hidl-gen) -o $(genDir) -Lc++-headers -randroid.hidl:system/libhidl/transport -rvendor:vendor/qcom/opensource/interfaces vendor.display.config@1.0",
+    cmd: "$(location hidl-gen) -o $(genDir) -Lc++-headers -randroid.hidl:system/libhidl/transport -rvendor:vendor/qcom/opensource/interfaces/ vendor.display.config@1.0",
     srcs: [
         ":vendor.display.config@1.0_hal",
     ],
@@ -37,6 +37,32 @@
 
 cc_library_shared {
     name: "vendor.display.config@1.0",
+    defaults: ["hidl-module-defaults"],
+    generated_sources: ["vendor.display.config@1.0_genc++"],
+    generated_headers: ["vendor.display.config@1.0_genc++_headers"],
+    export_generated_headers: ["vendor.display.config@1.0_genc++_headers"],
+    vendor_available: true,
+    shared_libs: [
+        "libhidlbase",
+        "libhidltransport",
+        "libhwbinder",
+        "liblog",
+        "libutils",
+        "libcutils",
+        "android.hidl.base@1.0",
+    ],
+    export_shared_lib_headers: [
+        "libhidlbase",
+        "libhidltransport",
+        "libhwbinder",
+        "libutils",
+        "android.hidl.base@1.0",
+    ],
+}
+
+cc_library_shared {
+    name: "vendor.display.config@1.0_vendor",
+    defaults: ["hidl-module-defaults"],
     generated_sources: ["vendor.display.config@1.0_genc++"],
     generated_headers: ["vendor.display.config@1.0_genc++_headers"],
     export_generated_headers: ["vendor.display.config@1.0_genc++_headers"],