Alex Vakulenko | a8a9278 | 2017-01-27 14:41:57 -0800 | [diff] [blame] | 1 | # Copyright (C) 2008 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 | acquired_buffer.cpp \ |
| 19 | compositor.cpp \ |
| 20 | debug_hud_data.cpp \ |
| 21 | debug_hud_view.cpp \ |
| 22 | display_manager_service.cpp \ |
| 23 | display_service.cpp \ |
| 24 | display_surface.cpp \ |
| 25 | epoll_event_dispatcher.cpp \ |
| 26 | hardware_composer.cpp \ |
| 27 | screenshot_service.cpp \ |
| 28 | surface_channel.cpp \ |
| 29 | video_compositor.cpp \ |
| 30 | video_mesh_surface.cpp \ |
| 31 | vr_flinger.cpp \ |
| 32 | vsync_service.cpp |
| 33 | |
| 34 | includeFiles := $(LOCAL_PATH)/include |
| 35 | |
| 36 | staticLibraries := \ |
| 37 | libsurfaceflingerincludes \ |
| 38 | libhwcomposer-command-buffer \ |
| 39 | libbufferhub \ |
| 40 | libbufferhubqueue \ |
| 41 | libeds \ |
| 42 | libdisplay \ |
| 43 | libdvrcommon \ |
| 44 | libdvrgraphics \ |
| 45 | libperformance \ |
| 46 | libsensor \ |
| 47 | libpdx_default_transport \ |
Leandro Gracia Gil | 4766e2a | 2017-01-27 18:14:42 -0800 | [diff] [blame] | 48 | libvr_manager \ |
Alex Vakulenko | a8a9278 | 2017-01-27 14:41:57 -0800 | [diff] [blame] | 49 | |
| 50 | sharedLibraries := \ |
| 51 | android.dvr.composer@1.0 \ |
| 52 | android.hardware.graphics.allocator@2.0 \ |
| 53 | android.hardware.graphics.composer@2.1 \ |
| 54 | libbinder \ |
| 55 | libbase \ |
| 56 | libcutils \ |
| 57 | liblog \ |
| 58 | libhardware \ |
| 59 | libutils \ |
| 60 | libEGL \ |
| 61 | libGLESv1_CM \ |
| 62 | libGLESv2 \ |
| 63 | libvulkan \ |
| 64 | libui \ |
| 65 | libgui \ |
| 66 | libsync \ |
| 67 | libhidlbase \ |
| 68 | libhidltransport \ |
| 69 | libfmq \ |
| 70 | |
| 71 | include $(CLEAR_VARS) |
| 72 | LOCAL_SRC_FILES := $(sourceFiles) |
| 73 | LOCAL_C_INCLUDES := $(includeFiles) |
| 74 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(includeFiles) |
| 75 | |
| 76 | LOCAL_CFLAGS += -DLOG_TAG=\"vr_flinger\" |
| 77 | LOCAL_CFLAGS += -DTRACE=0 |
| 78 | LOCAL_CFLAGS += -DATRACE_TAG=ATRACE_TAG_GRAPHICS |
| 79 | LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES |
Alex Vakulenko | a8a9278 | 2017-01-27 14:41:57 -0800 | [diff] [blame] | 80 | LOCAL_SHARED_LIBRARIES := $(sharedLibraries) |
| 81 | LOCAL_WHOLE_STATIC_LIBRARIES := $(staticLibraries) |
| 82 | LOCAL_MODULE := libvrflinger |
| 83 | include $(BUILD_STATIC_LIBRARY) |