1package { 2 default_team: "trendy_team_android_developer_tools", 3 // See: http://go/android-license-faq 4 // A large-scale-change added 'default_applicable_licenses' to import 5 // all of the 'license_kinds' from "hardware_google_gfxstream_license" 6 // to get the below license kinds: 7 // SPDX-license-identifier-Apache-2.0 8 // SPDX-license-identifier-MIT 9 default_applicable_licenses: ["hardware_google_gfxstream_license"], 10} 11 12cc_library_static { 13 name: "libgfxstream_host_vulkan_server", 14 defaults: [ 15 "gfxstream_defaults", 16 "gfxstream_host_cc_defaults", 17 ], 18 header_libs: [ 19 "gfxstream_gl_host_common_headers", 20 "gfxstream_opengl_headers", 21 "libgfxstream_host_vulkan_cereal_common", 22 ], 23 whole_static_libs: [ 24 "libgfxstream_host_tracing", 25 ], 26 shared_libs: [ 27 "liblog", 28 ], 29 static_libs: [ 30 "gfxstream_base", 31 "gfxstream_host_common", 32 "libgfxstream_host_apigen_codec_common", 33 "libgfxstream_host_backend", 34 "libgfxstream_host_compressedtextures", 35 "libgfxstream_host_features", 36 "libgfxstream_host_vulkan_cereal", 37 "libgfxstream_host_vulkan_emulatedtextures", 38 "libgfxstream_thirdparty_glm", 39 ], 40 cflags: [ 41 "-fvisibility=hidden", 42 "-Wno-inconsistent-missing-override", 43 "-Wno-unused-value", 44 "-Wno-return-type", 45 "-Wno-return-type-c-linkage", 46 "-Wno-unused-parameter", 47 "-Wno-unused-variable", 48 "-Wno-unused-function", 49 "-Wno-uninitialized", 50 "-Wno-unreachable-code-loop-increment", 51 ], 52 srcs: [ 53 "BorrowedImageVk.cpp", 54 "BufferVk.cpp", 55 "ColorBufferVk.cpp", 56 "CompositorVk.cpp", 57 "DebugUtilsHelper.cpp", 58 "DeviceLostHelper.cpp", 59 "DeviceOpTracker.cpp", 60 "DisplaySurfaceVk.cpp", 61 "DisplayVk.cpp", 62 "PostWorkerVk.cpp", 63 "RenderThreadInfoVk.cpp", 64 "SwapChainStateVk.cpp", 65 "vk_util.cpp", 66 "VkAndroidNativeBuffer.cpp", 67 "VkCommonOperations.cpp", 68 "VkDecoder.cpp", 69 "VkDecoderGlobalState.cpp", 70 "VkDecoderSnapshot.cpp", 71 "VkDecoderSnapshotUtils.cpp", 72 "VkEmulatedPhysicalDeviceMemory.cpp", 73 "VkEmulatedPhysicalDeviceQueue.cpp", 74 "VkFormatUtils.cpp", 75 "VkReconstruction.cpp", 76 "VulkanBoxedHandles.cpp", 77 "VulkanDispatch.cpp", 78 "VulkanHandleMapping.cpp", 79 "VulkanStream.cpp", 80 ], 81 // http://b/178667698 - clang-tidy crashes with VulkanStream.cpp 82 // https://android-review.googlesource.com/c/device/generic/vulkan-cereal/+/1560695/ 83 // http://b/255937616 - clang-tidy can take long with VkDecoder.cpp 84 tidy_disabled_srcs: [ 85 "VulkanStream.cpp", 86 "VkDecoderGlobalState.cpp", // took more than 400 seconds 87 "VkDecoder.cpp", 88 ], 89} 90 91// Run with `atest --host gfxstream_vkformatutils_tests` 92cc_test_host { 93 name: "gfxstream_vkformatutils_tests", 94 defaults: ["gfxstream_defaults"], 95 srcs: [ 96 "VkFormatUtils_unittest.cpp", 97 ], 98 shared_libs: [ 99 "libbase", 100 "liblog", 101 ], 102 static_libs: [ 103 "libgfxstream_thirdparty_glm", 104 "gfxstream_host_common", 105 "libgfxstream_host_vulkan_server", 106 "libgtest", 107 "libgmock", 108 ], 109 test_options: { 110 unit_test: true, 111 }, 112} 113 114// Run with `atest --host gfxstream_vkguestmemoryutils_tests` 115cc_test_host { 116 name: "gfxstream_vkemulatedphysicaldevicememory_tests", 117 defaults: ["gfxstream_defaults"], 118 srcs: [ 119 "VkEmulatedPhysicalDeviceMemoryTests.cpp", 120 ], 121 shared_libs: [ 122 "libbase", 123 "liblog", 124 ], 125 static_libs: [ 126 "gfxstream_base", 127 "gfxstream_host_common", 128 "libgfxstream_host_features", 129 "libgfxstream_host_vulkan_server", 130 "libgtest", 131 "libgmock", 132 ], 133 test_options: { 134 unit_test: true, 135 }, 136 test_suites: [ 137 "general-tests", 138 ], 139} 140 141// Run with `atest --host gfxstream_vkguestqueueutils_tests` 142cc_test_host { 143 name: "gfxstream_vkemulatedphysicaldevicequeue_tests", 144 defaults: ["gfxstream_defaults"], 145 srcs: [ 146 "VkEmulatedPhysicalDeviceQueueTests.cpp", 147 ], 148 shared_libs: [ 149 "libbase", 150 "liblog", 151 ], 152 static_libs: [ 153 "gfxstream_base", 154 "gfxstream_host_common", 155 "libgfxstream_host_features", 156 "libgfxstream_host_vulkan_server", 157 "libgtest", 158 "libgmock", 159 ], 160 test_options: { 161 unit_test: true, 162 }, 163 test_suites: [ 164 "general-tests", 165 ], 166} 167