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