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