1package { 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 10cc_library_shared { 11 name: "libvr_hwc-hal", 12 13 system_ext_specific: true, 14 15 srcs: [ 16 "impl/vr_hwc.cpp", 17 "impl/vr_composer_client.cpp", 18 ], 19 20 static_libs: [ 21 "libbroadcastring", 22 "libdisplay", 23 ], 24 25 shared_libs: [ 26 "android.frameworks.vr.composer@2.0", 27 "android.hardware.graphics.composer@2.1", 28 "android.hardware.graphics.composer@2.2", 29 "android.hardware.graphics.composer@2.3", 30 "android.hardware.graphics.composer@2.1-resources", 31 "android.hardware.graphics.mapper@2.0", 32 "android.hardware.graphics.mapper@3.0", 33 "android.hardware.graphics.mapper@4.0", 34 "libbase", 35 "libbufferhubqueue", 36 "libbinder", 37 "libcutils", 38 "libfmq", 39 "libhardware", 40 "libhidlbase", 41 "liblog", 42 "libsync", 43 "libui", 44 "libutils", 45 "libpdx_default_transport", 46 ], 47 48 header_libs: [ 49 "android.hardware.graphics.composer@2.1-command-buffer", 50 "android.hardware.graphics.composer@2.3-hal", 51 ], 52 53 export_header_lib_headers: [ 54 "android.hardware.graphics.composer@2.3-hal", 55 ], 56 57 export_static_lib_headers: [ 58 "libdisplay", 59 ], 60 61 export_shared_lib_headers: [ 62 "android.frameworks.vr.composer@2.0", 63 "android.hardware.graphics.composer@2.1", 64 "android.hardware.graphics.composer@2.2", 65 "android.hardware.graphics.composer@2.3", 66 ], 67 68 export_include_dirs: ["."], 69 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 ], 80 81} 82 83cc_library_static { 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 ], 107} 108 109cc_test { 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 ], 134} 135