2023-11-25 08:46:37 +00:00
|
|
|
include "code/assimp_code.lua"
|
|
|
|
include "contrib/assimp_contrib.lua"
|
|
|
|
|
|
|
|
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
|
|
|
|
|
|
|
|
group "Dependencies"
|
|
|
|
include "contrib/zlib"
|
|
|
|
include "contrib/zip"
|
|
|
|
include "contrib/pugixml"
|
2023-11-27 19:24:12 +00:00
|
|
|
include "contrib/openddlparser"
|
2023-11-25 08:46:37 +00:00
|
|
|
group ""
|
|
|
|
|
2023-11-22 12:04:22 +00:00
|
|
|
project "Assimp"
|
|
|
|
kind "StaticLib"
|
|
|
|
language "C++"
|
2023-11-25 08:46:37 +00:00
|
|
|
cppdialect "C++17"
|
2023-11-22 12:04:22 +00:00
|
|
|
staticruntime "off"
|
|
|
|
warnings "off"
|
|
|
|
|
2023-11-22 13:30:19 +00:00
|
|
|
targetdir ("bin/" .. outputdir .. "/%{prj.name}")
|
|
|
|
objdir ("bin-int/" .. outputdir .. "/%{prj.name}")
|
|
|
|
|
2023-11-25 08:46:37 +00:00
|
|
|
|
2023-11-22 12:04:22 +00:00
|
|
|
files
|
|
|
|
{
|
2023-11-25 08:46:37 +00:00
|
|
|
AssimpSourceFiles,
|
|
|
|
AssimpImporterSourceFiles,
|
2023-11-22 20:27:13 +00:00
|
|
|
|
2023-11-25 08:46:37 +00:00
|
|
|
ContribSourceFiles
|
2023-11-22 12:04:22 +00:00
|
|
|
}
|
|
|
|
|
2023-11-25 08:46:37 +00:00
|
|
|
links
|
2023-11-22 13:30:19 +00:00
|
|
|
{
|
2023-11-25 08:46:37 +00:00
|
|
|
"zlib",
|
|
|
|
"zip",
|
2023-11-27 19:24:12 +00:00
|
|
|
"pugixml",
|
|
|
|
"openddlparser"
|
2023-11-22 13:30:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
includedirs
|
|
|
|
{
|
|
|
|
"%{prj.location}/code",
|
2023-11-25 08:46:37 +00:00
|
|
|
"%{prj.location}/include",
|
|
|
|
"%{prj.location}",
|
|
|
|
|
|
|
|
ContribIncludeDirs
|
|
|
|
}
|
|
|
|
|
|
|
|
defines
|
|
|
|
{
|
|
|
|
--"ASSIMP_DOUBLE_PRECISION"
|
2023-11-26 14:11:00 +00:00
|
|
|
"RAPIDJSON_HAS_STDSTRING",
|
|
|
|
"OPENDDLPARSER_BUILD"
|
2023-11-22 13:30:19 +00:00
|
|
|
}
|
|
|
|
|
2023-11-27 19:24:12 +00:00
|
|
|
if (AssimpEnableNoneFreeC4DImporter == false) then
|
|
|
|
defines
|
|
|
|
{
|
|
|
|
"ASSIMP_BUILD_NO_C4D_IMPORTER"
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
2023-11-27 19:49:10 +00:00
|
|
|
-- OS specific
|
2023-11-22 12:04:22 +00:00
|
|
|
filter "system:linux"
|
|
|
|
pic "On"
|
2023-11-24 21:34:03 +00:00
|
|
|
systemversion "latest"
|
2023-11-22 12:04:22 +00:00
|
|
|
|
|
|
|
filter "system:macosx"
|
2023-11-25 08:46:37 +00:00
|
|
|
pic "On"
|
2023-11-22 12:04:22 +00:00
|
|
|
|
|
|
|
filter "system:windows"
|
2023-11-25 08:46:37 +00:00
|
|
|
systemversion "latest"
|
|
|
|
|
2023-11-27 19:49:10 +00:00
|
|
|
-- Configuration stuff
|
2023-11-25 08:46:37 +00:00
|
|
|
filter "configurations:Debug"
|
|
|
|
runtime "Debug"
|
|
|
|
symbols "on"
|
|
|
|
|
|
|
|
filter "configurations:Release"
|
|
|
|
runtime "Release"
|
2023-11-27 19:49:10 +00:00
|
|
|
optimize "Speed"
|
|
|
|
|
|
|
|
filter "configurations:Dist"
|
|
|
|
runtime "Release"
|
|
|
|
symbols "off"
|
|
|
|
optimize "Speed"
|