Bob Badour | 3c53823 | 2021-02-12 21:26:48 -0800 | [diff] [blame] | 1 | package { |
| 2 | // See: http://go/android-license-faq |
| 3 | // A large-scale-change added 'default_applicable_licenses' to import |
| 4 | // all of the 'license_kinds' from "frameworks_native_license" |
| 5 | // to get the below license kinds: |
| 6 | // SPDX-license-identifier-Apache-2.0 |
| 7 | default_applicable_licenses: ["frameworks_native_license"], |
| 8 | } |
| 9 | |
Daniel Nicoara | 4251e92 | 2017-04-13 15:19:15 -0400 | [diff] [blame] | 10 | cc_library_shared { |
Dan Willemsen | a5d6522 | 2018-09-14 21:27:01 -0700 | [diff] [blame] | 11 | name: "libvr_hwc-hal", |
Daniel Nicoara | 4251e92 | 2017-04-13 15:19:15 -0400 | [diff] [blame] | 12 | |
Roman Kiryanov | dd122c5 | 2020-11-17 22:59:38 -0800 | [diff] [blame] | 13 | system_ext_specific: true, |
| 14 | |
Dan Willemsen | a5d6522 | 2018-09-14 21:27:01 -0700 | [diff] [blame] | 15 | srcs: [ |
| 16 | "impl/vr_hwc.cpp", |
| 17 | "impl/vr_composer_client.cpp", |
| 18 | ], |
Daniel Nicoara | 4251e92 | 2017-04-13 15:19:15 -0400 | [diff] [blame] | 19 | |
Dan Willemsen | a5d6522 | 2018-09-14 21:27:01 -0700 | [diff] [blame] | 20 | static_libs: [ |
| 21 | "libbroadcastring", |
| 22 | "libdisplay", |
| 23 | ], |
Daniel Nicoara | 4251e92 | 2017-04-13 15:19:15 -0400 | [diff] [blame] | 24 | |
Dan Willemsen | a5d6522 | 2018-09-14 21:27:01 -0700 | [diff] [blame] | 25 | shared_libs: [ |
mamik | 94e91f6 | 2019-08-19 09:11:33 -0700 | [diff] [blame] | 26 | "android.frameworks.vr.composer@2.0", |
Dan Willemsen | a5d6522 | 2018-09-14 21:27:01 -0700 | [diff] [blame] | 27 | "android.hardware.graphics.composer@2.1", |
mamik | 94e91f6 | 2019-08-19 09:11:33 -0700 | [diff] [blame] | 28 | "android.hardware.graphics.composer@2.2", |
| 29 | "android.hardware.graphics.composer@2.3", |
Marissa Wall | 72a90b6 | 2019-08-01 14:30:50 -0700 | [diff] [blame] | 30 | "android.hardware.graphics.composer@2.1-resources", |
Dan Willemsen | a5d6522 | 2018-09-14 21:27:01 -0700 | [diff] [blame] | 31 | "android.hardware.graphics.mapper@2.0", |
| 32 | "android.hardware.graphics.mapper@3.0", |
Marissa Wall | 87c8ba7 | 2019-06-20 14:20:52 -0700 | [diff] [blame] | 33 | "android.hardware.graphics.mapper@4.0", |
Dan Willemsen | a5d6522 | 2018-09-14 21:27:01 -0700 | [diff] [blame] | 34 | "libbase", |
| 35 | "libbufferhubqueue", |
| 36 | "libbinder", |
| 37 | "libcutils", |
| 38 | "libfmq", |
| 39 | "libhardware", |
| 40 | "libhidlbase", |
Dan Willemsen | a5d6522 | 2018-09-14 21:27:01 -0700 | [diff] [blame] | 41 | "liblog", |
| 42 | "libsync", |
| 43 | "libui", |
| 44 | "libutils", |
| 45 | "libpdx_default_transport", |
| 46 | ], |
Daniel Nicoara | 4251e92 | 2017-04-13 15:19:15 -0400 | [diff] [blame] | 47 | |
Dan Willemsen | a5d6522 | 2018-09-14 21:27:01 -0700 | [diff] [blame] | 48 | header_libs: [ |
| 49 | "android.hardware.graphics.composer@2.1-command-buffer", |
mamik | 94e91f6 | 2019-08-19 09:11:33 -0700 | [diff] [blame] | 50 | "android.hardware.graphics.composer@2.3-hal", |
Dan Willemsen | a5d6522 | 2018-09-14 21:27:01 -0700 | [diff] [blame] | 51 | ], |
Chia-I Wu | d15d2d2 | 2018-01-29 13:59:18 -0800 | [diff] [blame] | 52 | |
Dan Willemsen | a5d6522 | 2018-09-14 21:27:01 -0700 | [diff] [blame] | 53 | export_header_lib_headers: [ |
mamik | 94e91f6 | 2019-08-19 09:11:33 -0700 | [diff] [blame] | 54 | "android.hardware.graphics.composer@2.3-hal", |
Dan Willemsen | a5d6522 | 2018-09-14 21:27:01 -0700 | [diff] [blame] | 55 | ], |
Courtney Goeltzenleuchter | 8755122 | 2018-01-16 14:00:09 -0800 | [diff] [blame] | 56 | |
Dan Willemsen | a5d6522 | 2018-09-14 21:27:01 -0700 | [diff] [blame] | 57 | export_static_lib_headers: [ |
| 58 | "libdisplay", |
| 59 | ], |
Steven Thomas | dfde8fa | 2018-04-19 16:00:58 -0700 | [diff] [blame] | 60 | |
Dan Willemsen | a5d6522 | 2018-09-14 21:27:01 -0700 | [diff] [blame] | 61 | export_shared_lib_headers: [ |
mamik | 94e91f6 | 2019-08-19 09:11:33 -0700 | [diff] [blame] | 62 | "android.frameworks.vr.composer@2.0", |
Dan Willemsen | a5d6522 | 2018-09-14 21:27:01 -0700 | [diff] [blame] | 63 | "android.hardware.graphics.composer@2.1", |
mamik | 94e91f6 | 2019-08-19 09:11:33 -0700 | [diff] [blame] | 64 | "android.hardware.graphics.composer@2.2", |
| 65 | "android.hardware.graphics.composer@2.3", |
Dan Willemsen | a5d6522 | 2018-09-14 21:27:01 -0700 | [diff] [blame] | 66 | ], |
Daniel Nicoara | 4251e92 | 2017-04-13 15:19:15 -0400 | [diff] [blame] | 67 | |
Dan Willemsen | a5d6522 | 2018-09-14 21:27:01 -0700 | [diff] [blame] | 68 | export_include_dirs: ["."], |
Daniel Nicoara | 4251e92 | 2017-04-13 15:19:15 -0400 | [diff] [blame] | 69 | |
Dan Willemsen | a5d6522 | 2018-09-14 21:27:01 -0700 | [diff] [blame] | 70 | cflags: [ |
| 71 | "-DLOG_TAG=\"vr_hwc\"", |
| 72 | "-DATRACE_TAG=ATRACE_TAG_GRAPHICS", |
| 73 | "-Wall", |
| 74 | "-Werror", |
| 75 | "-Wno-error=unused-private-field", |
| 76 | // Warnings in vr_hwc.cpp to be fixed after sync of goog/master. |
| 77 | "-Wno-sign-compare", |
| 78 | "-Wno-unused-parameter", |
| 79 | ], |
Daniel Nicoara | 4251e92 | 2017-04-13 15:19:15 -0400 | [diff] [blame] | 80 | |
| 81 | } |
| 82 | |
Daniel Nicoara | aba4d01 | 2017-03-09 15:10:26 -0500 | [diff] [blame] | 83 | cc_library_static { |
Dan Willemsen | a5d6522 | 2018-09-14 21:27:01 -0700 | [diff] [blame] | 84 | name: "libvr_hwc-impl", |
| 85 | srcs: [ |
| 86 | "vr_composer.cpp", |
| 87 | ], |
| 88 | static_libs: [ |
| 89 | "libvr_hwc-binder", |
| 90 | ], |
| 91 | shared_libs: [ |
| 92 | "libbase", |
| 93 | "libbinder", |
| 94 | "liblog", |
| 95 | "libui", |
| 96 | "libutils", |
| 97 | "libvr_hwc-hal", |
| 98 | ], |
| 99 | export_shared_lib_headers: [ |
| 100 | "libvr_hwc-hal", |
| 101 | ], |
| 102 | cflags: [ |
| 103 | "-DLOG_TAG=\"vr_hwc\"", |
| 104 | "-Wall", |
| 105 | "-Werror", |
| 106 | ], |
Daniel Nicoara | aba4d01 | 2017-03-09 15:10:26 -0500 | [diff] [blame] | 107 | } |
| 108 | |
Daniel Nicoara | aba4d01 | 2017-03-09 15:10:26 -0500 | [diff] [blame] | 109 | cc_test { |
Dan Willemsen | a5d6522 | 2018-09-14 21:27:01 -0700 | [diff] [blame] | 110 | name: "vr_hwc_test", |
| 111 | gtest: true, |
| 112 | srcs: ["tests/vr_composer_test.cpp"], |
| 113 | static_libs: [ |
| 114 | "libgtest", |
| 115 | "libvr_hwc-impl", |
| 116 | // NOTE: This needs to be included after the *-impl lib otherwise the |
| 117 | // symbols in the *-binder library get optimized out. |
| 118 | "libvr_hwc-binder", |
| 119 | ], |
| 120 | cflags: [ |
| 121 | "-Wall", |
| 122 | "-Werror", |
| 123 | // warnings in vr_composer_test.cpp to be fixed after merge of goog/master |
| 124 | "-Wno-sign-compare", |
| 125 | "-Wno-unused-parameter", |
| 126 | ], |
| 127 | shared_libs: [ |
| 128 | "libbase", |
| 129 | "libbinder", |
| 130 | "liblog", |
| 131 | "libui", |
| 132 | "libutils", |
| 133 | ], |
Daniel Nicoara | aba4d01 | 2017-03-09 15:10:26 -0500 | [diff] [blame] | 134 | } |