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.cpp \ |
| 19 | bufferhubd.cpp \ |
| 20 | consumer_channel.cpp \ |
| 21 | producer_channel.cpp \ |
| 22 | consumer_queue_channel.cpp \ |
| 23 | producer_queue_channel.cpp \ |
| 24 | |
| 25 | staticLibraries := \ |
Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 26 | libperformance \ |
| 27 | libpdx_default_transport \ |
| 28 | libbufferhub |
| 29 | |
| 30 | sharedLibraries := \ |
| 31 | libbase \ |
| 32 | libcutils \ |
| 33 | libhardware \ |
| 34 | liblog \ |
| 35 | libsync \ |
Mathias Agopian | a934764 | 2017-02-13 16:42:28 -0800 | [diff] [blame] | 36 | libutils \ |
| 37 | libgui |
Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame] | 38 | |
| 39 | include $(CLEAR_VARS) |
| 40 | # Don't strip symbols so we see stack traces in logcat. |
| 41 | LOCAL_STRIP_MODULE := false |
| 42 | LOCAL_SRC_FILES := $(sourceFiles) |
| 43 | LOCAL_CFLAGS := -DLOG_TAG=\"bufferhubd\" |
| 44 | LOCAL_CFLAGS += -DTRACE=0 |
| 45 | LOCAL_CFLAGS += -DATRACE_TAG=ATRACE_TAG_GRAPHICS |
| 46 | LOCAL_STATIC_LIBRARIES := $(staticLibraries) |
| 47 | LOCAL_SHARED_LIBRARIES := $(sharedLibraries) |
| 48 | LOCAL_MODULE := bufferhubd |
| 49 | LOCAL_INIT_RC := bufferhubd.rc |
| 50 | include $(BUILD_EXECUTABLE) |
| 51 | |