Build: Fix example path
Former-commit-id: 54e56da81ea8c93da5ec276035dca59a62932ed0 [formerly ab7201812c22e7a4dcabbfbf74686a169a67a1b0] Former-commit-id: 48aaf02c04cea375eeb33b64afc09428631ee523
This commit is contained in:
parent
c528640d80
commit
a277e7560f
|
|
@ -270,7 +270,7 @@ function NazaraBuild:Execute()
|
|||
project(prefix .. toolTable.Name)
|
||||
|
||||
location(_ACTION .. "/tools")
|
||||
targetdir(toolTable.Directory)
|
||||
targetdir(toolTable.TargetDirectory)
|
||||
|
||||
if (toolTable.Kind == "plugin" or toolTable.Kind == "library") then
|
||||
kind("SharedLib")
|
||||
|
|
@ -278,7 +278,7 @@ function NazaraBuild:Execute()
|
|||
-- Copy the tool binaries to the example folder
|
||||
self:MakeInstallCommands(toolTable)
|
||||
elseif (toolTable.Kind == "application") then
|
||||
debugdir(toolTable.Directory)
|
||||
debugdir(toolTable.TargetDirectory)
|
||||
if (toolTable.EnableConsole) then
|
||||
kind("ConsoleApp")
|
||||
else
|
||||
|
|
@ -404,7 +404,7 @@ function NazaraBuild:Execute()
|
|||
|
||||
self:MakeInstallCommands(toolTable)
|
||||
elseif (exampleTable.Kind == "application") then
|
||||
debugdir(exampleTable.Directory)
|
||||
debugdir(exampleTable.TargetDirectory)
|
||||
if (exampleTable.EnableConsole) then
|
||||
kind("ConsoleApp")
|
||||
else
|
||||
|
|
@ -769,7 +769,7 @@ function NazaraBuild:RegisterTool(toolTable)
|
|||
return false, "This tool name is already in use"
|
||||
end
|
||||
|
||||
if (toolTable.Directory == nil or type(toolTable.Directory) ~= "string" or string.len(toolTable.Directory) == 0) then
|
||||
if (toolTable.TargetDirectory == nil or type(toolTable.TargetDirectory) ~= "string" or string.len(toolTable.TargetDirectory) == 0) then
|
||||
return false, "Invalid tool directory"
|
||||
end
|
||||
|
||||
|
|
@ -907,7 +907,7 @@ function NazaraBuild:Process(infoTable)
|
|||
end
|
||||
|
||||
if (infoTable.Kind == "application") then
|
||||
self:AddExecutablePath(infoTable.Directory)
|
||||
self:AddExecutablePath(infoTable.TargetDirectory)
|
||||
end
|
||||
|
||||
return true
|
||||
|
|
@ -995,8 +995,8 @@ end
|
|||
function NazaraBuild:SetupExampleTable(infoTable)
|
||||
self:SetupInfoTable(infoTable)
|
||||
|
||||
infoTable.Directory = "../examples/bin"
|
||||
infoTable.Kind = "application"
|
||||
infoTable.TargetDirectory = "../examples/bin"
|
||||
end
|
||||
|
||||
function NazaraBuild:SetupExtlibTable(infoTable)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
TOOL.Name = "Assimp"
|
||||
|
||||
TOOL.Directory = "../SDK/lib"
|
||||
TOOL.Directory = "../plugins/Assimp"
|
||||
TOOL.Kind = "Plugin"
|
||||
TOOL.TargetDirectory = "../SDK/lib"
|
||||
|
||||
TOOL.Includes = {
|
||||
"../include",
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
TOOL.Name = "SDK"
|
||||
|
||||
TOOL.Directory = "../SDK/lib"
|
||||
TOOL.Directory = "../SDK"
|
||||
TOOL.Kind = "Library"
|
||||
TOOL.TargetDirectory = "../SDK/lib"
|
||||
|
||||
TOOL.Defines = {
|
||||
"NDK_BUILD"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
TOOL.Name = "SDKServer"
|
||||
|
||||
TOOL.Directory = "../SDK/lib"
|
||||
TOOL.Directory = "../SDK"
|
||||
TOOL.Kind = "Library"
|
||||
TOOL.TargetDirectory = "../SDK/lib"
|
||||
|
||||
TOOL.Defines = {
|
||||
"NDK_BUILD",
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ TOOL.Name = "UnitTests"
|
|||
TOOL.Directory = "../tests"
|
||||
TOOL.EnableConsole = true
|
||||
TOOL.Kind = "Application"
|
||||
TOOL.TargetDirectory = TOOL.Directory
|
||||
|
||||
TOOL.Defines = {
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue