diff --git a/meson.build b/meson.build index a1e14ebd..5ed2d80f 100644 --- a/meson.build +++ b/meson.build @@ -111,7 +111,6 @@ inc_common = [ include_directories('include'), ] -dep_vulkan = dependency('vulkan', required: get_option('use_system_vulkan')) dep_pthread = dependency('threads') add_project_arguments( @@ -164,7 +163,8 @@ else dep_rt = null_dep endif -if dep_vulkan.found() +dep_vulkan = dependency('vulkan', required: get_option('use_system_vulkan')) +if dep_vulkan.found() and not get_option('use_system_vulkan').disabled() datadir = get_option('vulkan_datadir') if datadir == '' datadir = get_option('datadir') diff --git a/src/meson.build b/src/meson.build index 6849ecbe..d3d692ec 100644 --- a/src/meson.build +++ b/src/meson.build @@ -281,6 +281,7 @@ if get_option('mangoapp_layer') pre_args, ], dependencies : [ + dep_vulkan, json_dep ], gnu_symbol_visibility : 'hidden',