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 | |
| 15 | sourceFiles = [ |
| 16 | "acquired_buffer.cpp", |
Corey Tabaka | 2251d82 | 2017-04-20 16:04:07 -0700 | [diff] [blame] | 17 | "epoll_event_dispatcher.cpp", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 18 | "display_manager_service.cpp", |
| 19 | "display_service.cpp", |
| 20 | "display_surface.cpp", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 21 | "hardware_composer.cpp", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 22 | "vr_flinger.cpp", |
| 23 | "vsync_service.cpp", |
| 24 | ] |
| 25 | |
| 26 | includeFiles = [ "include" ] |
| 27 | |
| 28 | staticLibraries = [ |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 29 | "libdisplay", |
| 30 | "libdvrcommon", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 31 | "libperformance", |
| 32 | "libvrsensor", |
Okan Arikan | 822b710 | 2017-05-08 13:31:34 -0700 | [diff] [blame] | 33 | "libbroadcastring", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 34 | "libvr_manager", |
John Bates | 954796e | 2017-05-11 11:00:31 -0700 | [diff] [blame] | 35 | "libbroadcastring", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 36 | ] |
| 37 | |
| 38 | sharedLibraries = [ |
Daniel Nicoara | 1f42e3a | 2017-04-10 13:27:32 -0400 | [diff] [blame] | 39 | "android.frameworks.vr.composer@1.0", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 40 | "android.hardware.graphics.allocator@2.0", |
| 41 | "android.hardware.graphics.composer@2.1", |
Courtney Goeltzenleuchter | f9c98e5 | 2018-02-12 07:23:17 -0700 | [diff] [blame^] | 42 | "android.hardware.graphics.composer@2.2", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 43 | "libbinder", |
| 44 | "libbase", |
Jiwen 'Steve' Cai | 037f35a | 2018-01-25 19:40:23 -0800 | [diff] [blame] | 45 | "libbufferhubqueue", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 46 | "libcutils", |
| 47 | "liblog", |
| 48 | "libhardware", |
| 49 | "libnativewindow", |
| 50 | "libutils", |
| 51 | "libEGL", |
| 52 | "libGLESv1_CM", |
| 53 | "libGLESv2", |
| 54 | "libvulkan", |
| 55 | "libui", |
| 56 | "libgui", |
| 57 | "libsync", |
| 58 | "libhidlbase", |
| 59 | "libhidltransport", |
| 60 | "libfmq", |
Jiwen 'Steve' Cai | 037f35a | 2018-01-25 19:40:23 -0800 | [diff] [blame] | 61 | "libpdx_default_transport", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 62 | ] |
| 63 | |
Okan Arikan | 36d2380 | 2017-05-15 15:20:39 -0700 | [diff] [blame] | 64 | headerLibraries = [ |
Courtney Goeltzenleuchter | 8755122 | 2018-01-16 14:00:09 -0800 | [diff] [blame] | 65 | "android.hardware.graphics.composer@2.1-command-buffer", |
Courtney Goeltzenleuchter | f9c98e5 | 2018-02-12 07:23:17 -0700 | [diff] [blame^] | 66 | "android.hardware.graphics.composer@2.2-command-buffer", |
Lloyd Pique | 66ce40d | 2018-01-23 16:42:19 -0800 | [diff] [blame] | 67 | "libdvr_headers", |
| 68 | "libsurfaceflinger_headers", |
Okan Arikan | 36d2380 | 2017-05-15 15:20:39 -0700 | [diff] [blame] | 69 | ] |
| 70 | |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 71 | cc_library_static { |
| 72 | srcs: sourceFiles, |
| 73 | export_include_dirs: includeFiles, |
| 74 | |
| 75 | cflags: [ |
| 76 | "-DLOG_TAG=\"vr_flinger\"", |
| 77 | "-DTRACE=0", |
Daniel Nicoara | 1f42e3a | 2017-04-10 13:27:32 -0400 | [diff] [blame] | 78 | "-DATRACE_TAG=ATRACE_TAG_GRAPHICS", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 79 | "-DGL_GLEXT_PROTOTYPES", |
| 80 | "-DEGL_EGLEXT_PROTOTYPES", |
Chih-Hung Hsieh | e190083 | 2017-10-05 14:27:38 -0700 | [diff] [blame] | 81 | "-Wall", |
| 82 | "-Werror", |
| 83 | "-Wno-error=sign-compare", // to fix later |
| 84 | "-Wno-unused-variable", |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 85 | ], |
| 86 | shared_libs: sharedLibraries, |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 87 | whole_static_libs: staticLibraries, |
John Bates | 954796e | 2017-05-11 11:00:31 -0700 | [diff] [blame] | 88 | header_libs: headerLibraries, |
Stephen Kiazyk | e77dce2 | 2017-03-14 15:38:12 -0700 | [diff] [blame] | 89 | name: "libvrflinger", |
| 90 | } |