blob: c4f7bd3ab029a7db900a8d98c97f60f6e6b2017b [file] [log] [blame]
Martijn Coenen72110162016-08-19 14:28:25 +02001# Copyright (C) 2016 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.
14LOCAL_PATH:= $(call my-dir)
15
16include $(CLEAR_VARS)
17LOCAL_MODULE := libhidl
Andreas Huber0a451282016-08-30 11:27:24 -070018LOCAL_SHARED_LIBRARIES := libbase liblog libutils libhwbinder libcutils
Martijn Coenen72110162016-08-19 14:28:25 +020019LOCAL_EXPORT_SHARED_LIBRARY_HEADERS := libbase libutils
20
21LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
22
23LOCAL_CLANG := true
24LOCAL_SANITIZE := integer
25LOCAL_SRC_FILES := \
Andreas Huber0a451282016-08-30 11:27:24 -070026 HidlSupport.cpp \
27 IServiceManager.cpp \
28 MQDescriptor.cpp \
29 Static.cpp \
Martijn Coenenbb5e9bb2016-09-01 01:36:18 +020030 Status.cpp
Martijn Coenen72110162016-08-19 14:28:25 +020031
Zhuoyao Zhang7e1286c2016-09-12 17:28:48 -070032ifeq ($(TARGET_BUILD_VARIANT),user)
33 LOCAL_CFLAGS += -DLIBHIDL_TARGET_BUILD_VARIANT_USER
34endif
35
Martijn Coenen72110162016-08-19 14:28:25 +020036LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
37LOCAL_MULTILIB := both
Martijn Coenen72110162016-08-19 14:28:25 +020038include $(BUILD_SHARED_LIBRARY)