blob: 8aca9a5adca4ca0e00513c3202553c7ff6fd56ad [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
Bob Badour3c538232021-02-12 21:26:48 -080015package {
16 // See: http://go/android-license-faq
17 // A large-scale-change added 'default_applicable_licenses' to import
18 // all of the 'license_kinds' from "frameworks_native_license"
19 // to get the below license kinds:
20 // SPDX-license-identifier-Apache-2.0
21 // SPDX-license-identifier-MIT
22 // SPDX-license-identifier-Unicode-DFS
23 default_applicable_licenses: ["frameworks_native_license"],
24}
25
Stephen Kiazyke77dce22017-03-14 15:38:12 -070026sourceFiles = [
27 "acquired_buffer.cpp",
Corey Tabaka2251d822017-04-20 16:04:07 -070028 "epoll_event_dispatcher.cpp",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070029 "display_manager_service.cpp",
30 "display_service.cpp",
31 "display_surface.cpp",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070032 "hardware_composer.cpp",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070033 "vr_flinger.cpp",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070034]
35
36includeFiles = [ "include" ]
37
38staticLibraries = [
Stephen Kiazyke77dce22017-03-14 15:38:12 -070039 "libdisplay",
40 "libdvrcommon",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070041 "libperformance",
42 "libvrsensor",
Okan Arikan822b7102017-05-08 13:31:34 -070043 "libbroadcastring",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070044 "libvr_manager",
John Bates954796e2017-05-11 11:00:31 -070045 "libbroadcastring",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070046]
47
48sharedLibraries = [
mamik94e91f62019-08-19 09:11:33 -070049 "android.frameworks.vr.composer@2.0",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070050 "android.hardware.graphics.allocator@2.0",
51 "android.hardware.graphics.composer@2.1",
Courtney Goeltzenleuchterf9c98e52018-02-12 07:23:17 -070052 "android.hardware.graphics.composer@2.2",
Dominik Laskowskie9ef7c42018-03-12 19:34:30 -070053 "android.hardware.graphics.composer@2.3",
Dominik Laskowski25a4e7d2019-09-20 14:50:10 -070054 "android.hardware.graphics.composer@2.4",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070055 "libbinder",
56 "libbase",
Jiwen 'Steve' Cai037f35a2018-01-25 19:40:23 -080057 "libbufferhubqueue",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070058 "libcutils",
59 "liblog",
60 "libhardware",
61 "libnativewindow",
Suren Baghdasaryancd829052018-11-02 19:15:37 -070062 "libprocessgroup",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070063 "libutils",
64 "libEGL",
65 "libGLESv1_CM",
66 "libGLESv2",
67 "libvulkan",
68 "libui",
69 "libgui",
70 "libsync",
71 "libhidlbase",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070072 "libfmq",
Jiwen 'Steve' Cai037f35a2018-01-25 19:40:23 -080073 "libpdx_default_transport",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070074]
75
Okan Arikan36d23802017-05-15 15:20:39 -070076headerLibraries = [
Courtney Goeltzenleuchter87551222018-01-16 14:00:09 -080077 "android.hardware.graphics.composer@2.1-command-buffer",
Courtney Goeltzenleuchterf9c98e52018-02-12 07:23:17 -070078 "android.hardware.graphics.composer@2.2-command-buffer",
Peiyong Lin698147a2018-09-14 13:27:18 -070079 "android.hardware.graphics.composer@2.3-command-buffer",
Peiyong Linafa0f572020-01-13 16:35:02 -080080 "android.hardware.graphics.composer@2.4-command-buffer",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080081 "libdvr_headers",
82 "libsurfaceflinger_headers",
Okan Arikan36d23802017-05-15 15:20:39 -070083]
84
Stephen Kiazyke77dce22017-03-14 15:38:12 -070085cc_library_static {
86 srcs: sourceFiles,
87 export_include_dirs: includeFiles,
88
Steven Thomasbfe46a02018-02-16 14:27:35 -080089 clang: true,
Stephen Kiazyke77dce22017-03-14 15:38:12 -070090 cflags: [
91 "-DLOG_TAG=\"vr_flinger\"",
92 "-DTRACE=0",
Daniel Nicoara1f42e3a2017-04-10 13:27:32 -040093 "-DATRACE_TAG=ATRACE_TAG_GRAPHICS",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070094 "-DGL_GLEXT_PROTOTYPES",
95 "-DEGL_EGLEXT_PROTOTYPES",
Chih-Hung Hsiehe1900832017-10-05 14:27:38 -070096 "-Wall",
97 "-Werror",
98 "-Wno-error=sign-compare", // to fix later
99 "-Wno-unused-variable",
Stephen Kiazyke77dce22017-03-14 15:38:12 -0700100 ],
101 shared_libs: sharedLibraries,
Stephen Kiazyke77dce22017-03-14 15:38:12 -0700102 whole_static_libs: staticLibraries,
John Bates954796e2017-05-11 11:00:31 -0700103 header_libs: headerLibraries,
Stephen Kiazyke77dce22017-03-14 15:38:12 -0700104 name: "libvrflinger",
105}
Steven Thomas97f1f4c2018-06-01 12:04:16 -0700106
107subdirs = [
108 "tests",
109]