2013-04-18 19:04:48 +00:00
|
|
|
function createProject(vendor)
|
2013-04-30 02:04:08 +00:00
|
|
|
|
|
|
|
hasCL = findOpenCL(vendor)
|
2013-04-18 19:04:48 +00:00
|
|
|
|
|
|
|
if (hasCL) then
|
2013-04-30 02:04:08 +00:00
|
|
|
|
|
|
|
project ("App_Bullet3_OpenCL_Demos_" .. vendor)
|
2013-04-18 19:04:48 +00:00
|
|
|
|
|
|
|
initOpenCL(vendor)
|
2013-04-30 02:04:08 +00:00
|
|
|
|
2013-04-18 19:04:48 +00:00
|
|
|
language "C++"
|
|
|
|
|
|
|
|
kind "ConsoleApp"
|
|
|
|
targetdir "../../bin"
|
|
|
|
|
|
|
|
|
|
|
|
initOpenGL()
|
|
|
|
initGlew()
|
2013-04-30 02:04:08 +00:00
|
|
|
|
|
|
|
includedirs {
|
|
|
|
"..",
|
|
|
|
"../../src",
|
|
|
|
"../../btgui"
|
|
|
|
}
|
|
|
|
|
|
|
|
links {
|
|
|
|
"gwen",
|
|
|
|
"Bullet3Common",
|
|
|
|
"Bullet3Geometry",
|
|
|
|
"Bullet3Collision",
|
|
|
|
"Bullet3Dynamics",
|
|
|
|
"Bullet2FileLoader",
|
|
|
|
"Bullet3OpenCL_" .. vendor
|
|
|
|
|
|
|
|
}
|
2013-04-18 19:04:48 +00:00
|
|
|
|
|
|
|
files {
|
2013-04-30 02:04:08 +00:00
|
|
|
"**.cpp",
|
|
|
|
"**.h",
|
|
|
|
|
|
|
|
"../Wavefront/string_extra.cpp",
|
|
|
|
"../Wavefront/string_extra.h",
|
|
|
|
"../Wavefront/objLoader.cpp",
|
|
|
|
"../Wavefront/objLoader.h",
|
|
|
|
"../Wavefront/obj_parser.cpp",
|
|
|
|
"../Wavefront/obj_parser.h",
|
|
|
|
"../Wavefront/list.cpp",
|
|
|
|
"../Wavefront/list.h",
|
|
|
|
|
|
|
|
|
2013-04-18 19:04:48 +00:00
|
|
|
"../../btgui/OpenGLWindow/GLInstancingRenderer.cpp",
|
|
|
|
"../../btgui/OpenGLWindow/GLInstancingRenderer.h",
|
|
|
|
"../../btgui/OpenGLWindow/GLPrimitiveRenderer.cpp",
|
2013-04-30 02:04:08 +00:00
|
|
|
"../../btgui/OpenGLWindow/GLPrimitiveRenderer.h",
|
2013-04-18 19:04:48 +00:00
|
|
|
"../../btgui/OpenGLWindow/LoadShader.cpp",
|
|
|
|
"../../btgui/OpenGLWindow/LoadShader.h",
|
|
|
|
"../../btgui/OpenGLWindow/TwFonts.cpp",
|
|
|
|
"../../btgui/OpenGLWindow/TwFonts.h",
|
|
|
|
"../../btgui/OpenGLTrueTypeFont/fontstash.cpp",
|
|
|
|
"../../btgui/OpenGLTrueTypeFont/fontstash.h",
|
|
|
|
"../../btgui/OpenGLTrueTypeFont/opengl_fontstashcallbacks.cpp",
|
2013-04-30 02:04:08 +00:00
|
|
|
"../../btgui/OpenGLTrueTypeFont/opengl_fontstashcallbacks.h",
|
|
|
|
"../../btgui/FontFiles/OpenSans.cpp",
|
|
|
|
|
2013-04-18 19:04:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if os.is("Windows") then
|
|
|
|
files{
|
|
|
|
"../../btgui/OpenGLWindow/Win32OpenGLWindow.cpp",
|
|
|
|
"../../btgui/OpenGLWindow/Win32OpenGLWindow.h",
|
|
|
|
"../../btgui/OpenGLWindow/Win32Window.cpp",
|
|
|
|
"../../btgui/OpenGLWindow/Win32Window.h",
|
|
|
|
}
|
|
|
|
end
|
|
|
|
if os.is("Linux") then
|
|
|
|
files {
|
|
|
|
"../../btgui/OpenGLWindow/X11OpenGLWindow.cpp",
|
|
|
|
"../../btgui/OpenGLWindow/X11OpenGLWindows.h"
|
|
|
|
}
|
|
|
|
end
|
|
|
|
if os.is("MacOSX") then
|
|
|
|
links {"Cocoa.framework"}
|
|
|
|
files {
|
|
|
|
"../../btgui/OpenGLWindow/MacOpenGLWindow.h",
|
|
|
|
"../../btgui/OpenGLWindow/MacOpenGLWindow.mm",
|
|
|
|
}
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
createProject("Apple")
|
|
|
|
createProject("AMD")
|
|
|
|
createProject("Intel")
|
2013-04-30 02:04:08 +00:00
|
|
|
createProject("NVIDIA")
|