Make CgGL optional if Cg wasn't found

This commit is contained in:
rdb 2009-10-16 13:52:32 +00:00
parent 3f6192c963
commit c2be49507f

View File

@ -413,7 +413,8 @@ if (COMPILER=="LINUX"):
PkgEnable("WX", tool = "wx-config") PkgEnable("WX", tool = "wx-config")
if (sys.platform != "darwin"): if (sys.platform != "darwin"):
# CgGL is covered by the Cg framework, and we don't need X11 components on OSX # CgGL is covered by the Cg framework, and we don't need X11 components on OSX
PkgEnable("CGGL", "", ("CgGL"), "Cg/cgGL.h", framework = "CgGL") if (PkgSkip("NVIDIACG")==0):
PkgEnable("CGGL", "", ("CgGL"), "Cg/cgGL.h")
PkgEnable("X11", "x11", "X11", "Xlib.h") PkgEnable("X11", "x11", "X11", "Xlib.h")
PkgEnable("XF86DGA", "xxf86dga", "Xxf86dga", "X11/extensions/xf86dga.h") PkgEnable("XF86DGA", "xxf86dga", "Xxf86dga", "X11/extensions/xf86dga.h")