premake4 build: allow to dynamically load X11 if X11 system headers/library is missing
premake4 build: allow to dynamically load OpenGL/GLEW/glx if system headers are missing
This commit is contained in:
@@ -79,7 +79,9 @@
|
||||
"../GpuDemos/gwenUserInterface.h"
|
||||
}
|
||||
|
||||
if os.is("Linux") then links{"X11","pthread"} end
|
||||
if os.is("Linux") then
|
||||
initX11()
|
||||
end
|
||||
if os.is("MacOSX") then
|
||||
links{"Cocoa.framework"}
|
||||
end
|
||||
|
||||
@@ -32,7 +32,7 @@ project "App_BasicDemoCustomOpenGL2"
|
||||
"../../Demos/OpenGL/GLDebugFont.cpp",
|
||||
"../../Demos/OpenGL/GLDebugFont.h"
|
||||
}
|
||||
if os.is("Linux") then links{"X11","pthread"} end
|
||||
if os.is("Linux") then initX11() end
|
||||
|
||||
if os.is("MacOSX") then
|
||||
links{"Cocoa.framework"}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
if (OPENGL_FOUND)
|
||||
if (BUILD_BULLET3_DEMOS)
|
||||
SUBDIRS( AllBullet2Demos GpuDemos SimpleOpenGL3 )
|
||||
endif(BUILD_BULLET3_DEMOS)
|
||||
endif(OPENGL_FOUND)
|
||||
|
||||
@@ -91,7 +91,7 @@ function createProject(vendor)
|
||||
}
|
||||
end
|
||||
if os.is("Linux") then
|
||||
links{"X11","pthread"}
|
||||
initX11()
|
||||
files {
|
||||
"../../btgui/OpenGLWindow/X11OpenGLWindow.cpp",
|
||||
"../../btgui/OpenGLWindow/X11OpenGLWindows.h"
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
}
|
||||
|
||||
if os.is("Linux") then links {"X11","pthread"} end
|
||||
if os.is("Linux") then initX11() end
|
||||
|
||||
if os.is("MacOSX") then
|
||||
links{"Cocoa.framework"}
|
||||
|
||||
Reference in New Issue
Block a user