Debian Codegraph @

src/gfxstream/guest/vulkan_enc/meson.build

raw
1 # Copyright 2022 Android Open Source Project
2 # SPDX-License-Identifier: MIT
3
4 output_host_path = meson.current_build_dir() + '/host/vulkan/cereal'
5 guest_enc_path = meson.current_build_dir()
6
7 gfxstream_guest_vk_autogen = custom_target(
8 'gfxstream_guest_vk_autogen',
9 output: [
10 'VkEncoder.h',
11 'vulkan_gfxstream_structure_type.h',
12 'goldfish_vk_counting_guest.h',
13 'goldfish_vk_deepcopy_guest.h',
14 'goldfish_vk_marshaling_guest.h',
15 'goldfish_vk_extension_structs_guest.h',
16 'goldfish_vk_reserved_marshaling_guest.h',
17 'goldfish_vk_transform_guest.h',
18 'goldfish_vk_counting_guest.cpp',
19 'goldfish_vk_deepcopy_guest.cpp',
20 'goldfish_vk_extension_structs_guest.cpp',
21 'goldfish_vk_marshaling_guest.cpp',
22 'goldfish_vk_reserved_marshaling_guest.cpp',
23 'goldfish_vk_transform_guest.cpp',
24 'VkEncoder.cpp',
25 'func_table.cpp',
26 ],
27 depend_files: genvk_depends,
28 env: {
29 'GFXSTREAM_NO_CLANG_FMT': '1',
30 'CEREAL_VARIANT' : 'guest',
31 'GFXSTREAM_GUEST_ENCODER_DIR': guest_enc_path,
32 },
33 input: [genvk, vk_api_xml, vk_gfxstream_xml],
34 command: [
35 prog_python,
36 '@INPUT0@',
37 '-registry',
38 '@INPUT1@',
39 '-registryGfxstream',
40 '@INPUT2@',
41 'cereal',
42 '-o',
43 output_host_path,
44 ],
45 )
46
47 vulkan_gfxstream_h = custom_target(
48 'vulkan_gfxstream_header',
49 output: ['vulkan_gfxstream.h'],
50 depend_files: genvk_depends,
51 env: {'GFXSTREAM_NO_CLANG_FMT': '1', 'CEREAL_VARIANT' : 'guest'},
52 input: [genvk, vk_gfxstream_xml],
53 command: [
54 prog_python,
55 '@INPUT0@',
56 '-registry',
57 '@INPUT1@',
58 'vulkan_gfxstream.h',
59 '-o',
60 guest_enc_path,
61 ],
62 )
63
64 gfxstream_vk_entrypoints = custom_target(
65 'gfxstream_vk_entrypoints',
66 input: [vk_entrypoints_gen, vk_api_xml],
67 output: ['gfxstream_vk_entrypoints.h', 'gfxstream_vk_entrypoints.c'],
68 command: [
69 prog_python,
70 '@INPUT0@',
71 '--xml',
72 '@INPUT1@',
73 '--proto',
74 '--weak',
75 '--out-h',
76 '@OUTPUT0@',
77 '--out-c',
78 '@OUTPUT1@',
79 '--prefix',
80 'gfxstream_vk',
81 '--beta',
82 with_vulkan_beta.to_string(),
83 ],
84 )
85
86 files_lib_vulkan_enc = files(
87 'CommandBufferStagingStream.cpp',
88 'DescriptorSetVirtualization.cpp',
89 'GfxStreamVulkanConnection.cpp',
90 'HostVisibleMemoryVirtualization.cpp',
91 'ResourceTracker.cpp',
92 'Resources.cpp',
93 'Validation.cpp',
94 'VulkanHandleMapping.cpp',
95 'VulkanStreamGuest.cpp',
96 'gfxstream_vk_private.cpp',
97 ) + sha1_h
98
99 files_lib_vulkan_enc_android = files(
100 'AndroidHardwareBuffer.cpp',
101 )