summaryrefslogtreecommitdiffstats
path: root/sysfs/Android.bp
diff options
context:
space:
mode:
Diffstat (limited to 'sysfs/Android.bp')
-rw-r--r--sysfs/Android.bp35
1 files changed, 21 insertions, 14 deletions
diff --git a/sysfs/Android.bp b/sysfs/Android.bp
index 8070a02..fdae48e 100644
--- a/sysfs/Android.bp
+++ b/sysfs/Android.bp
@@ -12,21 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-cc_library_shared {
- // FIXME: this should only be -impl for a passthrough hal.
- // In most cases, to convert this to a binderized implementation, you should:
- // - change '-impl' to '-service' here and make it a cc_binary instead of a
- // cc_library_shared.
- // - add a *.rc file for this module.
- // - delete HIDL_FETCH_I* functions.
- // - call configureRpcThreadpool and registerAsService on the instance.
- // You may also want to append '-impl/-service' with a specific identifier like
- // '-vendor' or '-<hardware identifier>' etc to distinguish it.
- name: "vendor.lineage.livedisplay@2.0-impl",
+cc_defaults {
+ name: "livedisplay_sysfs_defaults",
+ defaults: ["hidl_defaults"],
relative_install_path: "hw",
- // FIXME: this should be 'vendor: true' for modules that will eventually be
- // on AOSP.
- proprietary: true,
srcs: [
"AdaptiveBacklight.cpp",
"AutoContrast.cpp",
@@ -34,11 +23,29 @@ cc_library_shared {
"DisplayColorCalibration.cpp",
"ReadingEnhancement.cpp",
"SunlightEnhancement.cpp",
+ "service.cpp",
],
shared_libs: [
+ "libbase",
+ "libbinder",
+ "libcutils",
"libhidlbase",
"libhidltransport",
"libutils",
"vendor.lineage.livedisplay@2.0",
],
}
+
+cc_binary {
+ name: "lineage.livedisplay@2.0-service-sysfs",
+ init_rc: ["lineage.livedisplay@2.0-service-sysfs.rc"],
+ defaults: ["livedisplay_sysfs_defaults"],
+ cflags: ["-DLIVES_IN_SYSTEM"],
+}
+
+cc_binary {
+ name: "vendor.lineage.livedisplay@2.0-service-sysfs",
+ init_rc: ["vendor.lineage.livedisplay@2.0-service-sysfs.rc"],
+ defaults: ["livedisplay_sysfs_defaults"],
+ vendor: true,
+}