libvibrator: Updated to build both static and shared library,
Also added Host Support
Test: Build libvibrator
Bug: 172427267
Change-Id: I2e8e89f8d03a1cd7afe1994a9830ca3467e647c0
diff --git a/libs/vibrator/Android.bp b/libs/vibrator/Android.bp
index e95a080..33ab8ba 100644
--- a/libs/vibrator/Android.bp
+++ b/libs/vibrator/Android.bp
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-cc_library_shared {
+cc_library {
name: "libvibrator",
shared_libs: [
@@ -45,4 +45,11 @@
],
export_include_dirs: ["include"],
+
+ host_supported: true,
+ target: {
+ darwin: {
+ enabled: false,
+ },
+ },
}