add premake option 'enable-multithreading'

This commit is contained in:
Lunkhound
2018-03-16 23:42:43 -07:00
parent e526e48df8
commit 04e0d57dc1
2 changed files with 11 additions and 1 deletions

View File

@@ -182,6 +182,14 @@ end
trigger = "audio", trigger = "audio",
description = "Enable 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 if _OPTIONS["double"] then
defines {"BT_USE_DOUBLE_PRECISION"} defines {"BT_USE_DOUBLE_PRECISION"}
end end

View File

@@ -9,5 +9,7 @@
} }
files { files {
"*.cpp", "*.cpp",
"*.h" "*.h",
"TaskScheduler/*.cpp",
"TaskScheduler/*.h"
} }