Android.bp revision 2251d822dac2a96aad4184a6fdc2690f0a58af7c
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
15sourceFiles = [
16    "acquired_buffer.cpp",
17    "epoll_event_dispatcher.cpp",
18    "display_manager_service.cpp",
19    "display_service.cpp",
20    "display_surface.cpp",
21    "hardware_composer.cpp",
22    "vr_flinger.cpp",
23    "vsync_service.cpp",
24]
25
26includeFiles = [ "include" ]
27
28staticLibraries = [
29    "libsurfaceflingerincludes",
30    "libhwcomposer-command-buffer",
31    "libbufferhub",
32    "libbufferhubqueue",
33    "libeds",
34    "libdisplay",
35    "libdvrcommon",
36    "libdvrgraphics",
37    "libperformance",
38    "libvrsensor",
39    "libpdx_default_transport",
40    "libvr_manager",
41]
42
43sharedLibraries = [
44    "android.frameworks.vr.composer@1.0",
45    "android.hardware.graphics.allocator@2.0",
46    "android.hardware.graphics.composer@2.1",
47    "libbinder",
48    "libbase",
49    "libcutils",
50    "liblog",
51    "libhardware",
52    "libnativewindow",
53    "libutils",
54    "libEGL",
55    "libGLESv1_CM",
56    "libGLESv2",
57    "libvulkan",
58    "libui",
59    "libgui",
60    "libsync",
61    "libhidlbase",
62    "libhidltransport",
63    "libfmq",
64]
65
66cc_library_static {
67    srcs: sourceFiles,
68    export_include_dirs: includeFiles,
69
70    cflags: [
71        "-DLOG_TAG=\"vr_flinger\"",
72        "-DTRACE=0",
73        "-DATRACE_TAG=ATRACE_TAG_GRAPHICS",
74        "-DGL_GLEXT_PROTOTYPES",
75        "-DEGL_EGLEXT_PROTOTYPES",
76    ],
77    shared_libs: sharedLibraries,
78    whole_static_libs: staticLibraries,
79    name: "libvrflinger",
80}
81