Upgrade to Newton 3.14 and make it a thirdparty lib
This commit is contained in:
38
thirdparty/build/newton.lua
vendored
Normal file
38
thirdparty/build/newton.lua
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
LIBRARY.Name = "newton"
|
||||
|
||||
LIBRARY.Defines = {
|
||||
"_CRT_SECURE_NO_WARNINGS",
|
||||
"_NEWTON_STATIC_LIB",
|
||||
}
|
||||
|
||||
LIBRARY.OsDefines.Windows = {
|
||||
"_WINDOWS"
|
||||
}
|
||||
|
||||
LIBRARY.Language = "C++"
|
||||
|
||||
LIBRARY.Files = {
|
||||
"../thirdparty/include/newton/**.h",
|
||||
"../thirdparty/src/newton/**.h",
|
||||
"../thirdparty/src/newton/**.c",
|
||||
"../thirdparty/src/newton/**.cpp",
|
||||
}
|
||||
|
||||
LIBRARY.Includes = {
|
||||
"../thirdparty/src/newton/dgCore",
|
||||
"../thirdparty/src/newton/dgMeshUtil",
|
||||
"../thirdparty/src/newton/dgPhysics",
|
||||
"../thirdparty/src/newton/dgNewton",
|
||||
"../thirdparty/src/newton/dContainers",
|
||||
"../thirdparty/src/newton/dMath"
|
||||
}
|
||||
|
||||
LIBRARY.Custom = function()
|
||||
vectorextensions("SSE3")
|
||||
|
||||
filter({"architecture:x86_64", "system:linux"})
|
||||
defines("_POSIX_VER_64")
|
||||
|
||||
filter({"architecture:x86", "system:linux"})
|
||||
defines("_POSIX_VER")
|
||||
end
|
||||
Reference in New Issue
Block a user