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