1# Copyright (C) 2018 Knowles Electronics 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. 14ifneq (,$(findstring $(USE_SOUND_TRIGGER_HAL),iaxxx)) 15 16LOCAL_PATH := $(call my-dir) 17 18include $(CLEAR_VARS) 19 20LOCAL_MODULE := sound_trigger.primary.$(TARGET_BOARD_PLATFORM) 21LOCAL_MODULE_RELATIVE_PATH := hw 22LOCAL_SRC_FILES := sound_trigger_hw_iaxxx.c cvq_util.c 23LOCAL_VENDOR_MODULE := true 24LOCAL_C_INCLUDES += external/tinyalsa/include \ 25 $(call include-path-for, audio-route) 26LOCAL_HEADER_LIBRARIES := libhardware_headers 27LOCAL_SHARED_LIBRARIES := liblog \ 28 libcutils \ 29 libtinyalsa \ 30 libaudioroute \ 31 libodsp \ 32 libhardware_legacy 33LOCAL_MODULE_TAGS := optional 34ifneq (,$(findstring $(PLATFORM_VERSION), P)) 35LOCAL_PROPRIETARY_MODULE := true 36LOCAL_CFLAGS += -DANDROID_P 37endif 38 39include $(BUILD_SHARED_LIBRARY) 40 41include $(CLEAR_VARS) 42 43LOCAL_MODULE := adnc_strm.primary.default 44LOCAL_MODULE_RELATIVE_PATH := hw 45LOCAL_VENDOR_MODULE := true 46LOCAL_SRC_FILES := adnc_strm.c 47LOCAL_SHARED_LIBRARIES := liblog \ 48 libcutils \ 49 libtinyalsa \ 50 libtunnel 51LOCAL_MODULE_TAGS := optional 52ifneq (,$(findstring $(PLATFORM_VERSION), P)) 53LOCAL_PROPRIETARY_MODULE := true 54endif 55 56include $(BUILD_SHARED_LIBRARY) 57 58include $(CLEAR_VARS) 59 60LOCAL_MODULE := libtunnel 61LOCAL_VENDOR_MODULE := true 62LOCAL_SRC_FILES := tunnel.c 63LOCAL_SHARED_LIBRARIES := liblog \ 64 libcutils 65 66include $(BUILD_SHARED_LIBRARY) 67 68include $(CLEAR_VARS) 69 70LOCAL_MODULE := libodsp 71LOCAL_VENDOR_MODULE := true 72LOCAL_SRC_FILES := iaxxx_odsp_hw.c 73LOCAL_SHARED_LIBRARIES := liblog \ 74 libcutils 75LOCAL_MODULE_TAGS := optional 76 77include $(BUILD_SHARED_LIBRARY) 78 79include $(CLEAR_VARS) 80 81LOCAL_PRELINK_MODULE := false 82LOCAL_MODULE := tunneling_hal_test 83LOCAL_VENDOR_MODULE := true 84LOCAL_SRC_FILES := tests/tunnel_test.c \ 85 tests/conversion_routines.c 86LOCAL_32_BIT_ONLY := true 87LOCAL_SHARED_LIBRARIES := liblog \ 88 libcutils \ 89 libtunnel 90LOCAL_CFLAGS += -DFILENAME_ASSIGN 91 92include $(BUILD_EXECUTABLE) 93 94include $(CLEAR_VARS) 95 96LOCAL_PRELINK_MODULE := false 97LOCAL_VENDOR_MODULE := true 98LOCAL_MODULE := sensor_param_test 99LOCAL_SRC_FILES := tests/sensor_param_test.c 100LOCAL_32_BIT_ONLY := true 101LOCAL_SHARED_LIBRARIES := liblog \ 102 libutils \ 103 libcutils \ 104 libtinyalsa 105LOCAL_C_INCLUDES += external/tinyalsa/include \ 106 $(LOCAL_PATH)/../hal 107 108include $(BUILD_EXECUTABLE) 109 110include $(CLEAR_VARS) 111LOCAL_MODULE := libosloutils 112LOCAL_SRC_FILES := tests/oslo_sound_model_control.cpp \ 113 tests/oslo_iaxxx_sensor_control.c 114LOCAL_C_INCLUDES += external/tinyalsa/include \ 115 $(call include-path-for, audio-route) 116LOCAL_HEADER_LIBRARIES := libhardware_headers 117LOCAL_SHARED_LIBRARIES := liblog \ 118 libutils \ 119 libcutils \ 120 libtinyalsa \ 121 libhidlbase \ 122 libodsp \ 123 android.hardware.soundtrigger@2.0 124LOCAL_MODULE_TAGS := optional 125LOCAL_PROPRIETARY_MODULE := true 126include $(BUILD_SHARED_LIBRARY) 127 128include $(CLEAR_VARS) 129LOCAL_PRELINK_MODULE := false 130LOCAL_MODULE := oslo_data_injection_test 131LOCAL_SRC_FILES := tests/oslo_data_injection_test.c 132LOCAL_32_BIT_ONLY := true 133LOCAL_HEADER_LIBRARIES := libhardware_headers 134LOCAL_SHARED_LIBRARIES := liblog \ 135 libutils \ 136 libcutils \ 137 libosloutils 138LOCAL_PROPRIETARY_MODULE := true 139include $(BUILD_EXECUTABLE) 140 141include $(CLEAR_VARS) 142LOCAL_PRELINK_MODULE := false 143LOCAL_MODULE := oslo_config_test 144LOCAL_SRC_FILES := tests/oslo_config_test.c 145LOCAL_32_BIT_ONLY := true 146LOCAL_HEADER_LIBRARIES := libhardware_headers 147LOCAL_SHARED_LIBRARIES := liblog \ 148 libutils \ 149 libcutils \ 150 libosloutils 151LOCAL_PROPRIETARY_MODULE := true 152include $(BUILD_EXECUTABLE) 153 154include $(CLEAR_VARS) 155LOCAL_PRELINK_MODULE := false 156LOCAL_MODULE := oslo_get_stats 157LOCAL_SRC_FILES := tests/oslo_get_stats.c 158LOCAL_HEADER_LIBRARIES := libhardware_headers 159LOCAL_SHARED_LIBRARIES := liblog \ 160 libutils \ 161 libcutils \ 162 libosloutils 163LOCAL_PROPRIETARY_MODULE := true 164include $(BUILD_EXECUTABLE) 165 166include $(CLEAR_VARS) 167 168LOCAL_PRELINK_MODULE := false 169LOCAL_MODULE := spi_reliability_test 170LOCAL_SRC_FILES := tests/spi_reliability_test.c 171LOCAL_32_BIT_ONLY := true 172LOCAL_SHARED_LIBRARIES := liblog \ 173 libcutils 174 175include $(BUILD_EXECUTABLE) 176 177include $(CLEAR_VARS) 178 179LOCAL_PRELINK_MODULE := false 180LOCAL_MODULE := oslo_package_test 181LOCAL_SRC_FILES := ./tests/oslo_package_test.c 182LOCAL_32_BIT_ONLY := true 183LOCAL_SHARED_LIBRARIES := liblog \ 184 libcutils \ 185 libtinyalsa 186 187include $(BUILD_EXECUTABLE) 188 189include $(CLEAR_VARS) 190 191LOCAL_PRELINK_MODULE := false 192LOCAL_MODULE := tunneling_hal_test_sensor 193LOCAL_SRC_FILES := tests/tunnel_test_sensor.c 194LOCAL_32_BIT_ONLY := true 195LOCAL_SHARED_LIBRARIES := liblog 196 197include $(BUILD_EXECUTABLE) 198 199include $(CLEAR_VARS) 200 201LOCAL_PRELINK_MODULE := false 202LOCAL_MODULE := odsp_api_test 203LOCAL_VENDOR_MODULE := true 204LOCAL_SRC_FILES := tests/odsp_api_test.c 205LOCAL_C_INCLUDES += ./tests/ 206LOCAL_32_BIT_ONLY := true 207LOCAL_SHARED_LIBRARIES := liblog \ 208 libcutils \ 209 libodsp 210 211include $(BUILD_EXECUTABLE) 212 213include $(CLEAR_VARS) 214 215LOCAL_PRELINK_MODULE := false 216LOCAL_VENDOR_MODULE := true 217LOCAL_MODULE := dump_debug_info 218LOCAL_SRC_FILES := tests/dump_debug_info.c 219LOCAL_32_BIT_ONLY := true 220LOCAL_SHARED_LIBRARIES := liblog 221 222include $(BUILD_EXECUTABLE) 223 224include $(CLEAR_VARS) 225 226LOCAL_PRELINK_MODULE := false 227LOCAL_VENDOR_MODULE := true 228LOCAL_MODULE := crash_event_logger 229LOCAL_SRC_FILES := tests/crash_event_logger.c tests/crash_analyzer.c 230LOCAL_32_BIT_ONLY := true 231LOCAL_SHARED_LIBRARIES := liblog libcutils 232LOCAL_MODULE_TAGS := optional 233 234include $(BUILD_EXECUTABLE) 235 236include $(CLEAR_VARS) 237LOCAL_PRELINK_MODULE := false 238LOCAL_VENDOR_MODULE := true 239LOCAL_MODULE := setparamblk_test 240LOCAL_SRC_FILES := tests/setparamblk_test.c 241LOCAL_32_BIT_ONLY := true 242LOCAL_SHARED_LIBRARIES := libcutils \ 243 libodsp 244 245include $(BUILD_EXECUTABLE) 246 247include $(CLEAR_VARS) 248LOCAL_MODULE := crash_trigger_test 249LOCAL_SRC_FILES := tests/crash_trigger_test.c 250LOCAL_VENDOR_MODULE := true 251LOCAL_C_INCLUDES += $(LOCAL_PATH)/../hal 252LOCAL_32_BIT_ONLY := true 253LOCAL_SHARED_LIBRARIES := liblog libodsp 254 255include $(BUILD_EXECUTABLE) 256 257include $(CLEAR_VARS) 258LOCAL_MODULE := plugin_status_test 259LOCAL_SRC_FILES := tests/plugin_status_test.c 260LOCAL_VENDOR_MODULE := true 261LOCAL_C_INCLUDES += $(LOCAL_PATH)/ 262LOCAL_32_BIT_ONLY := true 263LOCAL_SHARED_LIBRARIES := libcutils libodsp 264 265include $(BUILD_EXECUTABLE) 266 267include $(CLEAR_VARS) 268LOCAL_MODULE := get_pwr_stats 269LOCAL_VENDOR_MODULE := true 270LOCAL_SRC_FILES := tests/get_pwr_stats.c 271LOCAL_C_INCLUDES += $(LOCAL_PATH)/ 272LOCAL_32_BIT_ONLY := true 273LOCAL_SHARED_LIBRARIES := libcutils liblog 274 275include $(BUILD_EXECUTABLE) 276endif 277