Build: Fix example path

Former-commit-id: 3cdf26b3497439c344bbc8b3738df6a316f6bef6 [formerly c25cd61df2ea180fa2d79585bd031027c75f2007]
Former-commit-id: 96a3ee99070e34f05b9dabb582ee878a82801c65
This commit is contained in:
Lynix 2016-06-13 21:19:12 +02:00
parent 819b46f5fc
commit d90a735372
5 changed files with 13 additions and 9 deletions

View File

@ -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)

View File

@ -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",

View File

@ -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"

View File

@ -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",

View File

@ -3,6 +3,7 @@ TOOL.Name = "UnitTests"
TOOL.Directory = "../tests"
TOOL.EnableConsole = true
TOOL.Kind = "Application"
TOOL.TargetDirectory = TOOL.Directory
TOOL.Defines = {
}