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