summaryrefslogtreecommitdiffstats
path: root/light
diff options
context:
space:
mode:
authorSteven Moreland2017-12-18 15:48:10 -0600
committerSteven Moreland2017-12-18 19:56:10 -0600
commit4025af9e81a2e8f7219b46ef2f01e156112a3f8b (patch)
treeafef72cf7eb3973a9deb67eb64f30d0b0a9aa9ea /light
parentcd619af7bcb8ab53f60e4d3687051e79851e049c (diff)
downloadplatform-hardware-interfaces-4025af9e81a2e8f7219b46ef2f01e156112a3f8b.tar.gz
platform-hardware-interfaces-4025af9e81a2e8f7219b46ef2f01e156112a3f8b.tar.xz
platform-hardware-interfaces-4025af9e81a2e8f7219b46ef2f01e156112a3f8b.zip
Light mk -> bp.
Test: boots Merged-In: I15c4779a7c9eea39fb20746f69800dcf20670275 Change-Id: I963b957491575edbf68727ad4c97b733dceb0149
Diffstat (limited to 'light')
-rw-r--r--light/2.0/default/Android.bp53
-rw-r--r--light/2.0/default/Android.mk48
2 files changed, 53 insertions, 48 deletions
diff --git a/light/2.0/default/Android.bp b/light/2.0/default/Android.bp
new file mode 100644
index 00000000..8d4eca1d
--- /dev/null
+++ b/light/2.0/default/Android.bp
@@ -0,0 +1,53 @@
1// Copyright (C) 2017 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15cc_library_shared {
16 name: "android.hardware.light@2.0-impl",
17 defaults: ["hidl_defaults"],
18 proprietary: true,
19 relative_install_path: "hw",
20 srcs: ["Light.cpp"],
21
22 shared_libs: [
23 "libbase",
24 "liblog",
25 "libhidlbase",
26 "libhidltransport",
27 "libhardware",
28 "libutils",
29 "android.hardware.light@2.0",
30 ],
31
32}
33
34cc_binary {
35 relative_install_path: "hw",
36 defaults: ["hidl_defaults"],
37 proprietary: true,
38 name: "android.hardware.light@2.0-service",
39 init_rc: ["android.hardware.light@2.0-service.rc"],
40 srcs: ["service.cpp"],
41
42 shared_libs: [
43 "liblog",
44 "libbase",
45 "libdl",
46 "libutils",
47 "libhardware",
48 "libhidlbase",
49 "libhidltransport",
50 "android.hardware.light@2.0",
51 ],
52
53} \ No newline at end of file
diff --git a/light/2.0/default/Android.mk b/light/2.0/default/Android.mk
deleted file mode 100644
index da75e1a6..00000000
--- a/light/2.0/default/Android.mk
+++ /dev/null
@@ -1,48 +0,0 @@
1LOCAL_PATH := $(call my-dir)
2
3include $(CLEAR_VARS)
4LOCAL_MODULE := android.hardware.light@2.0-impl
5LOCAL_PROPRIETARY_MODULE := true
6LOCAL_MODULE_RELATIVE_PATH := hw
7LOCAL_SRC_FILES := \
8 Light.cpp \
9
10LOCAL_CFLAGS := -Wall -Werror
11
12LOCAL_SHARED_LIBRARIES := \
13 libhidlbase \
14 libhidltransport \
15 libutils \
16 liblog \
17 libcutils \
18 libhardware \
19 libbase \
20 libcutils \
21 android.hardware.light@2.0 \
22
23include $(BUILD_SHARED_LIBRARY)
24
25include $(CLEAR_VARS)
26LOCAL_MODULE_RELATIVE_PATH := hw
27LOCAL_PROPRIETARY_MODULE := true
28LOCAL_MODULE := android.hardware.light@2.0-service
29LOCAL_INIT_RC := android.hardware.light@2.0-service.rc
30LOCAL_SRC_FILES := \
31 service.cpp \
32
33LOCAL_CFLAGS := -Wall -Werror
34
35LOCAL_SHARED_LIBRARIES := \
36 liblog \
37 libcutils \
38 libdl \
39 libbase \
40 libutils \
41 libhardware \
42
43LOCAL_SHARED_LIBRARIES += \
44 libhidlbase \
45 libhidltransport \
46 android.hardware.light@2.0 \
47
48include $(BUILD_EXECUTABLE)