Home | History | Annotate | Download | only in service
      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 #
     20 # Service
     21 #
     22 
     23 include $(CLEAR_VARS)
     24 LOCAL_MODULE := android.hardware.audio@2.0-service
     25 LOCAL_INIT_RC := android.hardware.audio@2.0-service.rc
     26 LOCAL_MODULE_RELATIVE_PATH := hw
     27 LOCAL_PROPRIETARY_MODULE := true
     28 LOCAL_SRC_FILES := \
     29     service.cpp
     30 
     31 LOCAL_CFLAGS := -Wall -Werror
     32 
     33 LOCAL_SHARED_LIBRARIES := \
     34     libbinder \
     35     libhidlbase \
     36     libhidltransport \
     37     liblog \
     38     libutils \
     39     libhardware \
     40     android.hardware.audio@2.0 \
     41     android.hardware.audio@4.0 \
     42     android.hardware.audio.common@2.0 \
     43     android.hardware.audio.common@4.0 \
     44     android.hardware.audio.effect@2.0 \
     45     android.hardware.audio.effect@4.0 \
     46     android.hardware.bluetooth.a2dp@1.0 \
     47     android.hardware.soundtrigger@2.0 \
     48     android.hardware.soundtrigger@2.1
     49 
     50 # Can not switch to Android.bp until AUDIOSERVER_MULTILIB
     51 # is deprecated as build config variable are not supported
     52 ifeq ($(strip $(AUDIOSERVER_MULTILIB)),)
     53 LOCAL_MULTILIB := 32
     54 else
     55 LOCAL_MULTILIB := $(AUDIOSERVER_MULTILIB)
     56 endif
     57 
     58 include $(BUILD_EXECUTABLE)
     59