To switch to a different window system
Export NV_WINSYS
with one of these values:
egldevice
wayland
x11
direct-to-display (For Vulkan samples only)
Binaries are saved in separate subdirectories depending on the window system with the same name, so you can maintain the output for multiple window systems.
For example, building gears
for all the window systems results in the following directories being populated with gears executables:
<top>/samples/opengles2/gears/<window_system>/gears