From 10e81fc50978a1a695f9d5073887e2a043b99e37 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 6 Oct 2013 11:32:00 +0300 Subject: [PATCH] Use logic operators to collapse nested conditionals in Build file --- Build | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/Build b/Build index 421a84e..4862e3d 100644 --- a/Build +++ b/Build @@ -52,18 +52,12 @@ package "mspgui" require "opengl"; }; - if_arch "!windows" + if_arch "!windows & !darwin" { - if_arch "!darwin" + feature "xrandr" "Include support for video mode switching with XRandR"; + if_feature "xrandr" { - feature "xrandr" "Include support for video mode switching with XRandR"; - if_feature "xrandr" - { - build_info - { - library "Xrandr"; - }; - }; + require "xrandr"; }; }; @@ -95,15 +89,12 @@ package "mspgui" overlay "cgl"; }; }; - if_arch "!windows" + if_arch "!windows & !darwin" { - if_arch "!darwin" + overlay "x11"; + if_feature "opengl" { - overlay "x11"; - if_feature "opengl" - { - overlay "glx"; - }; + overlay "glx"; }; }; install true; -- 2.45.2