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\"", |
Chih-Hung Hsieh | e27d5eb | 2017-10-31 15:39:40 -0700 | [diff] [blame] | 47 | "-Wall", |
| 48 | "-Werror", |
| 49 | // mVrClient unused in vr_composer_client.cpp |
| 50 | "-Wno-error=unused-private-field", |
| 51 | // Warnings in vr_hwc.cpp to be fixed after sync of goog/master. |
| 52 | "-Wno-sign-compare", |
| 53 | "-Wno-unused-parameter", |
Daniel Nicoara | 4251e92 | 2017-04-13 15:19:15 -0400 | [diff] [blame] | 54 | ], |
| 55 | |
| 56 | } |
| 57 | |
Daniel Nicoara | aba4d01 | 2017-03-09 15:10:26 -0500 | [diff] [blame] | 58 | cc_library_static { |
| 59 | name: "libvr_hwc-binder", |
| 60 | srcs: [ |
| 61 | "aidl/android/dvr/IVrComposer.aidl", |
| 62 | "aidl/android/dvr/IVrComposerCallback.aidl", |
| 63 | "aidl/android/dvr/parcelable_composer_frame.cpp", |
| 64 | "aidl/android/dvr/parcelable_composer_layer.cpp", |
| 65 | "aidl/android/dvr/parcelable_unique_fd.cpp", |
| 66 | ], |
| 67 | aidl: { |
| 68 | include_dirs: ["frameworks/native/services/vr/hardware_composer/aidl"], |
| 69 | export_aidl_headers: true, |
| 70 | }, |
| 71 | export_include_dirs: ["aidl"], |
Daniel Nicoara | 4251e92 | 2017-04-13 15:19:15 -0400 | [diff] [blame] | 72 | |
Chih-Hung Hsieh | e27d5eb | 2017-10-31 15:39:40 -0700 | [diff] [blame] | 73 | cflags: [ |
| 74 | "-Wall", |
| 75 | "-Werror", |
| 76 | ], |
| 77 | |
Daniel Nicoara | aba4d01 | 2017-03-09 15:10:26 -0500 | [diff] [blame] | 78 | shared_libs: [ |
| 79 | "libbinder", |
| 80 | "libui", |
| 81 | "libutils", |
Daniel Nicoara | 4251e92 | 2017-04-13 15:19:15 -0400 | [diff] [blame] | 82 | "libvr_hwc-hal", |
Daniel Nicoara | aba4d01 | 2017-03-09 15:10:26 -0500 | [diff] [blame] | 83 | ], |
| 84 | } |
| 85 | |
| 86 | cc_library_static { |
| 87 | name: "libvr_hwc-impl", |
| 88 | srcs: [ |
| 89 | "vr_composer.cpp", |
| 90 | ], |
| 91 | static_libs: [ |
| 92 | "libvr_hwc-binder", |
| 93 | ], |
| 94 | shared_libs: [ |
| 95 | "libbase", |
| 96 | "libbinder", |
| 97 | "liblog", |
| 98 | "libui", |
| 99 | "libutils", |
Daniel Nicoara | 4251e92 | 2017-04-13 15:19:15 -0400 | [diff] [blame] | 100 | "libvr_hwc-hal", |
Daniel Nicoara | aba4d01 | 2017-03-09 15:10:26 -0500 | [diff] [blame] | 101 | ], |
| 102 | export_shared_lib_headers: [ |
Daniel Nicoara | 4251e92 | 2017-04-13 15:19:15 -0400 | [diff] [blame] | 103 | "libvr_hwc-hal", |
Daniel Nicoara | aba4d01 | 2017-03-09 15:10:26 -0500 | [diff] [blame] | 104 | ], |
| 105 | cflags: [ |
| 106 | "-DLOG_TAG=\"vr_hwc\"", |
Chih-Hung Hsieh | e27d5eb | 2017-10-31 15:39:40 -0700 | [diff] [blame] | 107 | "-Wall", |
| 108 | "-Werror", |
Daniel Nicoara | aba4d01 | 2017-03-09 15:10:26 -0500 | [diff] [blame] | 109 | ], |
| 110 | } |
| 111 | |
| 112 | cc_binary { |
| 113 | name: "vr_hwc", |
| 114 | srcs: [ |
| 115 | "vr_hardware_composer_service.cpp" |
| 116 | ], |
| 117 | static_libs: [ |
| 118 | "libvr_hwc-impl", |
| 119 | // NOTE: This needs to be included after the *-impl lib otherwise the |
| 120 | // symbols in the *-binder library get optimized out. |
| 121 | "libvr_hwc-binder", |
| 122 | ], |
| 123 | shared_libs: [ |
Daniel Nicoara | 95a99a1 | 2017-03-21 15:30:45 -0400 | [diff] [blame] | 124 | "android.frameworks.vr.composer@1.0", |
Daniel Nicoara | aba4d01 | 2017-03-09 15:10:26 -0500 | [diff] [blame] | 125 | "android.hardware.graphics.composer@2.1", |
| 126 | "libbase", |
| 127 | "libbinder", |
| 128 | "liblog", |
| 129 | "libhardware", |
| 130 | "libhwbinder", |
| 131 | "libui", |
| 132 | "libutils", |
Daniel Nicoara | 4251e92 | 2017-04-13 15:19:15 -0400 | [diff] [blame] | 133 | "libvr_hwc-hal", |
Daniel Nicoara | aba4d01 | 2017-03-09 15:10:26 -0500 | [diff] [blame] | 134 | ], |
| 135 | cflags: [ |
| 136 | "-DLOG_TAG=\"vr_hwc\"", |
Chih-Hung Hsieh | e27d5eb | 2017-10-31 15:39:40 -0700 | [diff] [blame] | 137 | "-Wall", |
| 138 | "-Werror", |
Daniel Nicoara | aba4d01 | 2017-03-09 15:10:26 -0500 | [diff] [blame] | 139 | ], |
| 140 | init_rc: [ |
| 141 | "vr_hwc.rc", |
| 142 | ], |
| 143 | } |
| 144 | |
Daniel Nicoara | aba4d01 | 2017-03-09 15:10:26 -0500 | [diff] [blame] | 145 | cc_test { |
| 146 | name: "vr_hwc_test", |
| 147 | gtest: true, |
| 148 | srcs: ["tests/vr_composer_test.cpp"], |
Daniel Nicoara | aba4d01 | 2017-03-09 15:10:26 -0500 | [diff] [blame] | 149 | static_libs: [ |
| 150 | "libgtest", |
| 151 | "libvr_hwc-impl", |
| 152 | // NOTE: This needs to be included after the *-impl lib otherwise the |
| 153 | // symbols in the *-binder library get optimized out. |
| 154 | "libvr_hwc-binder", |
| 155 | ], |
Chih-Hung Hsieh | e27d5eb | 2017-10-31 15:39:40 -0700 | [diff] [blame] | 156 | cflags: [ |
| 157 | "-Wall", |
| 158 | "-Werror", |
| 159 | // warnings in vr_composer_test.cpp to be fixed after merge of goog/master |
| 160 | "-Wno-sign-compare", |
| 161 | "-Wno-unused-parameter", |
| 162 | ], |
Daniel Nicoara | aba4d01 | 2017-03-09 15:10:26 -0500 | [diff] [blame] | 163 | shared_libs: [ |
| 164 | "libbase", |
| 165 | "libbinder", |
| 166 | "liblog", |
| 167 | "libui", |
| 168 | "libutils", |
| 169 | ], |
| 170 | } |