diff --git a/build3/premake4.lua b/build3/premake4.lua index a39e926e5..d49b9d440 100644 --- a/build3/premake4.lua +++ b/build3/premake4.lua @@ -182,6 +182,14 @@ end trigger = "audio", description = "Enable audio" } + newoption + { + trigger = "enable_multithreading", + description = "enable CPU multithreading for bullet2 libs" + } + if _OPTIONS["enable_multithreading"] then + defines {"BT_THREADSAFE=1"} + end if _OPTIONS["double"] then defines {"BT_USE_DOUBLE_PRECISION"} end diff --git a/src/LinearMath/premake4.lua b/src/LinearMath/premake4.lua index 5f0fda6bf..3765811a9 100644 --- a/src/LinearMath/premake4.lua +++ b/src/LinearMath/premake4.lua @@ -9,5 +9,7 @@ } files { "*.cpp", - "*.h" + "*.h", + "TaskScheduler/*.cpp", + "TaskScheduler/*.h" }