• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright © 2019 Intel Corporation
2# SPDX-License-Identifier: MIT
3
4vklayer_files = files(
5  'device_select_layer.c',
6)
7
8vklayer_deps = []
9vklayer_flags = []
10
11if with_platform_x11
12   vklayer_files += files('device_select_x11.c')
13   vklayer_deps += dep_xcb_dri3
14endif
15
16if with_platform_wayland
17   vklayer_files += files('device_select_wayland.c')
18   vklayer_files += [ wayland_drm_client_protocol_h, wayland_drm_protocol_c ]
19   vklayer_deps += dep_wayland_client
20endif
21
22shared_library(
23  'VkLayer_MESA_device_select',
24  vklayer_files,
25  c_args : [no_override_init_args, vklayer_flags],
26  gnu_symbol_visibility : 'hidden',
27  dependencies : [
28    idep_vulkan_util, idep_vulkan_wsi_headers, idep_mesautil, vklayer_deps,
29    dep_libdrm, dep_dl
30  ],
31  include_directories : [inc_include, inc_util, inc_src],
32  link_args : cc.get_supported_link_arguments(['-Wl,-Bsymbolic-functions', '-Wl,-z,relro']),
33  install : true
34)
35
36install_data(
37  files('VkLayer_MESA_device_select.json'),
38  install_dir : join_paths(get_option('datadir'), 'vulkan', 'implicit_layer.d'),
39  install_tag : 'runtime',
40)
41