Eric Laurent | b7a11d8 | 2014-04-18 17:40:41 -0700 | [diff] [blame] | 1 | # Copyright 2014 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) |
| 16 | |
| 17 | include $(CLEAR_VARS) |
| 18 | |
Eric Laurent | b7a11d8 | 2014-04-18 17:40:41 -0700 | [diff] [blame] | 19 | ifeq ($(SOUND_TRIGGER_USE_STUB_MODULE), 1) |
Mikhail Naganov | 49ad552 | 2017-04-13 11:00:06 -0700 | [diff] [blame] | 20 | ifneq ($(USE_LEGACY_LOCAL_AUDIO_HAL), true) |
| 21 | $(error Requires building with USE_LEGACY_LOCAL_AUDIO_HAL=true) |
| 22 | endif |
Eric Laurent | b7a11d8 | 2014-04-18 17:40:41 -0700 | [diff] [blame] | 23 | LOCAL_CFLAGS += -DSOUND_TRIGGER_USE_STUB_MODULE |
| 24 | endif |
| 25 | |
| 26 | LOCAL_SRC_FILES:= \ |
| 27 | SoundTriggerHwService.cpp |
| 28 | |
| 29 | LOCAL_SHARED_LIBRARIES:= \ |
Eric Laurent | b7a11d8 | 2014-04-18 17:40:41 -0700 | [diff] [blame] | 30 | liblog \ |
| 31 | libutils \ |
| 32 | libbinder \ |
| 33 | libcutils \ |
| 34 | libhardware \ |
Eric Laurent | df3dc7e | 2014-07-27 18:39:40 -0700 | [diff] [blame] | 35 | libsoundtrigger \ |
Marco Nelissen | 538ec5e | 2016-11-02 13:21:22 -0700 | [diff] [blame] | 36 | libaudioclient \ |
Eric Laurent | 8ba53d8 | 2014-08-01 23:15:05 +0000 | [diff] [blame] | 37 | libserviceutility |
Eric Laurent | b7a11d8 | 2014-04-18 17:40:41 -0700 | [diff] [blame] | 38 | |
Eric Laurent | 7a544b4 | 2016-08-05 19:01:13 -0700 | [diff] [blame] | 39 | |
Mikhail Naganov | 9dc1747 | 2017-01-11 11:15:28 -0800 | [diff] [blame] | 40 | ifeq ($(USE_LEGACY_LOCAL_AUDIO_HAL),true) |
| 41 | # libhardware configuration |
| 42 | LOCAL_SRC_FILES += \ |
| 43 | SoundTriggerHalLegacy.cpp |
| 44 | else |
Eric Laurent | 7a544b4 | 2016-08-05 19:01:13 -0700 | [diff] [blame] | 45 | # Treble configuration |
Eric Laurent | 7a544b4 | 2016-08-05 19:01:13 -0700 | [diff] [blame] | 46 | LOCAL_SRC_FILES += \ |
| 47 | SoundTriggerHalHidl.cpp |
| 48 | |
| 49 | LOCAL_SHARED_LIBRARIES += \ |
Mikhail Naganov | 9dc1747 | 2017-01-11 11:15:28 -0800 | [diff] [blame] | 50 | libhwbinder \ |
| 51 | libhidlbase \ |
| 52 | libhidltransport \ |
| 53 | libbase \ |
Mikhail Naganov | d621ac8 | 2017-01-12 17:17:45 -0800 | [diff] [blame] | 54 | libaudiohal \ |
Mikhail Naganov | 9dc1747 | 2017-01-11 11:15:28 -0800 | [diff] [blame] | 55 | android.hardware.soundtrigger@2.0 \ |
| 56 | android.hardware.audio.common@2.0 |
Eric Laurent | 7a544b4 | 2016-08-05 19:01:13 -0700 | [diff] [blame] | 57 | endif |
| 58 | |
| 59 | |
Eric Laurent | 8ba53d8 | 2014-08-01 23:15:05 +0000 | [diff] [blame] | 60 | LOCAL_C_INCLUDES += \ |
YOUNG HO CHA | 2ee7aab | 2017-05-25 23:16:51 +0900 | [diff] [blame] | 61 | frameworks/av/services/audioflinger |
Eric Laurent | b7a11d8 | 2014-04-18 17:40:41 -0700 | [diff] [blame] | 62 | |
Andy Hung | 8fa2697 | 2016-03-03 13:19:27 -0800 | [diff] [blame] | 63 | LOCAL_MULTILIB := $(AUDIOSERVER_MULTILIB) |
| 64 | |
Eric Laurent | 7a544b4 | 2016-08-05 19:01:13 -0700 | [diff] [blame] | 65 | LOCAL_CFLAGS += -Wall -Werror |
Glenn Kasten | fcddb0b | 2016-07-08 17:19:25 -0700 | [diff] [blame] | 66 | |
Eric Laurent | b7a11d8 | 2014-04-18 17:40:41 -0700 | [diff] [blame] | 67 | LOCAL_MODULE:= libsoundtriggerservice |
| 68 | |
| 69 | include $(BUILD_SHARED_LIBRARY) |