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