@@ -45,8 +45,13 @@ libdl = cpp.find_library('dl')
4545udev = dependency (' libudev' )
4646json = subproject (' wf-json' , default_options : [' install_header=true' ]).get_variable (' wfjson' )
4747
48- wlroots_base_version = ' 0.19'
49- wlroots_dep_name = ' wlroots-' + wlroots_base_version
48+ wlroots_base_version = ' 0.20'
49+ if get_option (' vulkan_effects' )
50+ wlroots_dep_name = ' wlroots-vkfx-' + wlroots_base_version
51+ else
52+ wlroots_dep_name = ' wlroots-' + wlroots_base_version
53+ endif
54+
5055wlroots_min_version = ' >=' + wlroots_base_version + ' .0'
5156wlroots_max_version = ' <=' + wlroots_base_version + ' .99'
5257
@@ -60,7 +65,6 @@ elif get_option('use_system_wlroots').enabled()
6065 wlroots = dependency (wlroots_dep_name, version : [wlroots_min_version, wlroots_max_version], required : true )
6166
6267elif get_option (' use_system_wlroots' ).auto()
63- message ( ' SEARCHING FOR WLROOTS' )
6468 wlroots = dependency (wlroots_dep_name, version : [wlroots_min_version, wlroots_max_version], required : false )
6569 use_system_wlroots = true
6670 if not wlroots.found()
@@ -195,12 +199,11 @@ else
195199endif
196200
197201
198- use_vulkan = vulkan.found() and wlroots_features[' vulkan_renderer' ] and not get_option (' vulkan_effects' ).disabled()
199- conf_data.set(' WF_SHADER_DIR' , join_paths (get_option (' prefix' ), ' share' , ' wayfire' , ' shaders' ))
202+ use_vulkan = vulkan.found() and wlroots_features[' vulkan_renderer' ] and get_option (' vulkan_effects' )
200203if use_vulkan
201- conf_data.set(' WF_HAS_VULKAN ' , 1 )
204+ conf_data.set(' WF_HAS_VULKANFX ' , 1 )
202205else
203- conf_data.set(' WF_HAS_VULKAN ' , 0 )
206+ conf_data.set(' WF_HAS_VULKANFX ' , 0 )
204207endif
205208
206209wayfire_conf_inc = include_directories ([' .' ])
@@ -278,6 +281,7 @@ summary = [
278281 ' x11-backend: @0@' .format(wlroots_features[' x11_backend' ]),
279282 ' imageio: @0@' .format(conf_data.get(' BUILD_WITH_IMAGEIO' )),
280283 ' gles32: @0@' .format(conf_data.get(' USE_GLES32' )),
284+ ' vulkan effects: @0@' .format(conf_data.get(' WF_HAS_VULKANFX' )),
281285 ' print trace: @0@' .format(print_trace),
282286 ' unit tests: @0@' .format(doctest.found()),
283287 ' ----------------' ,
0 commit comments