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