blob: e5e0c9c8e64f22e3b677dad0aa8c7363001d77ec [file] [log] [blame]
Mike Lockwood07908322013-10-17 08:05:00 -07001#
2# Copyright (C) 2013 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
Mike Lockwood07908322013-10-17 08:05:00 -070017LOCAL_PATH := $(call my-dir)
18
Aaron Whyteab6ec382013-10-22 17:17:17 -070019ifeq ($(USE_SENSOR_MULTI_HAL),true)
Peng Xuf14a5502017-04-27 15:45:44 -070020ifneq ($(PRODUCT_FULL_TREBLE),true)
Aaron Whyteab6ec382013-10-22 17:17:17 -070021
Mike Lockwood07908322013-10-17 08:05:00 -070022include $(CLEAR_VARS)
23
Nick Vaccaroa889c092016-04-15 10:17:07 -070024LOCAL_MODULE := sensors.$(TARGET_DEVICE)
Mike Lockwood07908322013-10-17 08:05:00 -070025
Satya Durga Srinivasu Prabhala1fd36182015-01-20 18:53:35 -080026LOCAL_MODULE_RELATIVE_PATH := hw
Po-Chien Hsuehc535b2f2017-03-02 15:44:24 +080027LOCAL_PROPRIETARY_MODULE := true
Mike Lockwood07908322013-10-17 08:05:00 -070028
29LOCAL_CFLAGS := -DLOG_TAG=\"MultiHal\"
Aaron Whyteab6ec382013-10-22 17:17:17 -070030
31LOCAL_SRC_FILES := \
32 multihal.cpp \
Aaron Whyteab6ec382013-10-22 17:17:17 -070033 SensorEventQueue.cpp \
Mike Lockwood07908322013-10-17 08:05:00 -070034
35LOCAL_SHARED_LIBRARIES := \
Mike Lockwood07908322013-10-17 08:05:00 -070036 libcutils \
37 libdl \
Aaron Whyteab6ec382013-10-22 17:17:17 -070038 liblog \
Mike Lockwood07908322013-10-17 08:05:00 -070039 libutils \
Mike Lockwood07908322013-10-17 08:05:00 -070040
Mike Lockwood07908322013-10-17 08:05:00 -070041LOCAL_STRIP_MODULE := false
42
Mike Lockwood07908322013-10-17 08:05:00 -070043include $(BUILD_SHARED_LIBRARY)
44
Peng Xuf14a5502017-04-27 15:45:44 -070045else
46$(warning Treble enabled device have built-in sensor multihal support. \
47 USE_SENSOR_MULTI_HAL should not be set.)
48endif # PRODUCT_FULL_TREBLE
Mike Lockwood07908322013-10-17 08:05:00 -070049endif # USE_SENSOR_MULTI_HAL
Aaron Whyteab6ec382013-10-22 17:17:17 -070050
Brian Carlstrom8e300972014-06-30 15:15:45 -070051include $(call all-makefiles-under, $(LOCAL_PATH))