• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2022 Android Open Source Project
2# SPDX-License-Identifier: MIT
3
4files_lib_vulkan_gfxstream = files(
5  'gfxstream_vk_device.cpp',
6  'gfxstream_vk_cmd.cpp',
7  'gfxstream_vk_wsi.cpp'
8)
9
10lib_vulkan_gfxstream = shared_library(
11   'vulkan_gfxstream',
12   files_lib_vulkan_gfxstream + files_lib_vulkan_enc + gfxstream_vk_entrypoints + gfxstream_guest_vk_autogen,
13   cpp_args: gfxstream_guest_args,
14   include_directories: [inc_vulkan_headers, inc_opengl_headers, inc_android_emu,
15                         inc_android_compat, inc_opengl_system, inc_guest_iostream,
16                         inc_opengl_codec, inc_vulkan_enc, inc_platform,
17                         inc_goldfish_address_space, inc_system, inc_include, inc_src,
18                         inc_platform, inc_codec_common],
19   link_with: [lib_android_compat, lib_emu_android_base, lib_stream,
20               libvulkan_wsi, lib_platform],
21   link_args: [vulkan_icd_link_args, ld_args_bsymbolic, ld_args_gc_sections],
22   link_depends: vulkan_icd_link_depends,
23   dependencies: [dependency('libdrm'), idep_vulkan_wsi_headers,
24                  idep_vulkan_runtime_headers, idep_vulkan_runtime,
25                  idep_vulkan_util_headers, idep_vulkan_wsi],
26   install: true,
27)
28
29gfxstream_icd = custom_target(
30  'gfxstream_icd',
31  input : [vk_icd_gen, vk_api_xml],
32  output : 'gfxstream_icd.@0@.json'.format(host_machine.cpu()),
33  command : [
34    prog_python, '@INPUT0@',
35    '--api-version', '1.1', '--xml', '@INPUT1@',
36    '--lib-path', join_paths(get_option('prefix'), get_option('libdir'),
37                             'libvulkan_gfxstream.so'),
38    '--out', '@OUTPUT@',
39  ],
40  build_by_default : true,
41  install_dir : with_vulkan_icd_dir,
42  install : true,
43)
44