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