1ifeq ($(BOARD_VENDOR_USE_SENSOR_HAL), sensor_hub) 2# Copyright (C) 2008-2014 The Android Open Source Project 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15 16 17LOCAL_PATH := $(call my-dir) 18 19 20# HAL module implemenation, not prelinked, and stored in 21# hw/<SENSORS_HARDWARE_MODULE_ID>.<ro.hardware.sensor>.so 22# hw/<SENSORS_HARDWARE_MODULE_ID>.<ro.product.board>.so 23include $(CLEAR_VARS) 24 25LOCAL_MODULE := sensors.$(TARGET_BOOTLOADER_BOARD_NAME) 26 27LOCAL_MODULE_RELATIVE_PATH := hw 28 29LOCAL_MODULE_TAGS := optional 30 31LOCAL_MODULE_OWNER := htc 32 33LOCAL_SRC_FILES := \ 34 sensors.cpp \ 35 SensorBase.cpp \ 36 CwMcuSensor.cpp \ 37 InputEventReader.cpp 38 39LOCAL_SHARED_LIBRARIES := liblog libcutils libdl 40 41include $(BUILD_SHARED_LIBRARY) 42endif #($(BOARD_VENDOR_USE_SENSOR_HAL), sensor_hub) 43