Daniel Nicoara | 4251e92 | 2017-04-13 15:19:15 -0400 | [diff] [blame] | 1 | cc_library_shared { |
Dan Willemsen | a5d6522 | 2018-09-14 21:27:01 -0700 | [diff] [blame] | 2 | name: "libvr_hwc-hal", |
Daniel Nicoara | 4251e92 | 2017-04-13 15:19:15 -0400 | [diff] [blame] | 3 | |
Dan Willemsen | a5d6522 | 2018-09-14 21:27:01 -0700 | [diff] [blame] | 4 | srcs: [ |
| 5 | "impl/vr_hwc.cpp", |
| 6 | "impl/vr_composer_client.cpp", |
| 7 | ], |
Daniel Nicoara | 4251e92 | 2017-04-13 15:19:15 -0400 | [diff] [blame] | 8 | |
Dan Willemsen | a5d6522 | 2018-09-14 21:27:01 -0700 | [diff] [blame] | 9 | static_libs: [ |
| 10 | "libbroadcastring", |
| 11 | "libdisplay", |
| 12 | ], |
Daniel Nicoara | 4251e92 | 2017-04-13 15:19:15 -0400 | [diff] [blame] | 13 | |
Dan Willemsen | a5d6522 | 2018-09-14 21:27:01 -0700 | [diff] [blame] | 14 | shared_libs: [ |
| 15 | "android.frameworks.vr.composer@1.0", |
| 16 | "android.hardware.graphics.composer@2.1", |
Marissa Wall | 72a90b6 | 2019-08-01 14:30:50 -0700 | [diff] [blame] | 17 | "android.hardware.graphics.composer@2.1-resources", |
Dan Willemsen | a5d6522 | 2018-09-14 21:27:01 -0700 | [diff] [blame] | 18 | "android.hardware.graphics.mapper@2.0", |
| 19 | "android.hardware.graphics.mapper@3.0", |
| 20 | "libbase", |
| 21 | "libbufferhubqueue", |
| 22 | "libbinder", |
| 23 | "libcutils", |
| 24 | "libfmq", |
| 25 | "libhardware", |
| 26 | "libhidlbase", |
| 27 | "libhidltransport", |
| 28 | "liblog", |
| 29 | "libsync", |
| 30 | "libui", |
| 31 | "libutils", |
| 32 | "libpdx_default_transport", |
| 33 | ], |
Daniel Nicoara | 4251e92 | 2017-04-13 15:19:15 -0400 | [diff] [blame] | 34 | |
Dan Willemsen | a5d6522 | 2018-09-14 21:27:01 -0700 | [diff] [blame] | 35 | header_libs: [ |
| 36 | "android.hardware.graphics.composer@2.1-command-buffer", |
| 37 | "android.hardware.graphics.composer@2.1-hal", |
| 38 | ], |
Chia-I Wu | d15d2d2 | 2018-01-29 13:59:18 -0800 | [diff] [blame] | 39 | |
Dan Willemsen | a5d6522 | 2018-09-14 21:27:01 -0700 | [diff] [blame] | 40 | export_header_lib_headers: [ |
| 41 | "android.hardware.graphics.composer@2.1-hal", |
| 42 | ], |
Courtney Goeltzenleuchter | 8755122 | 2018-01-16 14:00:09 -0800 | [diff] [blame] | 43 | |
Dan Willemsen | a5d6522 | 2018-09-14 21:27:01 -0700 | [diff] [blame] | 44 | export_static_lib_headers: [ |
| 45 | "libdisplay", |
| 46 | ], |
Steven Thomas | dfde8fa | 2018-04-19 16:00:58 -0700 | [diff] [blame] | 47 | |
Dan Willemsen | a5d6522 | 2018-09-14 21:27:01 -0700 | [diff] [blame] | 48 | export_shared_lib_headers: [ |
| 49 | "android.frameworks.vr.composer@1.0", |
| 50 | "android.hardware.graphics.composer@2.1", |
| 51 | ], |
Daniel Nicoara | 4251e92 | 2017-04-13 15:19:15 -0400 | [diff] [blame] | 52 | |
Dan Willemsen | a5d6522 | 2018-09-14 21:27:01 -0700 | [diff] [blame] | 53 | export_include_dirs: ["."], |
Daniel Nicoara | 4251e92 | 2017-04-13 15:19:15 -0400 | [diff] [blame] | 54 | |
Dan Willemsen | a5d6522 | 2018-09-14 21:27:01 -0700 | [diff] [blame] | 55 | cflags: [ |
| 56 | "-DLOG_TAG=\"vr_hwc\"", |
| 57 | "-DATRACE_TAG=ATRACE_TAG_GRAPHICS", |
| 58 | "-Wall", |
| 59 | "-Werror", |
| 60 | "-Wno-error=unused-private-field", |
| 61 | // Warnings in vr_hwc.cpp to be fixed after sync of goog/master. |
| 62 | "-Wno-sign-compare", |
| 63 | "-Wno-unused-parameter", |
| 64 | ], |
Daniel Nicoara | 4251e92 | 2017-04-13 15:19:15 -0400 | [diff] [blame] | 65 | |
| 66 | } |
| 67 | |
Daniel Nicoara | aba4d01 | 2017-03-09 15:10:26 -0500 | [diff] [blame] | 68 | cc_library_static { |
Dan Willemsen | a5d6522 | 2018-09-14 21:27:01 -0700 | [diff] [blame] | 69 | name: "libvr_hwc-impl", |
| 70 | srcs: [ |
| 71 | "vr_composer.cpp", |
| 72 | ], |
| 73 | static_libs: [ |
| 74 | "libvr_hwc-binder", |
| 75 | ], |
| 76 | shared_libs: [ |
| 77 | "libbase", |
| 78 | "libbinder", |
| 79 | "liblog", |
| 80 | "libui", |
| 81 | "libutils", |
| 82 | "libvr_hwc-hal", |
| 83 | ], |
| 84 | export_shared_lib_headers: [ |
| 85 | "libvr_hwc-hal", |
| 86 | ], |
| 87 | cflags: [ |
| 88 | "-DLOG_TAG=\"vr_hwc\"", |
| 89 | "-Wall", |
| 90 | "-Werror", |
| 91 | ], |
Daniel Nicoara | aba4d01 | 2017-03-09 15:10:26 -0500 | [diff] [blame] | 92 | } |
| 93 | |
| 94 | cc_binary { |
Dan Willemsen | a5d6522 | 2018-09-14 21:27:01 -0700 | [diff] [blame] | 95 | name: "vr_hwc", |
| 96 | vintf_fragments: ["manifest_vr_hwc.xml"], |
| 97 | srcs: [ |
| 98 | "vr_hardware_composer_service.cpp", |
| 99 | ], |
| 100 | static_libs: [ |
| 101 | "libvr_hwc-impl", |
| 102 | // NOTE: This needs to be included after the *-impl lib otherwise the |
| 103 | // symbols in the *-binder library get optimized out. |
| 104 | "libvr_hwc-binder", |
| 105 | ], |
| 106 | shared_libs: [ |
| 107 | "android.frameworks.vr.composer@1.0", |
| 108 | "android.hardware.graphics.composer@2.1", |
| 109 | "libbase", |
| 110 | "libbinder", |
| 111 | "liblog", |
| 112 | "libhardware", |
| 113 | "libhwbinder", |
Steven Moreland | 2da1e07 | 2019-06-18 17:23:21 -0700 | [diff] [blame] | 114 | "libhidlbase", |
Dan Willemsen | a5d6522 | 2018-09-14 21:27:01 -0700 | [diff] [blame] | 115 | "libui", |
| 116 | "libutils", |
| 117 | "libvr_hwc-hal", |
| 118 | ], |
| 119 | cflags: [ |
| 120 | "-DLOG_TAG=\"vr_hwc\"", |
| 121 | "-Wall", |
| 122 | "-Werror", |
| 123 | ], |
| 124 | init_rc: [ |
| 125 | "vr_hwc.rc", |
| 126 | ], |
Daniel Nicoara | aba4d01 | 2017-03-09 15:10:26 -0500 | [diff] [blame] | 127 | } |
| 128 | |
Daniel Nicoara | aba4d01 | 2017-03-09 15:10:26 -0500 | [diff] [blame] | 129 | cc_test { |
Dan Willemsen | a5d6522 | 2018-09-14 21:27:01 -0700 | [diff] [blame] | 130 | name: "vr_hwc_test", |
| 131 | gtest: true, |
| 132 | srcs: ["tests/vr_composer_test.cpp"], |
| 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 | cflags: [ |
| 141 | "-Wall", |
| 142 | "-Werror", |
| 143 | // warnings in vr_composer_test.cpp to be fixed after merge of goog/master |
| 144 | "-Wno-sign-compare", |
| 145 | "-Wno-unused-parameter", |
| 146 | ], |
| 147 | shared_libs: [ |
| 148 | "libbase", |
| 149 | "libbinder", |
| 150 | "liblog", |
| 151 | "libui", |
| 152 | "libutils", |
| 153 | ], |
Daniel Nicoara | aba4d01 | 2017-03-09 15:10:26 -0500 | [diff] [blame] | 154 | } |