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