blob: 282935307c813759abe100ac8085ac85f5477e8a [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",
Corey Tabaka2251d822017-04-20 16:04:07 -070017 "epoll_event_dispatcher.cpp",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070018 "display_manager_service.cpp",
19 "display_service.cpp",
20 "display_surface.cpp",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070021 "hardware_composer.cpp",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070022 "vr_flinger.cpp",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070023]
24
25includeFiles = [ "include" ]
26
27staticLibraries = [
Stephen Kiazyke77dce22017-03-14 15:38:12 -070028 "libdisplay",
29 "libdvrcommon",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070030 "libperformance",
31 "libvrsensor",
Okan Arikan822b7102017-05-08 13:31:34 -070032 "libbroadcastring",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070033 "libvr_manager",
John Bates954796e2017-05-11 11:00:31 -070034 "libbroadcastring",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070035]
36
37sharedLibraries = [
Daniel Nicoara1f42e3a2017-04-10 13:27:32 -040038 "android.frameworks.vr.composer@1.0",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070039 "android.hardware.graphics.allocator@2.0",
40 "android.hardware.graphics.composer@2.1",
Courtney Goeltzenleuchterf9c98e52018-02-12 07:23:17 -070041 "android.hardware.graphics.composer@2.2",
Dominik Laskowskie9ef7c42018-03-12 19:34:30 -070042 "android.hardware.graphics.composer@2.3",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070043 "libbinder",
44 "libbase",
Jiwen 'Steve' Cai037f35a2018-01-25 19:40:23 -080045 "libbufferhubqueue",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070046 "libcutils",
47 "liblog",
48 "libhardware",
49 "libnativewindow",
Suren Baghdasaryancd829052018-11-02 19:15:37 -070050 "libprocessgroup",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070051 "libutils",
52 "libEGL",
53 "libGLESv1_CM",
54 "libGLESv2",
55 "libvulkan",
56 "libui",
57 "libgui",
58 "libsync",
59 "libhidlbase",
60 "libhidltransport",
61 "libfmq",
Jiwen 'Steve' Cai037f35a2018-01-25 19:40:23 -080062 "libpdx_default_transport",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070063]
64
Okan Arikan36d23802017-05-15 15:20:39 -070065headerLibraries = [
Courtney Goeltzenleuchter87551222018-01-16 14:00:09 -080066 "android.hardware.graphics.composer@2.1-command-buffer",
Courtney Goeltzenleuchterf9c98e52018-02-12 07:23:17 -070067 "android.hardware.graphics.composer@2.2-command-buffer",
Peiyong Lin698147a2018-09-14 13:27:18 -070068 "android.hardware.graphics.composer@2.3-command-buffer",
Lloyd Pique66ce40d2018-01-23 16:42:19 -080069 "libdvr_headers",
70 "libsurfaceflinger_headers",
Okan Arikan36d23802017-05-15 15:20:39 -070071]
72
Stephen Kiazyke77dce22017-03-14 15:38:12 -070073cc_library_static {
74 srcs: sourceFiles,
75 export_include_dirs: includeFiles,
76
Steven Thomasbfe46a02018-02-16 14:27:35 -080077 clang: true,
Stephen Kiazyke77dce22017-03-14 15:38:12 -070078 cflags: [
79 "-DLOG_TAG=\"vr_flinger\"",
80 "-DTRACE=0",
Daniel Nicoara1f42e3a2017-04-10 13:27:32 -040081 "-DATRACE_TAG=ATRACE_TAG_GRAPHICS",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070082 "-DGL_GLEXT_PROTOTYPES",
83 "-DEGL_EGLEXT_PROTOTYPES",
Chih-Hung Hsiehe1900832017-10-05 14:27:38 -070084 "-Wall",
85 "-Werror",
86 "-Wno-error=sign-compare", // to fix later
87 "-Wno-unused-variable",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070088 ],
89 shared_libs: sharedLibraries,
Stephen Kiazyke77dce22017-03-14 15:38:12 -070090 whole_static_libs: staticLibraries,
John Bates954796e2017-05-11 11:00:31 -070091 header_libs: headerLibraries,
Stephen Kiazyke77dce22017-03-14 15:38:12 -070092 name: "libvrflinger",
93}
Steven Thomas97f1f4c2018-06-01 12:04:16 -070094
95subdirs = [
96 "tests",
97]