• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 "device_generic_vulkan-cereal_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    //   SPDX-license-identifier-MIT
8    default_applicable_licenses: ["device_generic_vulkan-cereal_license"],
9}
10
11cc_library_static {
12    name: "gfxstream_vulkan_server",
13    defaults: [ "gfxstream_defaults" ],
14    static_libs: [
15        "gfxstream_base",
16        "gfxstream_glm",
17        "gfxstream_compressedTextures",
18        "gfxstream_emulated_textures",
19        "gfxstream_host_common",
20        "gfxstream_apigen_codec_common",
21        "gfxstream_vulkan_cereal_host",
22    ],
23    cflags: [
24        "-fvisibility=hidden",
25        "-Wno-inconsistent-missing-override",
26        "-Wno-unused-value",
27        "-Wno-return-type",
28        "-Wno-return-type-c-linkage",
29        "-Wno-unused-parameter",
30        "-Wno-unused-variable",
31        "-Wno-unused-function",
32        "-Wno-uninitialized",
33        "-Wno-unreachable-code-loop-increment",
34    ],
35    srcs: [
36        "BorrowedImageVk.cpp",
37        "BufferVk.cpp",
38        "ColorBufferVk.cpp",
39        "CompositorVk.cpp",
40        "DebugUtilsHelper.cpp",
41        "DisplayVk.cpp",
42        "DisplaySurfaceVk.cpp",
43        "SwapChainStateVk.cpp",
44        "VkAndroidNativeBuffer.cpp",
45        "VkCommonOperations.cpp",
46        "VkDecoder.cpp",
47        "VkDecoderGlobalState.cpp",
48        "VkDecoderSnapshot.cpp",
49        "VkFormatUtils.cpp",
50        "VkReconstruction.cpp",
51        "VulkanDispatch.cpp",
52        "VulkanHandleMapping.cpp",
53        "VulkanStream.cpp",
54        "vk_util.cpp",
55    ],
56    // http://b/178667698 - clang-tidy crashes with VulkanStream.cpp
57    // https://android-review.googlesource.com/c/device/generic/vulkan-cereal/+/1560695/
58    // http://b/255937616 - clang-tidy can take long with VkDecoder.cpp
59    tidy_disabled_srcs: [
60        "VulkanStream.cpp",
61        "VkDecoderGlobalState.cpp", // took more than 400 seconds
62        "VkDecoder.cpp",
63    ],
64}
65
66// Run with `atest --host gfxstream_vkformatutils_tests`
67cc_test_host {
68    name: "gfxstream_vkformatutils_tests",
69    defaults: [ "gfxstream_defaults" ],
70    srcs: [
71        "VkFormatUtils_unittest.cpp",
72    ],
73    shared_libs: [
74        "libbase",
75        "liblog",
76    ],
77    static_libs: [
78        "gfxstream_glm",
79        "gfxstream_host_common",
80        "gfxstream_vulkan_server",
81        "libgtest",
82        "libgmock",
83    ],
84    test_options: {
85        unit_test: true,
86    },
87}
88