diff --git a/src/meson.build b/src/meson.build index e6c817fdc19..b5b4aa39068 100644 --- a/src/meson.build +++ b/src/meson.build @@ -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')) @@ -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},