blob: 467f69f5aadd7f378767e64072db655f597cef0a [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 := \
26 libchrome \
27 libdvrcommon \
28 libpdx_default_transport \
29
30sharedLibraries := \
31 libbase \
32 libcutils \
33 libhardware \
34 liblog \
35 libui \
36 libutils
37
38include $(CLEAR_VARS)
39LOCAL_SRC_FILES := $(sourceFiles)
40LOCAL_C_INCLUDES := $(includeFiles)
41LOCAL_CFLAGS := -DLOG_TAG=\"libbufferhub\"
42LOCAL_CFLAGS += -DTRACE=0
43LOCAL_EXPORT_C_INCLUDE_DIRS := $(includeFiles)
44LOCAL_STATIC_LIBRARIES := $(staticLibraries)
45LOCAL_SHARED_LIBRARIES := $(sharedLibraries)
46LOCAL_MODULE := libbufferhub
47include $(BUILD_STATIC_LIBRARY)
48
49include $(CLEAR_VARS)
50LOCAL_MODULE_TAGS := optional
51LOCAL_SRC_FILES := bufferhub_tests.cpp
52LOCAL_STATIC_LIBRARIES := libbufferhub $(staticLibraries)
53LOCAL_SHARED_LIBRARIES := $(sharedLibraries)
54LOCAL_MODULE := bufferhub_tests
55include $(BUILD_NATIVE_TEST)
56
57include $(call all-makefiles-under,$(LOCAL_PATH))