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 "libbase", 19 "libbufferhubqueue", 20 "libbinder", 21 "libcutils", 22 "libfmq", 23 "libhardware", 24 "libhidlbase", 25 "libhidltransport", 26 "liblog", 27 "libsync", 28 "libui", 29 "libutils", 30 "libpdx_default_transport", 31 ], 32 33 header_libs: [ 34 "android.hardware.graphics.composer@2.1-command-buffer", 35 "android.hardware.graphics.composer@2.1-hal", 36 ], 37 38 export_header_lib_headers: [ 39 "android.hardware.graphics.composer@2.1-hal", 40 ], 41 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\"", 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", 58 ], 59 60} 61 62cc_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"], 76 77 cflags: [ 78 "-Wall", 79 "-Werror", 80 ], 81 82 shared_libs: [ 83 "libbinder", 84 "libui", 85 "libutils", 86 "libvr_hwc-hal", 87 ], 88} 89 90cc_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", 104 "libvr_hwc-hal", 105 ], 106 export_shared_lib_headers: [ 107 "libvr_hwc-hal", 108 ], 109 cflags: [ 110 "-DLOG_TAG=\"vr_hwc\"", 111 "-Wall", 112 "-Werror", 113 ], 114} 115 116cc_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: [ 128 "android.frameworks.vr.composer@1.0", 129 "android.hardware.graphics.composer@2.1", 130 "libbase", 131 "libbinder", 132 "liblog", 133 "libhardware", 134 "libhwbinder", 135 "libui", 136 "libutils", 137 "libvr_hwc-hal", 138 ], 139 cflags: [ 140 "-DLOG_TAG=\"vr_hwc\"", 141 "-Wall", 142 "-Werror", 143 ], 144 init_rc: [ 145 "vr_hwc.rc", 146 ], 147} 148 149cc_test { 150 name: "vr_hwc_test", 151 gtest: true, 152 srcs: ["tests/vr_composer_test.cpp"], 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 ], 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 ], 167 shared_libs: [ 168 "libbase", 169 "libbinder", 170 "liblog", 171 "libui", 172 "libutils", 173 ], 174} 175