Alex Vakulenko | e4eec20 | 2017-01-27 14:41:04 -0800 | [diff] [blame^] | 1 | # Copyright (C) 2015 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 | native_window.cpp \ |
| 19 | native_buffer_queue.cpp \ |
| 20 | display_client.cpp \ |
| 21 | display_manager_client.cpp \ |
| 22 | display_manager_client_impl.cpp \ |
| 23 | display_rpc.cpp \ |
| 24 | dummy_native_window.cpp \ |
| 25 | gl_fenced_flush.cpp \ |
| 26 | graphics.cpp \ |
| 27 | late_latch.cpp \ |
| 28 | video_mesh_surface_client.cpp \ |
| 29 | vsync_client.cpp \ |
| 30 | vsync_client_api.cpp \ |
| 31 | screenshot_client.cpp \ |
| 32 | frame_history.cpp |
| 33 | |
| 34 | includeFiles := \ |
| 35 | $(LOCAL_PATH)/include \ |
| 36 | frameworks/native/vulkan/include |
| 37 | |
| 38 | sharedLibraries := \ |
| 39 | libbase \ |
| 40 | libcutils \ |
| 41 | liblog \ |
| 42 | libutils \ |
| 43 | libEGL \ |
| 44 | libGLESv2 \ |
| 45 | libvulkan \ |
| 46 | libui \ |
| 47 | libgui \ |
| 48 | libhardware \ |
| 49 | libsync |
| 50 | |
| 51 | staticLibraries := \ |
| 52 | libchrome \ |
| 53 | libbufferhub \ |
| 54 | libbufferhubqueue \ |
| 55 | libdvrcommon \ |
| 56 | libdvrgraphics \ |
| 57 | libsensor \ |
| 58 | libpdx_default_transport \ |
| 59 | |
| 60 | include $(CLEAR_VARS) |
| 61 | LOCAL_MODULE_TAGS := tests |
| 62 | LOCAL_SRC_FILES := $(sourceFiles) |
| 63 | LOCAL_C_INCLUDES := $(includeFiles) |
| 64 | #LOCAL_CPPFLAGS := -UNDEBUG -DDEBUG -O0 -g |
| 65 | LOCAL_CFLAGS += -DLOG_TAG=\"libdisplay\" |
| 66 | LOCAL_CFLAGS += -DTRACE=0 |
| 67 | LOCAL_CFLAGS += -DATRACE_TAG=ATRACE_TAG_GRAPHICS |
| 68 | LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES |
| 69 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(includeFiles) |
| 70 | LOCAL_SHARED_LIBRARIES := $(sharedLibraries) |
| 71 | LOCAL_STATIC_LIBRARIES := $(staticLibraries) |
| 72 | LOCAL_MODULE := libdisplay |
| 73 | include $(BUILD_STATIC_LIBRARY) |
| 74 | |
| 75 | |
| 76 | testFiles := \ |
| 77 | tests/graphics_app_tests.cpp |
| 78 | |
| 79 | include $(CLEAR_VARS) |
| 80 | LOCAL_MODULE := graphics_app_tests |
| 81 | LOCAL_MODULE_TAGS := optional |
| 82 | |
| 83 | LOCAL_SRC_FILES := \ |
| 84 | $(testFiles) \ |
| 85 | |
| 86 | LOCAL_C_INCLUDES := \ |
| 87 | $(includeFiles) \ |
| 88 | |
| 89 | LOCAL_SHARED_LIBRARIES := \ |
| 90 | $(sharedLibraries) \ |
| 91 | |
| 92 | LOCAL_STATIC_LIBRARIES := \ |
| 93 | libdisplay \ |
| 94 | $(staticLibraries) \ |
| 95 | |
| 96 | include $(BUILD_NATIVE_TEST) |