OSDN Git Service

93f7ad080b65f472488da53b9de1cb8314762b4e
[android-x86/hardware-interfaces.git] / audio / 2.0 / default / Android.mk
1 #
2 # Copyright (C) 2016 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
17 LOCAL_PATH := $(call my-dir)
18
19 include $(CLEAR_VARS)
20 LOCAL_MODULE := android.hardware.audio@2.0-impl
21 LOCAL_MODULE_RELATIVE_PATH := hw
22 LOCAL_PROPRIETARY_MODULE := true
23 LOCAL_SRC_FILES := \
24     Conversions.cpp \
25     Device.cpp \
26     DevicesFactory.cpp \
27     ParametersUtil.cpp \
28     PrimaryDevice.cpp \
29     Stream.cpp \
30     StreamIn.cpp \
31     StreamOut.cpp \
32
33 LOCAL_SHARED_LIBRARIES := \
34     libbase \
35     libcutils \
36     libfmq \
37     libhardware \
38     libhidlbase \
39     libhidltransport \
40     liblog \
41     libutils \
42     android.hardware.audio@2.0 \
43     android.hardware.audio.common@2.0 \
44     android.hardware.audio.common@2.0-util \
45
46 LOCAL_WHOLE_STATIC_LIBRARIES := libmedia_helper
47
48 include $(BUILD_SHARED_LIBRARY)
49
50 #
51 # Service
52 #
53
54 include $(CLEAR_VARS)
55 LOCAL_MODULE := android.hardware.audio@2.0-service
56 LOCAL_INIT_RC := android.hardware.audio@2.0-service.rc
57 LOCAL_MODULE_RELATIVE_PATH := hw
58 LOCAL_PROPRIETARY_MODULE := true
59 LOCAL_SRC_FILES := \
60     service.cpp
61
62 LOCAL_SHARED_LIBRARIES := \
63     libhidlbase \
64     libhidltransport \
65     liblog \
66     libutils \
67     libhardware \
68     android.hardware.audio@2.0 \
69     android.hardware.audio.common@2.0 \
70     android.hardware.audio.effect@2.0 \
71     android.hardware.soundtrigger@2.0 \
72     android.hardware.broadcastradio@1.0 \
73     android.hardware.broadcastradio@1.1
74
75 ifeq ($(strip $(AUDIOSERVER_MULTILIB)),)
76 LOCAL_MULTILIB := 32
77 else
78 LOCAL_MULTILIB := $(AUDIOSERVER_MULTILIB)
79 endif
80
81 ifeq ($(TARGET_USES_BCRADIO_FUTURE_FEATURES),true)
82 LOCAL_CFLAGS += -DTARGET_USES_BCRADIO_FUTURE_FEATURES
83 endif
84
85 include $(BUILD_EXECUTABLE)