blob: dee24fba3f5be290b413ac1b60e0dbf6c666bd62 [file] [log] [blame]
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2020 The LineageOS Project
LOCAL_PATH := hardware/samsung/hidl/sensors/1.0
include $(CLEAR_VARS)
LOCAL_MODULE := android.hardware.sensors@1.0-impl.samsung-universal7904
LOCAL_MODULE_TAGS := optional
LOCAL_VENDOR_MODULE := true
LOCAL_MODULE_PATH_32 := $(TARGET_OUT_PRODUCT)/vendor_overlay/29/lib
LOCAL_MODULE_PATH_64 := $(TARGET_OUT_PRODUCT)/vendor_overlay/29/lib64
LOCAL_MODULE_RELATIVE_PATH := hw
LOCAL_SRC_FILES := \
Sensors.cpp
LOCAL_SHARED_LIBRARIES := \
liblog \
libcutils \
libhardware \
libhidlbase \
android.hardware.sensors@1.0
LOCAL_STATIC_LIBRARIES := \
libbase \
libutils \
android.hardware.sensors@1.0-convert \
multihal
LOCAL_POST_INSTALL_CMD := mkdir -p $(LOCAL_MODULE_PATH_32)/hw
LOCAL_POST_INSTALL_CMD += ; mkdir -p $(LOCAL_MODULE_PATH_64)/hw
LOCAL_POST_INSTALL_CMD += ; ln -sf $(LOCAL_MODULE).so $(LOCAL_MODULE_PATH_32)/hw/android.hardware.sensors@1.0-impl.so
LOCAL_POST_INSTALL_CMD += ; ln -sf $(LOCAL_MODULE).so $(LOCAL_MODULE_PATH_64)/hw/android.hardware.sensors@1.0-impl.so
LOCAL_REQUIRED_MODULES := android.hardware.sensors@1.0-impl_vndk-30.samsung-universal7904
include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := android.hardware.sensors@1.0-impl_vndk-30.samsung-universal7904
LOCAL_MODULE_TAGS := optional
LOCAL_VENDOR_MODULE := true
LOCAL_MODULE_PATH_32 := $(TARGET_OUT_PRODUCT)/vendor_overlay/30/lib
LOCAL_MODULE_PATH_64 := $(TARGET_OUT_PRODUCT)/vendor_overlay/30/lib64
LOCAL_MODULE_RELATIVE_PATH := hw
LOCAL_SRC_FILES := \
Sensors.cpp
LOCAL_SHARED_LIBRARIES := \
liblog \
libcutils \
libhardware \
libhidlbase \
android.hardware.sensors@1.0
LOCAL_STATIC_LIBRARIES := \
libbase \
libutils \
android.hardware.sensors@1.0-convert \
multihal
LOCAL_POST_INSTALL_CMD := mkdir -p $(LOCAL_MODULE_PATH_32)/hw
LOCAL_POST_INSTALL_CMD += ; mkdir -p $(LOCAL_MODULE_PATH_64)/hw
LOCAL_POST_INSTALL_CMD += ; ln -sf $(LOCAL_MODULE).so $(LOCAL_MODULE_PATH_32)/hw/android.hardware.sensors@1.0-impl.so
LOCAL_POST_INSTALL_CMD += ; ln -sf $(LOCAL_MODULE).so $(LOCAL_MODULE_PATH_64)/hw/android.hardware.sensors@1.0-impl.so
include $(BUILD_SHARED_LIBRARY)