Support reading .obj from ZStd compressed format.
This commit is contained in:
@@ -3,6 +3,11 @@ newoption {
|
||||
description = "Build with zlib."
|
||||
}
|
||||
|
||||
newoption {
|
||||
trigger = "with-zstd",
|
||||
description = "Build with ZStandard compression."
|
||||
}
|
||||
|
||||
solution "objview"
|
||||
-- location ( "build" )
|
||||
configurations { "Release", "Debug" }
|
||||
@@ -23,6 +28,11 @@ solution "objview"
|
||||
links { 'z' }
|
||||
end
|
||||
|
||||
if _OPTIONS['with-zstd'] then
|
||||
defines { 'ENABLE_ZSTD' }
|
||||
links { 'zstd' }
|
||||
end
|
||||
|
||||
-- Uncomment if you want address sanitizer(gcc/clang only)
|
||||
--buildoptions { "-fsanitize=address" }
|
||||
--linkoptions { "-fsanitize=address" }
|
||||
|
||||
Reference in New Issue
Block a user