blob: 1706f30cd7b04be3b7a512263dd07c828182d817 [file] [log] [blame]
Alex Vakulenkoa8a92782017-01-27 14:41:57 -08001# 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
15LOCAL_PATH := $(call my-dir)
16
17sourceFiles := \
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
34includeFiles := $(LOCAL_PATH)/include
35
36staticLibraries := \
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 Gil4766e2a2017-01-27 18:14:42 -080048 libvr_manager \
Alex Vakulenkoa8a92782017-01-27 14:41:57 -080049
50sharedLibraries := \
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
71include $(CLEAR_VARS)
72LOCAL_SRC_FILES := $(sourceFiles)
73LOCAL_C_INCLUDES := $(includeFiles)
74LOCAL_EXPORT_C_INCLUDE_DIRS := $(includeFiles)
75
76LOCAL_CFLAGS += -DLOG_TAG=\"vr_flinger\"
77LOCAL_CFLAGS += -DTRACE=0
78LOCAL_CFLAGS += -DATRACE_TAG=ATRACE_TAG_GRAPHICS
79LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES
Alex Vakulenkoa8a92782017-01-27 14:41:57 -080080LOCAL_SHARED_LIBRARIES := $(sharedLibraries)
81LOCAL_WHOLE_STATIC_LIBRARIES := $(staticLibraries)
82LOCAL_MODULE := libvrflinger
83include $(BUILD_STATIC_LIBRARY)