Skip to content

Commit bc282cf

Browse files
evelikovflightlessmango
authored andcommitted
meson: remove use_system_vulkan/vulkan_datadir
Newer versions of the XML and headers don't play nice. In particular the VK_LAYER_EXPORT macro was removed and the XML was reworked quite significantly, so our generator no longer works. I was able to port newer version of the generator scripts from Mesa (where these were copied from originally), although these new scripts don't work with the old XML. Just drop the meson knobs and always use the subproject version. In practical terms this is identical to what Mesa also does... So Debian DFSG should not be _too_ upset. Closes: #927 Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
1 parent c037a0c commit bc282cf

File tree

4 files changed

+4
-19
lines changed

4 files changed

+4
-19
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ Install necessary development packages.
7272
- meson >=0.54
7373
- ninja (ninja-build)
7474
- glslang
75-
- vulkan headers if using `-Duse_system_vulkan=enabled` option with `meson`
7675
- libGL/libEGL (libglvnd, mesa-common-dev, mesa-libGL-devel etc)
7776
- X11 (libx11-dev)
7877
- XNVCtrl (libxnvctrl-dev), optional, use `-Dwith_xnvctrl=disabled` option with `meson` to disable

meson.build

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -165,21 +165,9 @@ else
165165
dep_rt = null_dep
166166
endif
167167

168-
dep_vulkan = dependency('vulkan', required: get_option('use_system_vulkan'))
169-
if dep_vulkan.found() and not get_option('use_system_vulkan').disabled()
170-
datadir = get_option('vulkan_datadir')
171-
if datadir == ''
172-
datadir = get_option('datadir')
173-
endif
174-
if not datadir.startswith('/')
175-
datadir = get_option('prefix') / datadir
176-
endif
177-
vk_api_xml = files(datadir / 'vulkan/registry/vk.xml')
178-
else
179-
vkh_sp = subproject('vulkan-headers')
180-
vk_api_xml = vkh_sp.get_variable('vulkan_api_xml')
181-
dep_vulkan = vkh_sp.get_variable('vulkan_headers_dep')
182-
endif
168+
vkh_sp = subproject('vulkan-headers')
169+
vk_api_xml = vkh_sp.get_variable('vulkan_api_xml')
170+
dep_vulkan = vkh_sp.get_variable('vulkan_headers_dep')
183171

184172
vk_enum_to_str = custom_target(
185173
'vk_enum_to_str',

meson_options.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
option('glibcxx_asserts', type : 'boolean', value : false)
2-
option('use_system_vulkan', type : 'feature', value : 'disabled', description: 'Use system vulkan headers instead of the provided ones')
32
option('use_system_spdlog', type : 'feature', value : 'disabled', description: 'Use system spdlog library')
4-
option('vulkan_datadir', type : 'string', value : '', description: 'Path to the system vulkan headers data directory if different from MangoHud\'s datadir')
53
option('append_libdir_mangohud', type : 'boolean', value : true, description: 'Append "mangohud" to libdir path or not.')
64
option('include_doc', type : 'boolean', value : true, description: 'Include the example config, man pages, appstream files etc.')
75
option('with_nvml', type : 'combo', value : 'enabled', choices: ['enabled', 'system', 'disabled'], description: 'Enable NVML support')

pkgbuild/PKGBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ sha256sums=('SKIP'
2525
'3c38f275d5792b1286391102594329e98b17737924b344f98312ab09929b74be'
2626
'b94997df68856753b72f0d7a3703b7d484d4745c567f3584ef97c96c25a5798e')
2727

28-
_build_args="-Dappend_libdir_mangohud=false -Dwith_xnvctrl=disabled -Duse_system_vulkan=enabled -Dmangoapp_layer=true -Dtests=disabled"
28+
_build_args="-Dappend_libdir_mangohud=false -Dwith_xnvctrl=disabled -Dmangoapp_layer=true -Dtests=disabled"
2929

3030
pkgver() {
3131
cd "$srcdir/mangohud"

0 commit comments

Comments
 (0)