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