summaryrefslogtreecommitdiff
path: root/light/Android.bp
diff options
context:
space:
mode:
authordev-harsh1998 <harshit.india@linaro.org>2018-05-02 17:12:53 +0530
committerIsaac Chen <isaacchen@isaacchen.cn>2018-07-13 00:03:17 +0000
commit9cfa4c0be9451ea33d54e0173b9b4978d7ca9906 (patch)
treea07eda51bceaeea4dfbdcbfe81f2482a2ee5d034 /light/Android.bp
parent5d5c84331b465e5c1428c68ff62dee0cad02bf41 (diff)
wayne: Convert light HAL into a HIDL service
Signed-off-by: dev-harsh1998 <harshit.india@linaro.org>
Diffstat (limited to 'light/Android.bp')
-rw-r--r--light/Android.bp32
1 files changed, 32 insertions, 0 deletions
diff --git a/light/Android.bp b/light/Android.bp
new file mode 100644
index 0000000..a60fcf8
--- /dev/null
+++ b/light/Android.bp
@@ -0,0 +1,32 @@
+//
+// Copyright (C) 2018 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+cc_binary {
+ defaults: ["hidl_defaults"],
+ name: "android.hardware.light@2.0-service.xiaomi_wayne",
+ init_rc: ["android.hardware.light@2.0-service.xiaomi_wayne.rc"],
+ srcs: ["service.cpp", "Light.cpp"],
+ shared_libs: [
+ "libhardware",
+ "libhidlbase",
+ "libhidltransport",
+ "liblog",
+ "libhwbinder",
+ "libutils",
+ "android.hardware.light@2.0",
+ ],
+ relative_install_path : "hw",
+ proprietary: true,
+}