blob: 3e7a7ceb98e2cc8a9b861524b07cf78daa016abd [file] [log] [blame]
Eric Laurentb7a11d82014-04-18 17:40:41 -07001# 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
15LOCAL_PATH:= $(call my-dir)
16
17include $(CLEAR_VARS)
18
Eric Laurentb7a11d82014-04-18 17:40:41 -070019ifeq ($(SOUND_TRIGGER_USE_STUB_MODULE), 1)
20 LOCAL_CFLAGS += -DSOUND_TRIGGER_USE_STUB_MODULE
21endif
22
23LOCAL_SRC_FILES:= \
24 SoundTriggerHwService.cpp
25
26LOCAL_SHARED_LIBRARIES:= \
Eric Laurentb7a11d82014-04-18 17:40:41 -070027 liblog \
28 libutils \
29 libbinder \
30 libcutils \
31 libhardware \
Eric Laurentdf3dc7e2014-07-27 18:39:40 -070032 libsoundtrigger \
Marco Nelissen538ec5e2016-11-02 13:21:22 -070033 libaudioclient \
Eric Laurent8ba53d82014-08-01 23:15:05 +000034 libserviceutility
Eric Laurentb7a11d82014-04-18 17:40:41 -070035
Eric Laurent7a544b42016-08-05 19:01:13 -070036
Mikhail Naganov9dc17472017-01-11 11:15:28 -080037ifeq ($(USE_LEGACY_LOCAL_AUDIO_HAL),true)
38# libhardware configuration
39LOCAL_SRC_FILES += \
40 SoundTriggerHalLegacy.cpp
41else
Eric Laurent7a544b42016-08-05 19:01:13 -070042# Treble configuration
Eric Laurent7a544b42016-08-05 19:01:13 -070043LOCAL_SRC_FILES += \
44 SoundTriggerHalHidl.cpp
45
46LOCAL_SHARED_LIBRARIES += \
Mikhail Naganov9dc17472017-01-11 11:15:28 -080047 libhwbinder \
48 libhidlbase \
49 libhidltransport \
50 libbase \
Mikhail Naganovd621ac82017-01-12 17:17:45 -080051 libaudiohal \
Mikhail Naganov9dc17472017-01-11 11:15:28 -080052 android.hardware.soundtrigger@2.0 \
53 android.hardware.audio.common@2.0
Eric Laurent7a544b42016-08-05 19:01:13 -070054endif
55
56
Eric Laurent8ba53d82014-08-01 23:15:05 +000057LOCAL_C_INCLUDES += \
58 $(TOPDIR)frameworks/av/services/audioflinger
Eric Laurentb7a11d82014-04-18 17:40:41 -070059
Andy Hung8fa26972016-03-03 13:19:27 -080060LOCAL_MULTILIB := $(AUDIOSERVER_MULTILIB)
61
Eric Laurent7a544b42016-08-05 19:01:13 -070062LOCAL_CFLAGS += -Wall -Werror
Glenn Kastenfcddb0b2016-07-08 17:19:25 -070063
Eric Laurentb7a11d82014-04-18 17:40:41 -070064LOCAL_MODULE:= libsoundtriggerservice
65
66include $(BUILD_SHARED_LIBRARY)