blob: 4ad7c2334c39efe921674b88425f17bc53f8cbbf [file] [log] [blame]
Stephen Kiazyke77dce22017-03-14 15:38:12 -07001// 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
15sourceFiles = [
16 "acquired_buffer.cpp",
17 "compositor.cpp",
18 "debug_hud_data.cpp",
19 "debug_hud_view.cpp",
20 "display_manager_service.cpp",
21 "display_service.cpp",
22 "display_surface.cpp",
23 "epoll_event_dispatcher.cpp",
24 "hardware_composer.cpp",
25 "screenshot_service.cpp",
26 "surface_channel.cpp",
27 "video_compositor.cpp",
28 "video_mesh_surface.cpp",
29 "vr_flinger.cpp",
30 "vsync_service.cpp",
31]
32
33includeFiles = [ "include" ]
34
35staticLibraries = [
36 "libsurfaceflingerincludes",
37 "libhwcomposer-command-buffer",
38 "libbufferhub",
39 "libbufferhubqueue",
40 "libeds",
41 "libdisplay",
42 "libdvrcommon",
43 "libdvrgraphics",
44 "libperformance",
45 "libvrsensor",
46 "libpdx_default_transport",
47 "libvr_manager",
48]
49
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 "libnativewindow",
60 "libutils",
61 "libEGL",
62 "libGLESv1_CM",
63 "libGLESv2",
64 "libvulkan",
65 "libui",
66 "libgui",
67 "libsync",
68 "libhidlbase",
69 "libhidltransport",
70 "libfmq",
71]
72
73cc_library_static {
74 srcs: sourceFiles,
75 export_include_dirs: includeFiles,
76
77 cflags: [
78 "-DLOG_TAG=\"vr_flinger\"",
79 "-DTRACE=0",
80 "-DATRACE_TAG=ATRACE_TAG_GRAPHICS",
81 "-DGL_GLEXT_PROTOTYPES",
82 "-DEGL_EGLEXT_PROTOTYPES",
83 ],
84 shared_libs: sharedLibraries,
85 whole_static_libs: staticLibraries,
86 name: "libvrflinger",
87}