meson.build revision 8a1362ad
101e04c3fSmrg# Copyright © 2017 Intel Corporation 201e04c3fSmrg 301e04c3fSmrg# Permission is hereby granted, free of charge, to any person obtaining a copy 401e04c3fSmrg# of this software and associated documentation files (the "Software"), to deal 501e04c3fSmrg# in the Software without restriction, including without limitation the rights 601e04c3fSmrg# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 701e04c3fSmrg# copies of the Software, and to permit persons to whom the Software is 801e04c3fSmrg# furnished to do so, subject to the following conditions: 901e04c3fSmrg 1001e04c3fSmrg# The above copyright notice and this permission notice shall be included in 1101e04c3fSmrg# all copies or substantial portions of the Software. 1201e04c3fSmrg 1301e04c3fSmrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1401e04c3fSmrg# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1501e04c3fSmrg# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 1601e04c3fSmrg# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 1701e04c3fSmrg# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 1801e04c3fSmrg# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 1901e04c3fSmrg# SOFTWARE. 2001e04c3fSmrg 2101e04c3fSmrgvk_api_xml = files('registry/vk.xml') 2201e04c3fSmrg 2301e04c3fSmrginc_vulkan_wsi = include_directories('wsi') 2401e04c3fSmrg 258a1362adSmayavulkan_wsi_args = [] 268a1362adSmayavulkan_wsi_deps = [] 278a1362adSmayavulkan_wsi_list = [] 288a1362adSmaya 298a1362adSmayaif with_platform_x11 308a1362adSmaya vulkan_wsi_args += ['-DVK_USE_PLATFORM_XCB_KHR', '-DVK_USE_PLATFORM_XLIB_KHR'] 318a1362adSmaya vulkan_wsi_deps += [ 328a1362adSmaya dep_xcb, 338a1362adSmaya dep_x11_xcb, 348a1362adSmaya dep_xcb_dri2, 358a1362adSmaya dep_xcb_dri3, 368a1362adSmaya dep_xcb_present, 378a1362adSmaya dep_xcb_sync, 388a1362adSmaya dep_xshmfence, 398a1362adSmaya ] 408a1362adSmaya vulkan_wsi_list += ['xcb', 'x11'] 418a1362adSmayaendif 428a1362adSmayaif with_platform_wayland 438a1362adSmaya vulkan_wsi_args += ['-DVK_USE_PLATFORM_WAYLAND_KHR'] 448a1362adSmaya vulkan_wsi_deps += dep_wayland_client 458a1362adSmaya vulkan_wsi_list += ['wayland'] 468a1362adSmayaendif 478a1362adSmayaif with_platform_drm 488a1362adSmaya vulkan_wsi_args += '-DVK_USE_PLATFORM_DISPLAY_KHR' 498a1362adSmaya vulkan_wsi_deps += [dep_libdrm] 508a1362adSmaya vulkan_wsi_list += ['drm'] 518a1362adSmayaendif 528a1362adSmayaif with_xlib_lease 538a1362adSmaya vulkan_wsi_args += '-DVK_USE_PLATFORM_XLIB_XRANDR_EXT' 548a1362adSmaya vulkan_wsi_deps += [dep_xcb_xrandr, dep_xlib_xrandr] 558a1362adSmaya vulkan_wsi_list += ['xlib_xrandr'] 568a1362adSmayaendif 578a1362adSmaya 588a1362adSmaya 5901e04c3fSmrgsubdir('util') 6001e04c3fSmrgsubdir('wsi') 618a1362adSmayaif get_option('vulkan-overlay-layer') 628a1362adSmaya subdir('overlay-layer') 638a1362adSmayaendif 64