Skip to content

Commit

Permalink
fix vulkan
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Adenis-Lamarre <[email protected]>
  • Loading branch information
nadenislamarre committed Mar 23, 2022
1 parent c8614e3 commit ac9ba3e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ if is_unixy
endif
endif

if get_option('use_vulkan')
pre_args += '-DHAVE_VULKAN'
endif

link_args = cc.get_supported_link_arguments(['-Wl,-Bsymbolic-functions', '-Wl,-z,relro', '-Wl,--exclude-libs,ALL', '-lGL'])
# meson fails to check version-script so just force add
link_args += '-Wl,--version-script,@0@'.format(join_paths(meson.current_source_dir(), 'mangohud.version'))
Expand Down Expand Up @@ -308,10 +312,6 @@ if get_option('include_doc')
)
endif

if get_option('use_vulkan')
pre_args += '-DHAVE_VULKAN'
endif

configure_file(input : 'app/layer.json.in',
output : 'libMangoApp.json',
configuration : {'ld_libdir_mangohud' : ld_libdir_mangohud_vk},
Expand Down

0 comments on commit ac9ba3e

Please sign in to comment.