mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-11-23 13:12:06 +00:00
Updated ufbx premake lua to properly add it to the project
This commit is contained in:
19
thirdparty/ufbx.lua
vendored
19
thirdparty/ufbx.lua
vendored
@@ -9,6 +9,7 @@ function ufbx:include(includes)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function ufbx:link()
|
function ufbx:link()
|
||||||
|
links:add(self:name())
|
||||||
end
|
end
|
||||||
|
|
||||||
function ufbx:use()
|
function ufbx:use()
|
||||||
@@ -20,4 +21,22 @@ function ufbx:name()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function ufbx:project()
|
function ufbx:project()
|
||||||
|
local folder = ThirdPartyFolder()
|
||||||
|
local includes = Includes:create()
|
||||||
|
|
||||||
|
project(self:name())
|
||||||
|
targetdir(TargetDirectoryLib)
|
||||||
|
location "%{wks.location}/thirdparty/%{prj.name}"
|
||||||
|
kind "StaticLib"
|
||||||
|
language "C++"
|
||||||
|
|
||||||
|
files {
|
||||||
|
path.join(folder, "ufbx/ufbx.h"),
|
||||||
|
path.join(folder, "ufbx/ufbx.c")
|
||||||
|
}
|
||||||
|
|
||||||
|
self:include(includes)
|
||||||
|
|
||||||
|
-- Disable warnings. They do not have any value to us since it is not our code.
|
||||||
|
warnings "off"
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user