Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 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 | |
Bob Badour | 3306e49 | 2021-02-25 15:35:37 -0800 | [diff] [blame] | 15 | package { |
| 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 | default_applicable_licenses: ["frameworks_native_license"], |
| 22 | } |
| 23 | |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 24 | sourceFiles = [ |
| 25 | "acquired_buffer.cpp", |
Corey Tabaka | 2251d82 | 2017-04-20 16:04:07 -0700 | [diff] [blame] | 26 | "epoll_event_dispatcher.cpp", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 27 | "display_manager_service.cpp", |
| 28 | "display_service.cpp", |
| 29 | "display_surface.cpp", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 30 | "hardware_composer.cpp", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 31 | "vr_flinger.cpp", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 32 | ] |
| 33 | |
Ady Abraham | e7385f7 | 2021-09-05 00:54:25 -0700 | [diff] [blame] | 34 | includeFiles = ["include"] |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 35 | |
| 36 | staticLibraries = [ |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 37 | "libdisplay", |
| 38 | "libdvrcommon", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 39 | "libperformance", |
| 40 | "libvrsensor", |
Okan Arikan | 822b710 | 2017-05-08 13:31:34 -0700 | [diff] [blame] | 41 | "libbroadcastring", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 42 | "libvr_manager", |
John Bates | 954796e | 2017-05-11 11:00:31 -0700 | [diff] [blame] | 43 | "libbroadcastring", |
Ady Abraham | e7385f7 | 2021-09-05 00:54:25 -0700 | [diff] [blame] | 44 | "libaidlcommonsupport", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 45 | ] |
| 46 | |
| 47 | sharedLibraries = [ |
mamik | 94e91f6 | 2019-08-19 09:11:33 -0700 | [diff] [blame] | 48 | "android.frameworks.vr.composer@2.0", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 49 | "android.hardware.graphics.allocator@2.0", |
| 50 | "android.hardware.graphics.composer@2.1", |
Courtney Goeltzenleuchter | f9c98e5 | 2018-02-12 07:23:17 -0700 | [diff] [blame] | 51 | "android.hardware.graphics.composer@2.2", |
Dominik Laskowski | e9ef7c4 | 2018-03-12 19:34:30 -0700 | [diff] [blame] | 52 | "android.hardware.graphics.composer@2.3", |
Dominik Laskowski | 25a4e7d | 2019-09-20 14:50:10 -0700 | [diff] [blame] | 53 | "android.hardware.graphics.composer@2.4", |
Ady Abraham | e7385f7 | 2021-09-05 00:54:25 -0700 | [diff] [blame] | 54 | "android.hardware.graphics.composer3-V1-ndk", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 55 | "libbinder", |
Ady Abraham | e7385f7 | 2021-09-05 00:54:25 -0700 | [diff] [blame] | 56 | "libbinder_ndk", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 57 | "libbase", |
Jiwen 'Steve' Cai | 037f35a | 2018-01-25 19:40:23 -0800 | [diff] [blame] | 58 | "libbufferhubqueue", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 59 | "libcutils", |
| 60 | "liblog", |
| 61 | "libhardware", |
| 62 | "libnativewindow", |
Suren Baghdasaryan | cd82905 | 2018-11-02 19:15:37 -0700 | [diff] [blame] | 63 | "libprocessgroup", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 64 | "libutils", |
| 65 | "libEGL", |
| 66 | "libGLESv1_CM", |
| 67 | "libGLESv2", |
| 68 | "libvulkan", |
| 69 | "libui", |
| 70 | "libgui", |
| 71 | "libsync", |
| 72 | "libhidlbase", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 73 | "libfmq", |
Jiwen 'Steve' Cai | 037f35a | 2018-01-25 19:40:23 -0800 | [diff] [blame] | 74 | "libpdx_default_transport", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 75 | ] |
| 76 | |
Okan Arikan | 36d2380 | 2017-05-15 15:20:39 -0700 | [diff] [blame] | 77 | headerLibraries = [ |
Courtney Goeltzenleuchter | 8755122 | 2018-01-16 14:00:09 -0800 | [diff] [blame] | 78 | "android.hardware.graphics.composer@2.1-command-buffer", |
Courtney Goeltzenleuchter | f9c98e5 | 2018-02-12 07:23:17 -0700 | [diff] [blame] | 79 | "android.hardware.graphics.composer@2.2-command-buffer", |
Peiyong Lin | 698147a | 2018-09-14 13:27:18 -0700 | [diff] [blame] | 80 | "android.hardware.graphics.composer@2.3-command-buffer", |
Peiyong Lin | afa0f57 | 2020-01-13 16:35:02 -0800 | [diff] [blame] | 81 | "android.hardware.graphics.composer@2.4-command-buffer", |
Ady Abraham | e7385f7 | 2021-09-05 00:54:25 -0700 | [diff] [blame] | 82 | "android.hardware.graphics.composer3-command-buffer", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 83 | "libdvr_headers", |
| 84 | "libsurfaceflinger_headers", |
Okan Arikan | 36d2380 | 2017-05-15 15:20:39 -0700 | [diff] [blame] | 85 | ] |
| 86 | |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 87 | cc_library_static { |
| 88 | srcs: sourceFiles, |
| 89 | export_include_dirs: includeFiles, |
| 90 | |
Steven Thomas | bfe46a0 | 2018-02-16 14:27:35 -0800 | [diff] [blame] | 91 | clang: true, |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 92 | cflags: [ |
| 93 | "-DLOG_TAG=\"vr_flinger\"", |
| 94 | "-DTRACE=0", |
Daniel Nicoara | 1f42e3a | 2017-04-10 13:27:32 -0400 | [diff] [blame] | 95 | "-DATRACE_TAG=ATRACE_TAG_GRAPHICS", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 96 | "-DGL_GLEXT_PROTOTYPES", |
| 97 | "-DEGL_EGLEXT_PROTOTYPES", |
Chih-Hung Hsieh | e190083 | 2017-10-05 14:27:38 -0700 | [diff] [blame] | 98 | "-Wall", |
| 99 | "-Werror", |
| 100 | "-Wno-error=sign-compare", // to fix later |
| 101 | "-Wno-unused-variable", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 102 | ], |
| 103 | shared_libs: sharedLibraries, |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 104 | whole_static_libs: staticLibraries, |
John Bates | 954796e | 2017-05-11 11:00:31 -0700 | [diff] [blame] | 105 | header_libs: headerLibraries, |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 106 | name: "libvrflinger", |
| 107 | } |
Steven Thomas | 97f1f4c | 2018-06-01 12:04:16 -0700 | [diff] [blame] | 108 | |
| 109 | subdirs = [ |
| 110 | "tests", |
| 111 | ] |