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 "libhwcomposer-client", 11 "libdisplay", 12 "libbufferhubqueue", 13 "libbufferhub", 14 "libpdx_default_transport", 15 ], 16 17 shared_libs: [ 18 "android.frameworks.vr.composer@1.0", 19 "android.hardware.graphics.composer@2.1", 20 "android.hardware.graphics.mapper@2.0", 21 "libbase", 22 "libcutils", 23 "libfmq", 24 "libhardware", 25 "libhidlbase", 26 "libhidltransport", 27 "liblog", 28 "libsync", 29 "libui", 30 "libutils", 31 ], 32 33 export_static_lib_headers: [ 34 "libhwcomposer-client", 35 ], 36 37 export_shared_lib_headers: [ 38 "android.frameworks.vr.composer@1.0", 39 "android.hardware.graphics.composer@2.1", 40 ], 41 42 export_include_dirs: ["."], 43 44 cflags: [ 45 "-DLOG_TAG=\"vr_hwc\"", 46 ], 47 48} 49 50cc_library_static { 51 name: "libvr_hwc-binder", 52 srcs: [ 53 "aidl/android/dvr/IVrComposer.aidl", 54 "aidl/android/dvr/IVrComposerCallback.aidl", 55 "aidl/android/dvr/parcelable_composer_frame.cpp", 56 "aidl/android/dvr/parcelable_composer_layer.cpp", 57 "aidl/android/dvr/parcelable_unique_fd.cpp", 58 ], 59 aidl: { 60 include_dirs: ["frameworks/native/services/vr/hardware_composer/aidl"], 61 export_aidl_headers: true, 62 }, 63 export_include_dirs: ["aidl"], 64 65 shared_libs: [ 66 "libbinder", 67 "libui", 68 "libutils", 69 "libvr_hwc-hal", 70 ], 71} 72 73cc_library_static { 74 name: "libvr_hwc-impl", 75 srcs: [ 76 "vr_composer.cpp", 77 ], 78 static_libs: [ 79 "libvr_hwc-binder", 80 ], 81 shared_libs: [ 82 "libbase", 83 "libbinder", 84 "liblog", 85 "libui", 86 "libutils", 87 "libvr_hwc-hal", 88 ], 89 export_shared_lib_headers: [ 90 "libvr_hwc-hal", 91 ], 92 cflags: [ 93 "-DLOG_TAG=\"vr_hwc\"", 94 ], 95} 96 97cc_binary { 98 name: "vr_hwc", 99 srcs: [ 100 "vr_hardware_composer_service.cpp" 101 ], 102 static_libs: [ 103 "libvr_hwc-impl", 104 // NOTE: This needs to be included after the *-impl lib otherwise the 105 // symbols in the *-binder library get optimized out. 106 "libvr_hwc-binder", 107 ], 108 shared_libs: [ 109 "android.frameworks.vr.composer@1.0", 110 "android.hardware.graphics.composer@2.1", 111 "libbase", 112 "libbinder", 113 "liblog", 114 "libhardware", 115 "libhwbinder", 116 "libui", 117 "libutils", 118 "libvr_hwc-hal", 119 ], 120 cflags: [ 121 "-DLOG_TAG=\"vr_hwc\"", 122 ], 123 init_rc: [ 124 "vr_hwc.rc", 125 ], 126} 127 128cc_test { 129 name: "vr_hwc_test", 130 gtest: true, 131 srcs: ["tests/vr_composer_test.cpp"], 132 static_libs: [ 133 "libgtest", 134 "libvr_hwc-impl", 135 // NOTE: This needs to be included after the *-impl lib otherwise the 136 // symbols in the *-binder library get optimized out. 137 "libvr_hwc-binder", 138 ], 139 shared_libs: [ 140 "libbase", 141 "libbinder", 142 "liblog", 143 "libui", 144 "libutils", 145 ], 146} 147