1cc_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: [ 10 "libbroadcastring", 11 "libdisplay", 12 ], 13 14 shared_libs: [ 15 "android.frameworks.vr.composer@1.0", 16 "android.hardware.graphics.composer@2.1", 17 "android.hardware.graphics.mapper@2.0", 18 "android.hardware.graphics.mapper@3.0", 19 "libbase", 20 "libbufferhubqueue", 21 "libbinder", 22 "libcutils", 23 "libfmq", 24 "libhardware", 25 "libhidlbase", 26 "libhidltransport", 27 "liblog", 28 "libsync", 29 "libui", 30 "libutils", 31 "libpdx_default_transport", 32 ], 33 34 header_libs: [ 35 "android.hardware.graphics.composer@2.1-command-buffer", 36 "android.hardware.graphics.composer@2.1-hal", 37 ], 38 39 export_header_lib_headers: [ 40 "android.hardware.graphics.composer@2.1-hal", 41 ], 42 43 export_static_lib_headers: [ 44 "libdisplay", 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\"", 56 "-DATRACE_TAG=ATRACE_TAG_GRAPHICS", 57 "-Wall", 58 "-Werror", 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", 63 ], 64 65} 66 67cc_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"], 81 82 cflags: [ 83 "-Wall", 84 "-Werror", 85 ], 86 87 shared_libs: [ 88 "libbinder", 89 "libui", 90 "libutils", 91 "libvr_hwc-hal", 92 ], 93} 94 95cc_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", 109 "libvr_hwc-hal", 110 ], 111 export_shared_lib_headers: [ 112 "libvr_hwc-hal", 113 ], 114 cflags: [ 115 "-DLOG_TAG=\"vr_hwc\"", 116 "-Wall", 117 "-Werror", 118 ], 119} 120 121cc_binary { 122 name: "vr_hwc", 123 vintf_fragments: ["manifest_vr_hwc.xml"], 124 srcs: [ 125 "vr_hardware_composer_service.cpp" 126 ], 127 static_libs: [ 128 "libvr_hwc-impl", 129 // NOTE: This needs to be included after the *-impl lib otherwise the 130 // symbols in the *-binder library get optimized out. 131 "libvr_hwc-binder", 132 ], 133 shared_libs: [ 134 "android.frameworks.vr.composer@1.0", 135 "android.hardware.graphics.composer@2.1", 136 "libbase", 137 "libbinder", 138 "liblog", 139 "libhardware", 140 "libhidlbase", 141 "libui", 142 "libutils", 143 "libvr_hwc-hal", 144 ], 145 cflags: [ 146 "-DLOG_TAG=\"vr_hwc\"", 147 "-Wall", 148 "-Werror", 149 ], 150 init_rc: [ 151 "vr_hwc.rc", 152 ], 153} 154 155cc_test { 156 name: "vr_hwc_test", 157 gtest: true, 158 srcs: ["tests/vr_composer_test.cpp"], 159 static_libs: [ 160 "libgtest", 161 "libvr_hwc-impl", 162 // NOTE: This needs to be included after the *-impl lib otherwise the 163 // symbols in the *-binder library get optimized out. 164 "libvr_hwc-binder", 165 ], 166 cflags: [ 167 "-Wall", 168 "-Werror", 169 // warnings in vr_composer_test.cpp to be fixed after merge of goog/master 170 "-Wno-sign-compare", 171 "-Wno-unused-parameter", 172 ], 173 shared_libs: [ 174 "libbase", 175 "libbinder", 176 "liblog", 177 "libui", 178 "libutils", 179 ], 180} 181