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