blob: 0877b0bbcf8ceb737f27a221f43c5dbc758e0548 [file] [log] [blame]
Alex Vakulenkoe4eec202017-01-27 14:41:04 -08001# 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.
14
15LOCAL_PATH := $(call my-dir)
16
17sourceFiles := \
18 buffer_hub_client.cpp \
19 buffer_hub_rpc.cpp \
20 ion_buffer.cpp
21
22includeFiles := \
23 $(LOCAL_PATH)/include
24
25staticLibraries := \
Alex Vakulenkoe4eec202017-01-27 14:41:04 -080026 libdvrcommon \
27 libpdx_default_transport \
28
29sharedLibraries := \
30 libbase \
31 libcutils \
32 libhardware \
33 liblog \
34 libui \
35 libutils
36
37include $(CLEAR_VARS)
38LOCAL_SRC_FILES := $(sourceFiles)
39LOCAL_C_INCLUDES := $(includeFiles)
40LOCAL_CFLAGS := -DLOG_TAG=\"libbufferhub\"
41LOCAL_CFLAGS += -DTRACE=0
42LOCAL_EXPORT_C_INCLUDE_DIRS := $(includeFiles)
43LOCAL_STATIC_LIBRARIES := $(staticLibraries)
44LOCAL_SHARED_LIBRARIES := $(sharedLibraries)
45LOCAL_MODULE := libbufferhub
46include $(BUILD_STATIC_LIBRARY)
47
48include $(CLEAR_VARS)
49LOCAL_MODULE_TAGS := optional
50LOCAL_SRC_FILES := bufferhub_tests.cpp
51LOCAL_STATIC_LIBRARIES := libbufferhub $(staticLibraries)
52LOCAL_SHARED_LIBRARIES := $(sharedLibraries)
53LOCAL_MODULE := bufferhub_tests
54include $(BUILD_NATIVE_TEST)
55
56include $(call all-makefiles-under,$(LOCAL_PATH))