Daniel Nicoara | 4251e92 | 2017-04-13 15:19:15 -0400 | [diff] [blame] | 1 | cc_library_shared { |
| 2 | name: "libvr_hwc-hal", |
| 3 | |
| 4 | srcs: [ |
| 5 | "impl/vr_hwc.cpp", |
| 6 | "impl/vr_composer_client.cpp", |
| 7 | ], |
| 8 | |
| 9 | static_libs: [ |
Okan Arikan | 822b710 | 2017-05-08 13:31:34 -0700 | [diff] [blame] | 10 | "libbroadcastring", |
Daniel Nicoara | 4251e92 | 2017-04-13 15:19:15 -0400 | [diff] [blame] | 11 | "libdisplay", |
Daniel Nicoara | 4251e92 | 2017-04-13 15:19:15 -0400 | [diff] [blame] | 12 | ], |
| 13 | |
| 14 | shared_libs: [ |
| 15 | "android.frameworks.vr.composer@1.0", |
| 16 | "android.hardware.graphics.composer@2.1", |
Chia-I Wu | b444a55 | 2017-04-20 11:30:57 -0700 | [diff] [blame] | 17 | "android.hardware.graphics.mapper@2.0", |
Daniel Nicoara | 4251e92 | 2017-04-13 15:19:15 -0400 | [diff] [blame] | 18 | "libbase", |
Jiwen 'Steve' Cai | 037f35a | 2018-01-25 19:40:23 -0800 | [diff] [blame] | 19 | "libbufferhubqueue", |
Jiwen 'Steve' Cai | a88e3ee | 2017-11-03 17:33:33 -0700 | [diff] [blame] | 20 | "libbinder", |
Daniel Nicoara | 4251e92 | 2017-04-13 15:19:15 -0400 | [diff] [blame] | 21 | "libcutils", |
| 22 | "libfmq", |
| 23 | "libhardware", |
| 24 | "libhidlbase", |
| 25 | "libhidltransport", |
| 26 | "liblog", |
| 27 | "libsync", |
| 28 | "libui", |
| 29 | "libutils", |
Jiwen 'Steve' Cai | 037f35a | 2018-01-25 19:40:23 -0800 | [diff] [blame] | 30 | "libpdx_default_transport", |
Daniel Nicoara | 4251e92 | 2017-04-13 15:19:15 -0400 | [diff] [blame] | 31 | ], |
| 32 | |
Courtney Goeltzenleuchter | 8755122 | 2018-01-16 14:00:09 -0800 | [diff] [blame] | 33 | header_libs: [ |
| 34 | "android.hardware.graphics.composer@2.1-command-buffer", |
Chia-I Wu | d15d2d2 | 2018-01-29 13:59:18 -0800 | [diff] [blame] | 35 | "android.hardware.graphics.composer@2.1-hal", |
| 36 | ], |
| 37 | |
| 38 | export_header_lib_headers: [ |
| 39 | "android.hardware.graphics.composer@2.1-hal", |
Courtney Goeltzenleuchter | 8755122 | 2018-01-16 14:00:09 -0800 | [diff] [blame] | 40 | ], |
| 41 | |
Daniel Nicoara | 4251e92 | 2017-04-13 15:19:15 -0400 | [diff] [blame] | 42 | export_shared_lib_headers: [ |
| 43 | "android.frameworks.vr.composer@1.0", |
| 44 | "android.hardware.graphics.composer@2.1", |
| 45 | ], |
| 46 | |
| 47 | export_include_dirs: ["."], |
| 48 | |
| 49 | cflags: [ |
| 50 | "-DLOG_TAG=\"vr_hwc\"", |
Chih-Hung Hsieh | e27d5eb | 2017-10-31 15:39:40 -0700 | [diff] [blame] | 51 | "-Wall", |
| 52 | "-Werror", |
| 53 | // mVrClient unused in vr_composer_client.cpp |
| 54 | "-Wno-error=unused-private-field", |
| 55 | // Warnings in vr_hwc.cpp to be fixed after sync of goog/master. |
| 56 | "-Wno-sign-compare", |
| 57 | "-Wno-unused-parameter", |
Daniel Nicoara | 4251e92 | 2017-04-13 15:19:15 -0400 | [diff] [blame] | 58 | ], |
| 59 | |
| 60 | } |
| 61 | |
Daniel Nicoara | aba4d01 | 2017-03-09 15:10:26 -0500 | [diff] [blame] | 62 | cc_library_static { |
| 63 | name: "libvr_hwc-binder", |
| 64 | srcs: [ |
| 65 | "aidl/android/dvr/IVrComposer.aidl", |
| 66 | "aidl/android/dvr/IVrComposerCallback.aidl", |
| 67 | "aidl/android/dvr/parcelable_composer_frame.cpp", |
| 68 | "aidl/android/dvr/parcelable_composer_layer.cpp", |
| 69 | "aidl/android/dvr/parcelable_unique_fd.cpp", |
| 70 | ], |
| 71 | aidl: { |
| 72 | include_dirs: ["frameworks/native/services/vr/hardware_composer/aidl"], |
| 73 | export_aidl_headers: true, |
| 74 | }, |
| 75 | export_include_dirs: ["aidl"], |
Daniel Nicoara | 4251e92 | 2017-04-13 15:19:15 -0400 | [diff] [blame] | 76 | |
Chih-Hung Hsieh | e27d5eb | 2017-10-31 15:39:40 -0700 | [diff] [blame] | 77 | cflags: [ |
| 78 | "-Wall", |
| 79 | "-Werror", |
| 80 | ], |
| 81 | |
Daniel Nicoara | aba4d01 | 2017-03-09 15:10:26 -0500 | [diff] [blame] | 82 | shared_libs: [ |
| 83 | "libbinder", |
| 84 | "libui", |
| 85 | "libutils", |
Daniel Nicoara | 4251e92 | 2017-04-13 15:19:15 -0400 | [diff] [blame] | 86 | "libvr_hwc-hal", |
Daniel Nicoara | aba4d01 | 2017-03-09 15:10:26 -0500 | [diff] [blame] | 87 | ], |
| 88 | } |
| 89 | |
| 90 | cc_library_static { |
| 91 | name: "libvr_hwc-impl", |
| 92 | srcs: [ |
| 93 | "vr_composer.cpp", |
| 94 | ], |
| 95 | static_libs: [ |
| 96 | "libvr_hwc-binder", |
| 97 | ], |
| 98 | shared_libs: [ |
| 99 | "libbase", |
| 100 | "libbinder", |
| 101 | "liblog", |
| 102 | "libui", |
| 103 | "libutils", |
Daniel Nicoara | 4251e92 | 2017-04-13 15:19:15 -0400 | [diff] [blame] | 104 | "libvr_hwc-hal", |
Daniel Nicoara | aba4d01 | 2017-03-09 15:10:26 -0500 | [diff] [blame] | 105 | ], |
| 106 | export_shared_lib_headers: [ |
Daniel Nicoara | 4251e92 | 2017-04-13 15:19:15 -0400 | [diff] [blame] | 107 | "libvr_hwc-hal", |
Daniel Nicoara | aba4d01 | 2017-03-09 15:10:26 -0500 | [diff] [blame] | 108 | ], |
| 109 | cflags: [ |
| 110 | "-DLOG_TAG=\"vr_hwc\"", |
Chih-Hung Hsieh | e27d5eb | 2017-10-31 15:39:40 -0700 | [diff] [blame] | 111 | "-Wall", |
| 112 | "-Werror", |
Daniel Nicoara | aba4d01 | 2017-03-09 15:10:26 -0500 | [diff] [blame] | 113 | ], |
| 114 | } |
| 115 | |
| 116 | cc_binary { |
| 117 | name: "vr_hwc", |
| 118 | srcs: [ |
| 119 | "vr_hardware_composer_service.cpp" |
| 120 | ], |
| 121 | static_libs: [ |
| 122 | "libvr_hwc-impl", |
| 123 | // NOTE: This needs to be included after the *-impl lib otherwise the |
| 124 | // symbols in the *-binder library get optimized out. |
| 125 | "libvr_hwc-binder", |
| 126 | ], |
| 127 | shared_libs: [ |
Daniel Nicoara | 95a99a1 | 2017-03-21 15:30:45 -0400 | [diff] [blame] | 128 | "android.frameworks.vr.composer@1.0", |
Daniel Nicoara | aba4d01 | 2017-03-09 15:10:26 -0500 | [diff] [blame] | 129 | "android.hardware.graphics.composer@2.1", |
| 130 | "libbase", |
| 131 | "libbinder", |
| 132 | "liblog", |
| 133 | "libhardware", |
| 134 | "libhwbinder", |
| 135 | "libui", |
| 136 | "libutils", |
Daniel Nicoara | 4251e92 | 2017-04-13 15:19:15 -0400 | [diff] [blame] | 137 | "libvr_hwc-hal", |
Daniel Nicoara | aba4d01 | 2017-03-09 15:10:26 -0500 | [diff] [blame] | 138 | ], |
| 139 | cflags: [ |
| 140 | "-DLOG_TAG=\"vr_hwc\"", |
Chih-Hung Hsieh | e27d5eb | 2017-10-31 15:39:40 -0700 | [diff] [blame] | 141 | "-Wall", |
| 142 | "-Werror", |
Daniel Nicoara | aba4d01 | 2017-03-09 15:10:26 -0500 | [diff] [blame] | 143 | ], |
| 144 | init_rc: [ |
| 145 | "vr_hwc.rc", |
| 146 | ], |
| 147 | } |
| 148 | |
Daniel Nicoara | aba4d01 | 2017-03-09 15:10:26 -0500 | [diff] [blame] | 149 | cc_test { |
| 150 | name: "vr_hwc_test", |
| 151 | gtest: true, |
| 152 | srcs: ["tests/vr_composer_test.cpp"], |
Daniel Nicoara | aba4d01 | 2017-03-09 15:10:26 -0500 | [diff] [blame] | 153 | static_libs: [ |
| 154 | "libgtest", |
| 155 | "libvr_hwc-impl", |
| 156 | // NOTE: This needs to be included after the *-impl lib otherwise the |
| 157 | // symbols in the *-binder library get optimized out. |
| 158 | "libvr_hwc-binder", |
| 159 | ], |
Chih-Hung Hsieh | e27d5eb | 2017-10-31 15:39:40 -0700 | [diff] [blame] | 160 | cflags: [ |
| 161 | "-Wall", |
| 162 | "-Werror", |
| 163 | // warnings in vr_composer_test.cpp to be fixed after merge of goog/master |
| 164 | "-Wno-sign-compare", |
| 165 | "-Wno-unused-parameter", |
| 166 | ], |
Daniel Nicoara | aba4d01 | 2017-03-09 15:10:26 -0500 | [diff] [blame] | 167 | shared_libs: [ |
| 168 | "libbase", |
| 169 | "libbinder", |
| 170 | "liblog", |
| 171 | "libui", |
| 172 | "libutils", |
| 173 | ], |
| 174 | } |