forked from HeliumProject/Engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FBX.lua
32 lines (27 loc) · 2.09 KB
/
FBX.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
require "Helium"
Helium.PublishFBX = function( bin )
local files = {}
if os.get() == "windows" then
if Helium.Build64Bit() then
table.insert( files, { file="fbxsdk-2012.2d.dll", source=Helium.GetFbxSdkLocation() .. "/lib/" .. _ACTION .. "/x86", target=bin .. "/x32/Debug" } )
table.insert( files, { file="fbxsdk-2012.2.dll", source=Helium.GetFbxSdkLocation() .. "/lib/" .. _ACTION .. "/x86", target=bin .. "/x32/Intermediate" } )
table.insert( files, { file="fbxsdk-2012.2.dll", source=Helium.GetFbxSdkLocation() .. "/lib/" .. _ACTION .. "/x86", target=bin .. "/x32/Profile" } )
table.insert( files, { file="fbxsdk-2012.2.dll", source=Helium.GetFbxSdkLocation() .. "/lib/" .. _ACTION .. "/x86", target=bin .. "/x32/Release" } )
end
if Helium.Build64Bit() then
table.insert( files, { file="fbxsdk-2012.2d.dll", source=Helium.GetFbxSdkLocation() .. "/lib/" .. _ACTION .. "/x64", target=bin .. "/x64/Debug" } )
table.insert( files, { file="fbxsdk-2012.2.dll", source=Helium.GetFbxSdkLocation() .. "/lib/" .. _ACTION .. "/x64", target=bin .. "/x64/Intermediate" } )
table.insert( files, { file="fbxsdk-2012.2.dll", source=Helium.GetFbxSdkLocation() .. "/lib/" .. _ACTION .. "/x64", target=bin .. "/x64/Profile" } )
table.insert( files, { file="fbxsdk-2012.2.dll", source=Helium.GetFbxSdkLocation() .. "/lib/" .. _ACTION .. "/x64", target=bin .. "/x64/Release" } )
end
elseif os.get() == "macosx" then
table.insert( files, { file="libfbxsdk-2012.2d.dylib", source=Helium.GetFbxSdkLocation() .. "/lib/gcc4/ub", target=bin .. "/x32/Debug" } )
table.insert( files, { file="libfbxsdk-2012.2.dylib", source=Helium.GetFbxSdkLocation() .. "/lib/gcc4/ub", target=bin .. "/x32/Intermediate" } )
table.insert( files, { file="libfbxsdk-2012.2.dylib", source=Helium.GetFbxSdkLocation() .. "/lib/gcc4/ub", target=bin .. "/x32/Profile" } )
table.insert( files, { file="libfbxsdk-2012.2.dylib", source=Helium.GetFbxSdkLocation() .. "/lib/gcc4/ub", target=bin .. "/x32/Release" } )
else
print("Implement support for " .. os.get() .. " to PublishFBX()")
os.exit(1)
end
Helium.Publish( files )
end