|
|
@ -59,7 +59,9 @@ function SetupTestGeneratorProject(name, depends) |
|
|
|
"CppSharp.AST", |
|
|
|
"CppSharp.AST", |
|
|
|
"CppSharp.Generator", |
|
|
|
"CppSharp.Generator", |
|
|
|
"CppSharp.Generator.Tests", |
|
|
|
"CppSharp.Generator.Tests", |
|
|
|
"CppSharp.Parser" |
|
|
|
"CppSharp.Parser", |
|
|
|
|
|
|
|
"System", |
|
|
|
|
|
|
|
"System.Core" |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if depends ~= nil then |
|
|
|
if depends ~= nil then |
|
|
@ -70,15 +72,11 @@ function SetupTestGeneratorProject(name, depends) |
|
|
|
|
|
|
|
|
|
|
|
SetupParser() |
|
|
|
SetupParser() |
|
|
|
|
|
|
|
|
|
|
|
filter { "action:netcore" } |
|
|
|
if _OPTIONS.netcore then |
|
|
|
dotnetframework "netcoreapp2.0" |
|
|
|
dotnetframework "netcoreapp3.1" |
|
|
|
|
|
|
|
else |
|
|
|
filter { "action:not netcore" } |
|
|
|
dotnetframework "4.7.2" |
|
|
|
links |
|
|
|
end |
|
|
|
{ |
|
|
|
|
|
|
|
"System", |
|
|
|
|
|
|
|
"System.Core" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
local function get_mono_exe() |
|
|
|
local function get_mono_exe() |
|
|
@ -128,25 +126,11 @@ end |
|
|
|
function LinkNUnit() |
|
|
|
function LinkNUnit() |
|
|
|
local c = filter() |
|
|
|
local c = filter() |
|
|
|
|
|
|
|
|
|
|
|
filter { "action:not netcore"} |
|
|
|
nuget |
|
|
|
libdirs |
|
|
|
{ |
|
|
|
{ |
|
|
|
"NUnit:3.12.0", |
|
|
|
depsdir .. "/NUnit", |
|
|
|
"NSubstitute:4.2.2" |
|
|
|
depsdir .. "/NSubstitute" |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
links |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
"nunit.framework", |
|
|
|
|
|
|
|
"NSubstitute" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
filter { "action:netcore"} |
|
|
|
|
|
|
|
nuget |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
"NUnit:3.11.0", |
|
|
|
|
|
|
|
"NSubstitute:4.0.0-rc1" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
filter(c) |
|
|
|
filter(c) |
|
|
|
end |
|
|
|
end |
|
|
@ -191,8 +175,11 @@ function SetupTestProjectsCSharp(name, depends, extraFiles, suffix) |
|
|
|
|
|
|
|
|
|
|
|
LinkNUnit() |
|
|
|
LinkNUnit() |
|
|
|
|
|
|
|
|
|
|
|
filter { "action:netcore" } |
|
|
|
if _OPTIONS.netcore then |
|
|
|
dotnetframework "netcoreapp2.0" |
|
|
|
dotnetframework "netcoreapp3.1" |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
dotnetframework "4.7.2" |
|
|
|
|
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
function SetupTestProjectsCLI(name, extraFiles, suffix) |
|
|
|
function SetupTestProjectsCLI(name, extraFiles, suffix) |
|
|
|