blob: 6b5e7cc88e9b1eb59ad242d88efc9449a83c76b6 [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 \
48
49sharedLibraries := \
50 android.dvr.composer@1.0 \
51 android.hardware.graphics.allocator@2.0 \
52 android.hardware.graphics.composer@2.1 \
53 libbinder \
54 libbase \
55 libcutils \
56 liblog \
57 libhardware \
58 libutils \
59 libEGL \
60 libGLESv1_CM \
61 libGLESv2 \
62 libvulkan \
63 libui \
64 libgui \
65 libsync \
66 libhidlbase \
67 libhidltransport \
68 libfmq \
69
70include $(CLEAR_VARS)
71LOCAL_SRC_FILES := $(sourceFiles)
72LOCAL_C_INCLUDES := $(includeFiles)
73LOCAL_EXPORT_C_INCLUDE_DIRS := $(includeFiles)
74
75LOCAL_CFLAGS += -DLOG_TAG=\"vr_flinger\"
76LOCAL_CFLAGS += -DTRACE=0
77LOCAL_CFLAGS += -DATRACE_TAG=ATRACE_TAG_GRAPHICS
78LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES
79ifeq ($(TARGET_USES_QCOM_BSP), true)
80 LOCAL_C_INCLUDES += hardware/qcom/display/libgralloc
81 LOCAL_C_INCLUDES += hardware/qcom/display/libqdutils
82 LOCAL_SHARED_LIBRARIES += libqdutils
83endif
84LOCAL_SHARED_LIBRARIES := $(sharedLibraries)
85LOCAL_WHOLE_STATIC_LIBRARIES := $(staticLibraries)
86LOCAL_MODULE := libvrflinger
87include $(BUILD_STATIC_LIBRARY)