From a8a8085340eb2ba7730778df4a99f230dd5091a2 Mon Sep 17 00:00:00 2001 From: LJW-Dev Date: Sat, 1 Nov 2025 18:30:08 +0800 Subject: [PATCH] Updated ufbx premake lua to properly add it to the project --- thirdparty/ufbx.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/thirdparty/ufbx.lua b/thirdparty/ufbx.lua index 9f8407e4..9b713890 100644 --- a/thirdparty/ufbx.lua +++ b/thirdparty/ufbx.lua @@ -9,6 +9,7 @@ function ufbx:include(includes) end function ufbx:link() + links:add(self:name()) end function ufbx:use() @@ -20,4 +21,22 @@ function ufbx:name() end 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