Ivan Podogov | 42c348b | 2017-06-23 13:43:29 +0100 | [diff] [blame] | 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 | |
| 15 | LOCAL_PATH := $(call my-dir) |
Ivan Podogov | 2198da5 | 2017-06-29 10:48:22 +0100 | [diff] [blame] | 16 | |
| 17 | ifeq ($(TARGET_USES_NANOHUB_SENSORHAL), true) |
| 18 | |
Ivan Podogov | 42c348b | 2017-06-23 13:43:29 +0100 | [diff] [blame] | 19 | COMMON_CFLAGS := -Wall -Werror -Wextra |
| 20 | |
| 21 | ################################################################################ |
Ivan Podogov | e943177 | 2017-06-29 13:25:06 +0100 | [diff] [blame] | 22 | ifeq ($(NANOHUB_SENSORHAL_LEFTY_IMPL_ENABLED), true) |
Ivan Podogov | 42c348b | 2017-06-23 13:43:29 +0100 | [diff] [blame] | 23 | |
| 24 | include $(CLEAR_VARS) |
| 25 | |
| 26 | LOCAL_MODULE := vendor.google_clockwork.lefty@1.0-impl.nanohub |
Bob Badour | e1f2fd4 | 2021-02-12 20:48:36 -0800 | [diff] [blame] | 27 | LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 |
| 28 | LOCAL_LICENSE_CONDITIONS := notice |
Ivan Podogov | 42c348b | 2017-06-23 13:43:29 +0100 | [diff] [blame] | 29 | |
| 30 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 31 | LOCAL_MODULE_TAGS := optional |
| 32 | LOCAL_MODULE_OWNER := google |
| 33 | LOCAL_PROPRIETARY_MODULE := true |
| 34 | |
| 35 | LOCAL_CFLAGS += $(COMMON_CFLAGS) |
| 36 | |
| 37 | LOCAL_C_INCLUDES += \ |
| 38 | device/google/contexthub/firmware/os/inc \ |
| 39 | device/google/contexthub/sensorhal \ |
| 40 | device/google/contexthub/util/common \ |
| 41 | |
| 42 | LOCAL_SRC_FILES := \ |
| 43 | Lefty.cpp \ |
| 44 | |
| 45 | LOCAL_SHARED_LIBRARIES := \ |
| 46 | vendor.google_clockwork.lefty@1.0 \ |
| 47 | libbase \ |
| 48 | libcutils \ |
| 49 | libhidlbase \ |
Ivan Podogov | 42c348b | 2017-06-23 13:43:29 +0100 | [diff] [blame] | 50 | libhubconnection \ |
| 51 | liblog \ |
| 52 | libutils \ |
| 53 | |
| 54 | include $(BUILD_SHARED_LIBRARY) |
| 55 | |
Ivan Podogov | e943177 | 2017-06-29 13:25:06 +0100 | [diff] [blame] | 56 | endif |
Ivan Podogov | 42c348b | 2017-06-23 13:43:29 +0100 | [diff] [blame] | 57 | ################################################################################ |
Ivan Podogov | e943177 | 2017-06-29 13:25:06 +0100 | [diff] [blame] | 58 | ifeq ($(NANOHUB_SENSORHAL_LEFTY_SERVICE_ENABLED), true) |
Ivan Podogov | 42c348b | 2017-06-23 13:43:29 +0100 | [diff] [blame] | 59 | |
| 60 | include $(CLEAR_VARS) |
| 61 | |
| 62 | LOCAL_MODULE := liblefty_service_nanohub |
Bob Badour | e1f2fd4 | 2021-02-12 20:48:36 -0800 | [diff] [blame] | 63 | LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 |
| 64 | LOCAL_LICENSE_CONDITIONS := notice |
Ivan Podogov | 42c348b | 2017-06-23 13:43:29 +0100 | [diff] [blame] | 65 | |
| 66 | LOCAL_MODULE_TAGS := optional |
| 67 | LOCAL_MODULE_OWNER := google |
| 68 | LOCAL_PROPRIETARY_MODULE := true |
| 69 | |
| 70 | LOCAL_CFLAGS += $(COMMON_CFLAGS) |
| 71 | |
| 72 | LOCAL_C_INCLUDES += \ |
| 73 | device/google/contexthub/firmware/os/inc \ |
| 74 | device/google/contexthub/sensorhal \ |
| 75 | device/google/contexthub/util/common \ |
| 76 | |
| 77 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) |
| 78 | |
| 79 | LOCAL_SRC_FILES := \ |
| 80 | Lefty.cpp \ |
| 81 | lefty_service.cpp \ |
| 82 | |
| 83 | LOCAL_SHARED_LIBRARIES := \ |
| 84 | vendor.google_clockwork.lefty@1.0 \ |
| 85 | libbase \ |
| 86 | libcutils \ |
| 87 | libhidlbase \ |
Ivan Podogov | 42c348b | 2017-06-23 13:43:29 +0100 | [diff] [blame] | 88 | libhubconnection \ |
| 89 | liblog \ |
| 90 | libutils \ |
| 91 | |
| 92 | include $(BUILD_SHARED_LIBRARY) |
Ivan Podogov | 2198da5 | 2017-06-29 10:48:22 +0100 | [diff] [blame] | 93 | |
Ivan Podogov | e943177 | 2017-06-29 13:25:06 +0100 | [diff] [blame] | 94 | endif |
Ivan Podogov | 2198da5 | 2017-06-29 10:48:22 +0100 | [diff] [blame] | 95 | ################################################################################ |
| 96 | |
| 97 | endif |