Add premake scripts for c# projects

This commit is contained in:
Jan 2019-10-22 11:32:19 +02:00
parent 0d103e24a5
commit d213bab3f2
21 changed files with 74 additions and 354 deletions

View File

@ -97,7 +97,7 @@ include "src/ZoneWriting.lua"
group "Components"
Crypto:project()
Utils:project()
--ZoneCodeGenerator:project()
ZoneCodeGenerator:project()
ZoneCommon:project()
ZoneLoading:project()
ZoneWriting:project()
@ -117,6 +117,6 @@ include "test/ZoneCommonTests.lua"
-- Tests group: Unit test and other tests projects
group "Tests"
--ZoneCodeGeneratorTests:project()
ZoneCodeGeneratorTests:project()
ZoneCommonTests:project()
group ""

View File

@ -20,7 +20,7 @@ function Crypto:project()
project "Crypto"
targetdir(TargetDirectoryLib)
location "%{wks.location}/src"
location "%{wks.location}/src/%{prj.name}"
kind "StaticLib"
language "C++"

View File

@ -15,7 +15,7 @@ function Linker:project()
project "Linker"
targetdir(TargetDirectoryBin)
location "%{wks.location}/src"
location "%{wks.location}/src/%{prj.name}"
kind "ConsoleApp"
language "C++"

View File

@ -15,7 +15,7 @@ function Unlinker:project()
project "Unlinker"
targetdir(TargetDirectoryBin)
location "%{wks.location}/src"
location "%{wks.location}/src/%{prj.name}"
kind "ConsoleApp"
language "C++"

View File

@ -17,7 +17,7 @@ function Utils:project()
project "Utils"
targetdir(TargetDirectoryLib)
location "%{wks.location}/src"
location "%{wks.location}/src/%{prj.name}"
kind "StaticLib"
language "C++"

View File

@ -0,0 +1,41 @@
ZoneCodeGenerator = {}
function ZoneCodeGenerator:include()
end
function ZoneCodeGenerator:link()
links {
"ZoneCodeGenerator"
}
end
function ZoneCodeGenerator:project()
local folder = ProjectFolder();
project "ZoneCodeGenerator"
targetdir(TargetDirectoryBin)
location "%{wks.location}/src/%{prj.name}"
kind "ConsoleApp"
language "C#"
namespace "ZoneCodeGenerator"
files {
path.join(folder, "ZoneCodeGenerator/**.cs")
}
vpaths { ["*"] = "src/ZoneCodeGenerator" }
nuget {
"Antlr3.Runtime:3.5.1",
"StringTemplate4:4.0.8"
}
links {
"System",
"System.Core",
"System.Data",
"StringTemplate4",
"Antlr3.Runtime"
}
end

View File

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2"/>
</startup>
</configuration>

View File

@ -1,179 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{D1C20C32-9CB8-44B8-9DF7-F0CF8FB304D3}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>ZoneCodeGenerator</RootNamespace>
<AssemblyName>ZoneCodeGenerator</AssemblyName>
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Antlr3.Runtime, Version=3.5.0.2, Culture=neutral, PublicKeyToken=eb42632606e9261f, processorArchitecture=MSIL">
<HintPath>..\..\packages\Antlr3.Runtime.3.5.1\lib\net40-client\Antlr3.Runtime.dll</HintPath>
</Reference>
<Reference Include="Antlr4.StringTemplate, Version=4.0.7.0, Culture=neutral, PublicKeyToken=eb42632606e9261f, processorArchitecture=MSIL">
<HintPath>..\..\packages\StringTemplate4.4.0.8\lib\net35-client\Antlr4.StringTemplate.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\..\packages\Newtonsoft.Json.12.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Domain\DataException.cs" />
<Compile Include="Domain\DataType.cs" />
<Compile Include="Domain\DataTypeBaseType.cs" />
<Compile Include="Domain\DataTypeEnum.cs" />
<Compile Include="Domain\DataTypeStruct.cs" />
<Compile Include="Domain\DataTypeType.cs" />
<Compile Include="Domain\DataTypeTypedef.cs" />
<Compile Include="Domain\DataTypeUnion.cs" />
<Compile Include="Domain\DataTypeWithMembers.cs" />
<Compile Include="Domain\EnumMember.cs" />
<Compile Include="Domain\Evaluation\IEvaluation.cs" />
<Compile Include="Domain\Evaluation\OperandDynamic.cs" />
<Compile Include="Domain\Evaluation\OperandStatic.cs" />
<Compile Include="Domain\Evaluation\Operation.cs" />
<Compile Include="Domain\Evaluation\OperationType.cs" />
<Compile Include="Domain\FastFileStructure\FastFileBlock.cs" />
<Compile Include="Domain\ForwardDeclaration.cs" />
<Compile Include="Domain\Namespace.cs" />
<Compile Include="Domain\ReferenceType.cs" />
<Compile Include="Domain\ReferenceTypeArray.cs" />
<Compile Include="Domain\ReferenceTypePointer.cs" />
<Compile Include="Domain\StructureInformation\MemberInformation.cs" />
<Compile Include="Domain\StructureInformation\StructureInformation.cs" />
<Compile Include="Domain\TypeDeclaration.cs" />
<Compile Include="Domain\Variable.cs" />
<Compile Include="Generating\CodeGenerator.cs" />
<Compile Include="Generating\CodeTemplate.cs" />
<Compile Include="Generating\RenderingContext.cs" />
<Compile Include="Generating\TemplateGroupResources.cs" />
<Compile Include="Interface\Arguments\ArgumentParser.cs" />
<Compile Include="Interface\Arguments\CommandLineOption.cs" />
<Compile Include="Interface\Arguments\UsageInformation.cs" />
<Compile Include="Interface\CommandLineOptions.cs" />
<Compile Include="Interface\CUI.cs" />
<Compile Include="Interface\CUISession.cs" />
<Compile Include="Interface\PrettyPrinter.cs" />
<Compile Include="LoadingException.cs" />
<Compile Include="Parsing\CommandFile\CommandFileReader.cs" />
<Compile Include="Parsing\CommandFile\ICommandParserState.cs" />
<Compile Include="Parsing\CommandFile\Impl\CommandFilePreprocessor.cs" />
<Compile Include="Parsing\CommandFile\Impl\CommandParserState.cs" />
<Compile Include="Parsing\CommandFile\PostProcessor\PostProcessorDefaultBlock.cs" />
<Compile Include="Parsing\CommandFile\Tests\TestAsset.cs" />
<Compile Include="Parsing\CommandFile\Tests\TestBlock.cs" />
<Compile Include="Parsing\CommandFile\Tests\TestCondition.cs" />
<Compile Include="Parsing\CommandFile\Tests\TestCount.cs" />
<Compile Include="Parsing\CommandFile\Tests\TestGame.cs" />
<Compile Include="Parsing\CommandFile\Tests\TestReorder.cs" />
<Compile Include="Parsing\CommandFile\Tests\TestScriptString.cs" />
<Compile Include="Parsing\CommandFile\Tests\TestUse.cs" />
<Compile Include="Parsing\C_Header\Blocks\Block.cs" />
<Compile Include="Parsing\C_Header\Blocks\BlockEnum.cs" />
<Compile Include="Parsing\C_Header\Blocks\BlockNamespace.cs" />
<Compile Include="Parsing\C_Header\Blocks\BlockNone.cs" />
<Compile Include="Parsing\C_Header\Blocks\BlockStruct.cs" />
<Compile Include="Parsing\C_Header\Blocks\BlockUnion.cs" />
<Compile Include="Parsing\C_Header\Blocks\INameAssignable.cs" />
<Compile Include="Parsing\C_Header\Blocks\IVariableBlock.cs" />
<Compile Include="Parsing\C_Header\Blocks\IVariableHolder.cs" />
<Compile Include="Parsing\C_Header\BlockType.cs" />
<Compile Include="Parsing\C_Header\HeaderReader.cs" />
<Compile Include="Parsing\C_Header\IHeaderParserState.cs" />
<Compile Include="Parsing\C_Header\Impl\HeaderParserState.cs" />
<Compile Include="Parsing\C_Header\Impl\Preprocessor.cs" />
<Compile Include="Parsing\CommandFile\PostProcessor\PostProcessorUsages.cs" />
<Compile Include="Parsing\C_Header\Tests\TestCloseBlock.cs" />
<Compile Include="Parsing\C_Header\Tests\TestEnum.cs" />
<Compile Include="Parsing\C_Header\Tests\TestEnumMember.cs" />
<Compile Include="Parsing\C_Header\Tests\TestForwardDecl.cs" />
<Compile Include="Parsing\C_Header\Tests\TestNamespace.cs" />
<Compile Include="Parsing\C_Header\Tests\TestStruct.cs" />
<Compile Include="Parsing\C_Header\Tests\TestTypedef.cs" />
<Compile Include="Parsing\C_Header\Tests\TestUnion.cs" />
<Compile Include="Parsing\C_Header\Tests\TestVariable.cs" />
<Compile Include="Parsing\ICommentProcessor.cs" />
<Compile Include="Parsing\IDataPostProcessor.cs" />
<Compile Include="Parsing\IIncludingParsingStream.cs" />
<Compile Include="Parsing\ILexer.cs" />
<Compile Include="Parsing\Impl\CommentProcessor.cs" />
<Compile Include="Parsing\Impl\IncludingStreamFileSystem.cs" />
<Compile Include="Parsing\Impl\Lexer.cs" />
<Compile Include="Parsing\IParserState.cs" />
<Compile Include="Parsing\IParsingFileStream.cs" />
<Compile Include="Parsing\Matching\BaseMatcher.cs" />
<Compile Include="Parsing\Matching\GroupMatcher.cs" />
<Compile Include="Parsing\Matching\Matchers\MatcherArray.cs" />
<Compile Include="Parsing\Matching\Matchers\MatcherGroupAnd.cs" />
<Compile Include="Parsing\Matching\Matchers\MatcherGroupLoop.cs" />
<Compile Include="Parsing\Matching\Matchers\MatcherGroupOptional.cs" />
<Compile Include="Parsing\Matching\Matchers\MatcherGroupOr.cs" />
<Compile Include="Parsing\Matching\Matchers\MatcherLiteral.cs" />
<Compile Include="Parsing\Matching\Matchers\MatcherName.cs" />
<Compile Include="Parsing\Matching\Matchers\MatcherNumber.cs" />
<Compile Include="Parsing\Matching\Matchers\MatcherTypename.cs" />
<Compile Include="Parsing\Matching\Matchers\MatcherWithTag.cs" />
<Compile Include="Parsing\Matching\MatchingContext.cs" />
<Compile Include="Parsing\Matching\TokenMatcher.cs" />
<Compile Include="Parsing\Matching\TokenMatchingResult.cs" />
<Compile Include="Parsing\Parser.cs" />
<Compile Include="Parsing\ParserException.cs" />
<Compile Include="Parsing\Testing\AbstractTokenTest.cs" />
<Compile Include="Parsing\Testing\ITokenTest.cs" />
<Compile Include="Parsing\Testing\TestFailedException.cs" />
<Compile Include="Parsing\Testing\TokenTestResult.cs" />
<Compile Include="Persistence\IDataRepository.cs" />
<Compile Include="Persistence\InMemoryDataRepository.cs" />
<Compile Include="Persistence\IReadOnlyDataRepository.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Utils\AlignmentExtension.cs" />
<Compile Include="Utils\KeyValueExtension.cs" />
<Compile Include="Utils\RandomName.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<EmbeddedResource Include="Generating\Templates\Common.stg" />
<EmbeddedResource Include="Generating\Templates\ZoneLoad.stg" />
<EmbeddedResource Include="Generating\Templates\ZoneWrite.stg" />
<EmbeddedResource Include="Generating\Templates\AssetStructTests.stg" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View File

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Antlr3.Runtime" version="3.5.1" targetFramework="net461" />
<package id="Newtonsoft.Json" version="12.0.2" targetFramework="net461" />
<package id="StringTemplate4" version="4.0.8" targetFramework="net461" />
</packages>

View File

@ -17,7 +17,7 @@ function ZoneCommon:project()
project "ZoneCommon"
targetdir(TargetDirectoryLib)
location "%{wks.location}/src"
location "%{wks.location}/src/%{prj.name}"
kind "StaticLib"
language "C++"

View File

@ -22,7 +22,7 @@ function ZoneLoading:project()
project "ZoneLoading"
targetdir(TargetDirectoryLib)
location "%{wks.location}/src"
location "%{wks.location}/src/%{prj.name}"
kind "StaticLib"
language "C++"

View File

@ -22,7 +22,7 @@ function ZoneWriting:project()
project "ZoneWriting"
targetdir(TargetDirectoryLib)
location "%{wks.location}/src"
location "%{wks.location}/src/%{prj.name}"
kind "StaticLib"
language "C++"

View File

@ -13,26 +13,29 @@ function ZoneCodeGeneratorTests:project()
project "ZoneCodeGeneratorTests"
targetdir(TargetDirectoryTest)
location "%{wks.location}/test"
location "%{wks.location}/test/%{prj.name}"
kind "SharedLib"
language "C#"
files {
path.join(folder, "Zone/src/**.h"),
path.join(folder, "libtomcrypt/src/**.c")
path.join(folder, "ZoneCodeGeneratorTests/**.cs")
}
defines {
"_CRT_SECURE_NO_WARNINGS",
"_CRT_NONSTDC_NO_DEPRECATE",
"LTC_SOURCE",
"LTC_NO_TEST",
"LTC_NO_PROTOTYPES"
vpaths { ["*"] = "test/ZoneCodeGeneratorTests" }
nuget {
"Moq:4.13.1",
"MSTest.TestFramework:2.0.0",
"MSTest.TestAdapter:2.0.0"
}
links {
"System",
"System.Core",
"System.Data",
"Moq",
"MSTest.TestFramework"
}
self:include()
libtommath:include()
-- Disable warnings. They do not have any value to us since it is not our code.
warnings "off"
ZoneCodeGenerator:link()
end

View File

@ -1,110 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\..\packages\MSTest.TestAdapter.2.0.0\build\net45\MSTest.TestAdapter.props" Condition="Exists('..\..\packages\MSTest.TestAdapter.2.0.0\build\net45\MSTest.TestAdapter.props')" />
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{C29242DB-84D0-4A37-AD3F-19B72B23C7E0}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>ZoneCodeGeneratorTests</RootNamespace>
<AssemblyName>ZoneCodeGeneratorTests</AssemblyName>
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">15.0</VisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
<ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
<IsCodedUITest>False</IsCodedUITest>
<TestProjectType>UnitTest</TestProjectType>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Castle.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL">
<HintPath>..\..\packages\Castle.Core.4.4.0\lib\net45\Castle.Core.dll</HintPath>
</Reference>
<Reference Include="Microsoft.VisualStudio.TestPlatform.TestFramework, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\..\packages\MSTest.TestFramework.2.0.0\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.dll</HintPath>
</Reference>
<Reference Include="Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\..\packages\MSTest.TestFramework.2.0.0\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll</HintPath>
</Reference>
<Reference Include="Moq, Version=4.13.0.0, Culture=neutral, PublicKeyToken=69f491c39445e920, processorArchitecture=MSIL">
<HintPath>..\..\packages\Moq.4.13.0\lib\net45\Moq.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Core" />
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\..\packages\System.Runtime.CompilerServices.Unsafe.4.5.2\lib\netstandard2.0\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
</Reference>
<Reference Include="System.Threading.Tasks.Extensions, Version=4.2.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\..\packages\System.Threading.Tasks.Extensions.4.5.3\lib\netstandard2.0\System.Threading.Tasks.Extensions.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="AssertionExtensions.cs" />
<Compile Include="Domain\NamespaceTest.cs" />
<Compile Include="FieldInjector.cs" />
<Compile Include="Parsing\Impl\LexerTest.cs" />
<Compile Include="Parsing\Impl\PreprocessorTest.cs" />
<Compile Include="Parsing\Matching\Matchers\MatcherArrayTest.cs" />
<Compile Include="Parsing\Matching\Matchers\MatcherGroupAndTest.cs" />
<Compile Include="Parsing\Matching\Matchers\MatcherGroupLoopTest.cs" />
<Compile Include="Parsing\Matching\Matchers\MatcherGroupOptionalTest.cs" />
<Compile Include="Parsing\Matching\Matchers\MatcherGroupOrTest.cs" />
<Compile Include="Parsing\Matching\Matchers\MatcherLiteralTest.cs" />
<Compile Include="Parsing\Matching\Matchers\MatcherNameTest.cs" />
<Compile Include="Parsing\Matching\Matchers\MatcherNumberTest.cs" />
<Compile Include="Parsing\Matching\Matchers\MatcherTypenameTest.cs" />
<Compile Include="Parsing\Matching\Matchers\TestMatcher.cs" />
<Compile Include="Parsing\Mock\IncludingParsingStreamTest.cs" />
<Compile Include="Parsing\Testing\Tests\TestCloseBlockTest.cs" />
<Compile Include="Parsing\Testing\Tests\TestEnumMemberTest.cs" />
<Compile Include="Parsing\Testing\Tests\TestEnumTest.cs" />
<Compile Include="Parsing\Testing\Tests\TestForwardDeclTest.cs" />
<Compile Include="Parsing\Testing\Tests\TestNamespaceTest.cs" />
<Compile Include="Persistence\InMemoryDataRepositoryTest.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\ZoneCodeGenerator\ZoneCodeGenerator.csproj">
<Project>{d1c20c32-9cb8-44b8-9df7-f0cf8fb304d3}</Project>
<Name>ZoneCodeGenerator</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\..\packages\MSTest.TestAdapter.2.0.0\build\net45\MSTest.TestAdapter.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\MSTest.TestAdapter.2.0.0\build\net45\MSTest.TestAdapter.props'))" />
<Error Condition="!Exists('..\..\packages\MSTest.TestAdapter.2.0.0\build\net45\MSTest.TestAdapter.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\MSTest.TestAdapter.2.0.0\build\net45\MSTest.TestAdapter.targets'))" />
</Target>
<Import Project="..\..\packages\MSTest.TestAdapter.2.0.0\build\net45\MSTest.TestAdapter.targets" Condition="Exists('..\..\packages\MSTest.TestAdapter.2.0.0\build\net45\MSTest.TestAdapter.targets')" />
</Project>

View File

@ -1,11 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2"/></startup></configuration>

View File

@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Castle.Core" version="4.4.0" targetFramework="net461" />
<package id="Moq" version="4.13.0" targetFramework="net461" />
<package id="MSTest.TestAdapter" version="2.0.0" targetFramework="net461" />
<package id="MSTest.TestFramework" version="2.0.0" targetFramework="net461" />
<package id="System.Runtime.CompilerServices.Unsafe" version="4.5.2" targetFramework="net461" />
<package id="System.Threading.Tasks.Extensions" version="4.5.3" targetFramework="net461" />
</packages>

View File

@ -13,7 +13,7 @@ function ZoneCommonTests:project()
project "ZoneCommonTests"
targetdir(TargetDirectoryTest)
location "%{wks.location}/test"
location "%{wks.location}/test/%{prj.name}"
kind "SharedLib"
language "C++"
@ -26,7 +26,4 @@ function ZoneCommonTests:project()
ZoneCommon:include()
ZoneCommon:link()
-- Disable warnings. They do not have any value to us since it is not our code.
warnings "off"
end

View File

@ -21,7 +21,7 @@ function libtomcrypt:project()
project "libtomcrypt"
targetdir(TargetDirectoryLib)
location "%{wks.location}/thirdparty"
location "%{wks.location}/thirdparty/%{prj.name}"
kind "StaticLib"
language "C"

View File

@ -17,7 +17,7 @@ function libtommath:project()
project "libtommath"
targetdir(TargetDirectoryLib)
location "%{wks.location}/thirdparty"
location "%{wks.location}/thirdparty/%{prj.name}"
kind "StaticLib"
language "C"

View File

@ -17,7 +17,7 @@ function salsa20:project()
project "salsa20"
targetdir(TargetDirectoryLib)
location "%{wks.location}/thirdparty"
location "%{wks.location}/thirdparty/%{prj.name}"
kind "StaticLib"
language "C"

2
thirdparty/zlib.lua vendored
View File

@ -22,7 +22,7 @@ function zlib:project()
project "zlib"
targetdir(TargetDirectoryLib)
location "%{wks.location}/thirdparty"
location "%{wks.location}/thirdparty/%{prj.name}"
kind "StaticLib"
language "C"