create premake4 solutions for the various OpenCL configurations (AMD, NVIDIA, Intel OpenCL SDKs for Windows)
primarily to distribute project files that work. CMake is still better supported in general (not all demos/libs have been ported) Revert a recent change about warnings: %zu doesn't work in printf, %d does
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
--add the 0 so the solution comes first in the directory (when sorted on name)
|
||||
--print "uncomment this hello premake4 world for debugging the script"
|
||||
|
||||
solution "0BulletSolution"
|
||||
|
||||
@@ -17,6 +18,25 @@ solution "0BulletSolution"
|
||||
description = "Enable DirectX11 build"
|
||||
}
|
||||
|
||||
newoption {
|
||||
trigger = "with-opencl",
|
||||
description = "Enable OpenCL builds (various SDKs)"
|
||||
}
|
||||
|
||||
newoption {
|
||||
trigger = "with-opencl-amd",
|
||||
description = "Enable OpenCL builds (AMD SDK)"
|
||||
}
|
||||
|
||||
newoption {
|
||||
trigger = "with-opencl-intel",
|
||||
description = "Enable OpenCL builds (Intel SDK)"
|
||||
}
|
||||
newoption {
|
||||
trigger = "with-opencl-nvidia",
|
||||
description = "Enable OpenCL builds (NVIDIA SDK)"
|
||||
}
|
||||
|
||||
|
||||
configurations {"Release", "Debug"}
|
||||
configuration "Release"
|
||||
@@ -63,9 +83,39 @@ end
|
||||
include "../src/BulletMultiThreaded/GpuSoftBodySolvers/DX11"
|
||||
end
|
||||
|
||||
--choose any OpenCL sdk that is installed on the system
|
||||
if _OPTIONS["with-opencl"] then
|
||||
include "../Demos/OpenCLClothDemo/AMD"
|
||||
include "../src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/AMD"
|
||||
include "../Demos/OpenCLClothDemo/NVidia"
|
||||
include "../src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/NVidia"
|
||||
include "../Demos/OpenCLClothDemo/Intel"
|
||||
include "../src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/Intel"
|
||||
end
|
||||
|
||||
--choose a particular OpenCL sdk, this is useful for distributing project files that just work for one OpenCL SDK
|
||||
if _OPTIONS["with-opencl-amd"] then
|
||||
include "../Demos/OpenCLClothDemo/AMD"
|
||||
include "../src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/AMD"
|
||||
end
|
||||
|
||||
if not _OPTIONS["with-dx11"] and not _OPTIONS["with-nacl"] then
|
||||
if _OPTIONS["with-opencl-intel"] then
|
||||
include "../Demos/OpenCLClothDemo/Intel"
|
||||
include "../src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/Intel"
|
||||
end
|
||||
|
||||
if _OPTIONS["with-opencl-nvidia"] then
|
||||
include "../Demos/OpenCLClothDemo/NVidia"
|
||||
include "../src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/NVidia"
|
||||
end
|
||||
|
||||
if not _OPTIONS["with-opencl-amd"] and
|
||||
not _OPTIONS["with-opencl-nvidia"] and
|
||||
not _OPTIONS["with-opencl-intel"] and
|
||||
not _OPTIONS["with-opencl"] and
|
||||
not _OPTIONS["with-dx11"] and
|
||||
not _OPTIONS["with-nacl"] then
|
||||
|
||||
include "../Demos"
|
||||
include "../Extras"
|
||||
end
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
|
||||
premake4 --with-dx11 vs2008
|
||||
|
||||
rename vs2008 vs2008_dx11
|
||||
pause
|
||||
36
msvc/vs_all.bat
Normal file
36
msvc/vs_all.bat
Normal file
@@ -0,0 +1,36 @@
|
||||
rem this script is mainly to create distributable visual studio project file
|
||||
|
||||
|
||||
premake4 --with-opencl-nvidia vs2008
|
||||
rename vs2008 vs2008_opencl_nvidia
|
||||
|
||||
premake4 --with-opencl-intel vs2008
|
||||
rename vs2008 vs2008_opencl_intel
|
||||
|
||||
premake4 --with-opencl-amd vs2008
|
||||
rename vs2008 vs2008_opencl_amd
|
||||
|
||||
premake4 --with-opencl-nvidia vs2010
|
||||
rename vs2010 vs2010_opencl_nvidia
|
||||
|
||||
premake4 --with-opencl-intel vs2010
|
||||
rename vs2010 vs2010_opencl_intel
|
||||
|
||||
premake4 --with-opencl-amd vs2010
|
||||
rename vs2010 vs2010_opencl_amd
|
||||
|
||||
premake4 --with-dx11 vs2008
|
||||
rename vs2008 vs2008_dx11
|
||||
|
||||
premake4 --with-dx11 vs2010
|
||||
rename vs2010 vs2010_dx11
|
||||
|
||||
premake4 --with-dx11 vs2005
|
||||
rename vs2005 vs2005_dx11
|
||||
|
||||
premake4 vs2005
|
||||
premake4 vs2008
|
||||
premake4 vs2010
|
||||
|
||||
|
||||
pause
|
||||
Reference in New Issue
Block a user