mirror of https://github.com/mono/CppSharp.git
55 changed files with 369 additions and 259 deletions
@ -1,10 +1,36 @@ |
|||||||
<Project> |
<Project> |
||||||
|
<Import Project="build/config.props" /> |
||||||
|
|
||||||
<PropertyGroup> |
<PropertyGroup> |
||||||
<RootDir>$(MSBuildThisFileDirectory)</RootDir> |
<RootDir>$(MSBuildThisFileDirectory)</RootDir> |
||||||
<Platforms>x86;x64</Platforms> |
<Platforms>x86;x64</Platforms> |
||||||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> |
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> |
||||||
<BaseIntermediateOutputPath>$(RootDir)build\obj\$(MSBuildProjectName)\</BaseIntermediateOutputPath> |
<BuildDir>$(RootDir)build\</BuildDir> |
||||||
<TargetDir Condition="$(Configuration) != ''">$(RootDir)bin\$(Configuration)_$(Platform)</TargetDir> |
<ObjDir>$(BuildDir)obj\</ObjDir> |
||||||
|
<GenDir>$(BuildDir)gen\</GenDir> |
||||||
|
<SrcDir>$(RootDir)src\</SrcDir> |
||||||
|
<BaseIntermediateOutputPath>$(ObjDir)$(MSBuildProjectName)\</BaseIntermediateOutputPath> |
||||||
|
<BaseOutputPath>$(RootDir)bin\</BaseOutputPath> |
||||||
|
<OutputPath>$(BaseOutputPath)$(Configuration)_$(PlatformTarget)\</OutputPath> |
||||||
|
<ActionDir>$(BuildDir)$(PremakeAction)\</ActionDir> |
||||||
|
<NativeProjectsDir>$(ActionDir)projects\</NativeProjectsDir> |
||||||
|
<TargetDir>$(OutputPath)</TargetDir> |
||||||
<LangVersion>7.3</LangVersion> |
<LangVersion>7.3</LangVersion> |
||||||
|
<WarningLevel>4</WarningLevel> |
||||||
|
<DotNetCmd>dotnet</DotNetCmd> |
||||||
|
<GeneratorFileExtension>dll</GeneratorFileExtension> |
||||||
|
<DotNetCmd Condition="'$(PlatformTarget)' == 'x86' AND Exists('$(MSBuildProgramFiles32)\dotnet\dotnet.exe')">"$(MSBuildProgramFiles32)\dotnet\dotnet.exe"</DotNetCmd> |
||||||
|
<DotNetCmd Condition="'$(PlatformTarget)' == 'x64' AND Exists('$(ProgramW6432)\dotnet\dotnet.exe')">"$(ProgramW6432)\dotnet\dotnet.exe"</DotNetCmd> |
||||||
|
</PropertyGroup> |
||||||
|
|
||||||
|
<PropertyGroup Condition="'$(CPPSHARP_RELEASE)' != 'true'"> |
||||||
|
<DebugSymbols>true</DebugSymbols> |
||||||
|
<DebugType>full</DebugType> |
||||||
|
<Optimize>false</Optimize> |
||||||
|
</PropertyGroup> |
||||||
|
|
||||||
|
<PropertyGroup Condition="'$(DotNetCmd)' == 'dotnet' AND $(IsWindows)"> |
||||||
|
<GeneratorFileExtension>exe</GeneratorFileExtension> |
||||||
|
<DotNetCmd></DotNetCmd> |
||||||
</PropertyGroup> |
</PropertyGroup> |
||||||
</Project> |
</Project> |
@ -0,0 +1,6 @@ |
|||||||
|
<Project Sdk="Microsoft.NET.Sdk"> |
||||||
|
<PropertyGroup> |
||||||
|
<TargetFramework>netstandard2.1</TargetFramework> |
||||||
|
<PlatformTarget>AnyCPU</PlatformTarget> |
||||||
|
</PropertyGroup> |
||||||
|
</Project> |
@ -1,6 +1 @@ |
|||||||
project "CppSharp.AST" |
SetupExternalManagedProject("CppSharp.AST") |
||||||
|
|
||||||
kind "SharedLib" |
|
||||||
language "C#" |
|
||||||
|
|
||||||
SetupManagedProject() |
|
||||||
|
@ -0,0 +1,9 @@ |
|||||||
|
<Project Sdk="Microsoft.NET.Sdk"> |
||||||
|
<PropertyGroup> |
||||||
|
<OutputType>Exe</OutputType> |
||||||
|
</PropertyGroup> |
||||||
|
|
||||||
|
<ItemGroup> |
||||||
|
<ProjectReference Include="..\Generator\CppSharp.Generator.csproj" /> |
||||||
|
</ItemGroup> |
||||||
|
</Project> |
@ -1,8 +1 @@ |
|||||||
project "CppSharp.CLI" |
SetupExternalManagedProject("CppSharp.CLI") |
||||||
|
|
||||||
SetupManagedProject() |
|
||||||
|
|
||||||
kind "ConsoleApp" |
|
||||||
language "C#" |
|
||||||
|
|
||||||
links { "CppSharp.Generator" } |
|
||||||
|
@ -0,0 +1,11 @@ |
|||||||
|
<Project Sdk="Microsoft.NET.Sdk"> |
||||||
|
<PropertyGroup> |
||||||
|
<TargetFramework>netstandard2.1</TargetFramework> |
||||||
|
<PlatformTarget>AnyCPU</PlatformTarget> |
||||||
|
</PropertyGroup> |
||||||
|
|
||||||
|
<ItemGroup> |
||||||
|
<PackageReference Include="Microsoft.Win32.Registry" Version="4.7.0" PrivateAssets="All" /> |
||||||
|
<PackageReference Include="Microsoft.VisualStudio.Setup.Configuration.Interop" Version="2.3.2262-g94fae01e" PrivateAssets="All" /> |
||||||
|
</ItemGroup> |
||||||
|
</Project> |
@ -1,11 +1 @@ |
|||||||
project "CppSharp" |
SetupExternalManagedProject("CppSharp") |
||||||
|
|
||||||
SetupManagedProject() |
|
||||||
|
|
||||||
kind "SharedLib" |
|
||||||
language "C#" |
|
||||||
|
|
||||||
nuget { |
|
||||||
"Microsoft.Win32.Registry:4.7.0", |
|
||||||
"Microsoft.VisualStudio.Setup.Configuration.Interop:2.3.2262-g94fae01e" |
|
||||||
} |
|
||||||
|
@ -0,0 +1,23 @@ |
|||||||
|
<Project Sdk="Microsoft.NET.Sdk"> |
||||||
|
<PropertyGroup> |
||||||
|
<EnableDefaultCompileItems>false</EnableDefaultCompileItems> |
||||||
|
<EnableDefaultNoneItems>false</EnableDefaultNoneItems> |
||||||
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> |
||||||
|
<PlatformParserFolder Condition="$(IsWindows) AND $(PlatformTarget) == x64">x86_64-pc-win32-msvc</PlatformParserFolder> |
||||||
|
<PlatformParserFolder Condition="$(IsLinux) AND $(PlatformTarget) == x64 AND $(UseCXX11ABI)">x86_64-linux-gnu-cxx11abi</PlatformParserFolder> |
||||||
|
<PlatformParserFolder Condition="$(IsLinux) AND $(PlatformTarget) == x64 AND !$(UseCXX11ABI)">x86_64-linux-gnu</PlatformParserFolder> |
||||||
|
<PlatformParserFolder Condition="$(IsMacOSX) AND $(PlatformTarget) == x64">x86_64-apple-darwin12.4.0</PlatformParserFolder> |
||||||
|
<PlatformParserFolder Condition="$(IsWindows) AND $(PlatformTarget) == x86">i686-pc-win32-msvc</PlatformParserFolder> |
||||||
|
<PlatformParserFolder Condition="$(IsMacOSX) AND $(PlatformTarget) == x86">i686-apple-darwin12.4.0</PlatformParserFolder> |
||||||
|
</PropertyGroup> |
||||||
|
|
||||||
|
<ItemGroup> |
||||||
|
<Compile Include="$(PlatformParserFolder)\*.cs" /> |
||||||
|
<None Include="$(PlatformParserFolder)\*.cpp" /> |
||||||
|
</ItemGroup> |
||||||
|
|
||||||
|
<ItemGroup> |
||||||
|
<ProjectReference Include="..\..\..\Runtime\CppSharp.Runtime.csproj" /> |
||||||
|
<ProjectReference Include="$(NativeProjectsDir)CppSharp.CppParser.vcxproj" ReferenceOutputAssembly="false" Condition="$(IsWindows)" /> |
||||||
|
</ItemGroup> |
||||||
|
</Project> |
@ -0,0 +1,9 @@ |
|||||||
|
<Project Sdk="Microsoft.NET.Sdk"> |
||||||
|
<PropertyGroup> |
||||||
|
<OutputType>Exe</OutputType> |
||||||
|
</PropertyGroup> |
||||||
|
|
||||||
|
<ItemGroup> |
||||||
|
<ProjectReference Include="..\..\Generator\CppSharp.Generator.csproj" /> |
||||||
|
</ItemGroup> |
||||||
|
</Project> |
@ -1,9 +1 @@ |
|||||||
project "CppSharp.Parser.Bootstrap" |
SetupExternalManagedProject("CppSharp.Parser.Bootstrap") |
||||||
|
|
||||||
SetupManagedProject() |
|
||||||
|
|
||||||
kind "ConsoleApp" |
|
||||||
language "C#" |
|
||||||
debugdir "." |
|
||||||
|
|
||||||
links { "CppSharp.Generator" } |
|
||||||
|
@ -0,0 +1,9 @@ |
|||||||
|
<Project Sdk="Microsoft.NET.Sdk"> |
||||||
|
<PropertyGroup> |
||||||
|
<OutputType>Exe</OutputType> |
||||||
|
</PropertyGroup> |
||||||
|
|
||||||
|
<ItemGroup> |
||||||
|
<ProjectReference Include="..\..\Generator\CppSharp.Generator.csproj" /> |
||||||
|
</ItemGroup> |
||||||
|
</Project> |
@ -1,9 +1 @@ |
|||||||
project "CppSharp.Parser.Gen" |
SetupExternalManagedProject("CppSharp.Parser.Gen") |
||||||
|
|
||||||
SetupManagedProject() |
|
||||||
|
|
||||||
kind "ConsoleApp" |
|
||||||
language "C#" |
|
||||||
debugdir "." |
|
||||||
|
|
||||||
links { "CppSharp.Generator" } |
|
@ -0,0 +1,15 @@ |
|||||||
|
<Project Sdk="Microsoft.NET.Sdk"> |
||||||
|
<ItemGroup> |
||||||
|
<None Include="..\..\tests\Native\AST.h" LinkBase="tests\Native" /> |
||||||
|
<None Include="..\..\tests\Native\ASTExtensions.h" LinkBase="tests\Native" /> |
||||||
|
<None Include="..\..\tests\Native\Passes.h" LinkBase="tests\Native" /> |
||||||
|
</ItemGroup> |
||||||
|
<ItemGroup> |
||||||
|
<ProjectReference Include="..\Generator\CppSharp.Generator.csproj" /> |
||||||
|
</ItemGroup> |
||||||
|
<ItemGroup> |
||||||
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.0" /> |
||||||
|
<PackageReference Include="NUnit" Version="3.11.0" /> |
||||||
|
<PackageReference Include="NUnit3TestAdapter" Version="3.17.0" /> |
||||||
|
</ItemGroup> |
||||||
|
</Project> |
@ -1,20 +1 @@ |
|||||||
project "CppSharp.Generator.Tests" |
SetupExternalManagedProject("CppSharp.Generator.Tests") |
||||||
|
|
||||||
kind "SharedLib" |
|
||||||
SetupManagedProject() |
|
||||||
|
|
||||||
files { testsdir .. "/Native/AST.h", testsdir .. "/Native/ASTExtensions.h", testsdir .. "/Native/Passes.h" } |
|
||||||
filter "files:**.h" |
|
||||||
buildaction "None" |
|
||||||
filter {} |
|
||||||
|
|
||||||
links { "CppSharp.Generator" } |
|
||||||
|
|
||||||
nuget |
|
||||||
{ |
|
||||||
"System.CodeDom:4.7.0", |
|
||||||
"Microsoft.CSharp:4.7.0", |
|
||||||
"Microsoft.NET.Test.Sdk:16.8.0", |
|
||||||
"NUnit:3.11.0", |
|
||||||
"NUnit3TestAdapter:3.17.0", |
|
||||||
} |
|
@ -0,0 +1,14 @@ |
|||||||
|
<Project Sdk="Microsoft.NET.Sdk"> |
||||||
|
<ItemGroup> |
||||||
|
<EmbeddedResource Include="Passes\verbs.txt" /> |
||||||
|
</ItemGroup> |
||||||
|
|
||||||
|
<ItemGroup> |
||||||
|
<ProjectReference Include="..\Parser\CppSharp.Parser.csproj" /> |
||||||
|
<ProjectReference Include="$(NativeProjectsDir)Std-symbols.vcxproj" ReferenceOutputAssembly="false" Condition="$(IsWindows)" /> |
||||||
|
</ItemGroup> |
||||||
|
|
||||||
|
<ItemGroup> |
||||||
|
<PackageReference Include="System.CodeDom" Version="4.7.0" PrivateAssets="All"/> |
||||||
|
</ItemGroup> |
||||||
|
</Project> |
@ -1,20 +1 @@ |
|||||||
project "CppSharp.Generator" |
SetupExternalManagedProject("CppSharp.Generator") |
||||||
|
|
||||||
SetupManagedProject() |
|
||||||
|
|
||||||
kind "SharedLib" |
|
||||||
language "C#" |
|
||||||
dependson { "Std-symbols" } |
|
||||||
links { "CppSharp.Parser" } |
|
||||||
|
|
||||||
nuget |
|
||||||
{ |
|
||||||
"System.CodeDom:4.7.0", |
|
||||||
"Microsoft.CSharp:4.7.0" |
|
||||||
} |
|
||||||
|
|
||||||
files { "**verbs.txt" } |
|
||||||
filter { 'files:**verbs.txt' } |
|
||||||
buildaction "Embed" |
|
||||||
|
|
||||||
filter {} |
|
@ -0,0 +1,18 @@ |
|||||||
|
<Project Sdk="Microsoft.NET.Sdk"> |
||||||
|
<PropertyGroup> |
||||||
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> |
||||||
|
</PropertyGroup> |
||||||
|
|
||||||
|
<ItemGroup Condition="$(GenerateBuildConfig)"> |
||||||
|
<Compile Include="$(ActionDir)BuildConfig.cs" LinkBase="build" /> |
||||||
|
<Compile Remove="BuildConfig.cs" /> |
||||||
|
</ItemGroup> |
||||||
|
|
||||||
|
<ItemGroup> |
||||||
|
<ProjectReference Include="..\Core\CppSharp.csproj" /> |
||||||
|
<ProjectReference Include="..\AST\CppSharp.AST.csproj" /> |
||||||
|
<ProjectReference Include="..\Runtime\CppSharp.Runtime.csproj" /> |
||||||
|
<ProjectReference Include="..\CppParser\Bindings\CSharp\CppSharp.Parser.CSharp.csproj" Condition="!$(IsWindows) OR $(CI)" /> |
||||||
|
<ProjectReference Include="$(NativeProjectsDir)\CppSharp.Parser.CLI.vcxproj" Condition="$(IsWindows) AND !$(CI)" /> |
||||||
|
</ItemGroup> |
||||||
|
</Project> |
@ -0,0 +1,7 @@ |
|||||||
|
<Project Sdk="Microsoft.NET.Sdk"> |
||||||
|
<PropertyGroup> |
||||||
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> |
||||||
|
<TargetFramework>netstandard2.0</TargetFramework> |
||||||
|
<PlatformTarget>AnyCPU</PlatformTarget> |
||||||
|
</PropertyGroup> |
||||||
|
</Project> |
@ -0,0 +1 @@ |
|||||||
|
<Project Sdk="Microsoft.NET.Sdk" /> |
@ -0,0 +1 @@ |
|||||||
|
<Project Sdk="Microsoft.NET.Sdk" /> |
@ -0,0 +1 @@ |
|||||||
|
<Project Sdk="Microsoft.NET.Sdk" /> |
@ -0,0 +1 @@ |
|||||||
|
<Project Sdk="Microsoft.NET.Sdk" /> |
@ -0,0 +1 @@ |
|||||||
|
<Project Sdk="Microsoft.NET.Sdk" /> |
@ -0,0 +1 @@ |
|||||||
|
<Project Sdk="Microsoft.NET.Sdk" /> |
@ -0,0 +1 @@ |
|||||||
|
<Project Sdk="Microsoft.NET.Sdk" /> |
@ -0,0 +1 @@ |
|||||||
|
<Project Sdk="Microsoft.NET.Sdk" /> |
@ -0,0 +1,7 @@ |
|||||||
|
<Project> |
||||||
|
<Import Project="../Directory.Build.props" /> |
||||||
|
<Import Project="Test.Common.props" /> |
||||||
|
<Import Project="Test.Generator.props" Condition="$(IsTestGenerator)" /> |
||||||
|
<Import Project="Test.Bindings.props" Condition="$(IsTestBindings)" /> |
||||||
|
<Import Project="Test.props" Condition="$(IsTest)" /> |
||||||
|
</Project> |
@ -0,0 +1 @@ |
|||||||
|
<Project Sdk="Microsoft.NET.Sdk" /> |
@ -0,0 +1 @@ |
|||||||
|
<Project Sdk="Microsoft.NET.Sdk" /> |
@ -0,0 +1 @@ |
|||||||
|
<Project Sdk="Microsoft.NET.Sdk" /> |
@ -0,0 +1,11 @@ |
|||||||
|
<Project Sdk="Microsoft.NET.Sdk"> |
||||||
|
<PropertyGroup> |
||||||
|
<TestGeneratorName>NamespacesDerived.Gen</TestGeneratorName> |
||||||
|
<TestGeneratorProjectDir>$(MSBuildProjectDirectory)\..\NamespacesDerived\</TestGeneratorProjectDir> |
||||||
|
<EnableGeneratorCompileItems>false</EnableGeneratorCompileItems> |
||||||
|
</PropertyGroup> |
||||||
|
|
||||||
|
<ItemGroup> |
||||||
|
<Compile Include="$(GenDir)NamespacesDerived\NamespacesBase.cs" /> |
||||||
|
</ItemGroup> |
||||||
|
</Project> |
@ -0,0 +1,14 @@ |
|||||||
|
<Project Sdk="Microsoft.NET.Sdk"> |
||||||
|
<PropertyGroup> |
||||||
|
<EnableGeneratorCompileItems>false</EnableGeneratorCompileItems> |
||||||
|
</PropertyGroup> |
||||||
|
|
||||||
|
<ItemGroup> |
||||||
|
<Compile Include="$(GenDir)NamespacesDerived\NamespacesDerived.cs" /> |
||||||
|
<Compile Include="$(GenDir)NamespacesDerived\Std.cs" /> |
||||||
|
</ItemGroup> |
||||||
|
|
||||||
|
<ItemGroup> |
||||||
|
<ProjectReference Include="..\NamespacesBase\NamespacesBase.CSharp.csproj" /> |
||||||
|
</ItemGroup> |
||||||
|
</Project> |
@ -0,0 +1 @@ |
|||||||
|
<Project Sdk="Microsoft.NET.Sdk" /> |
@ -0,0 +1 @@ |
|||||||
|
<Project Sdk="Microsoft.NET.Sdk" /> |
@ -0,0 +1 @@ |
|||||||
|
<Project Sdk="Microsoft.NET.Sdk" /> |
@ -0,0 +1 @@ |
|||||||
|
<Project Sdk="Microsoft.NET.Sdk" /> |
@ -0,0 +1,23 @@ |
|||||||
|
<Project> |
||||||
|
<PropertyGroup> |
||||||
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> |
||||||
|
<EnableGeneratorCompileItems>true</EnableGeneratorCompileItems> |
||||||
|
</PropertyGroup> |
||||||
|
|
||||||
|
<ItemGroup> |
||||||
|
<GeneratedCSharpFiles Include="$(GenDir)$(TestName)\*.cs"></GeneratedCSharpFiles> |
||||||
|
<Compile Include="@(GeneratedCSharpFiles)" Condition="$(EnableGeneratorCompileItems)"/> |
||||||
|
</ItemGroup> |
||||||
|
|
||||||
|
<ItemGroup> |
||||||
|
<ProjectReference Include="$(TestGeneratorProjectDir)$(TestGeneratorName).csproj" ReferenceOutputAssembly="false" /> |
||||||
|
<ProjectReference Include="$(SrcDir)Runtime\CppSharp.Runtime.csproj" /> |
||||||
|
</ItemGroup> |
||||||
|
|
||||||
|
<Target Name="AddGeneratedCompileItems" BeforeTargets="BeforeCompile"> |
||||||
|
<ItemGroup Condition="$(EnableGeneratorCompileItems)"> |
||||||
|
<Compile Remove="@(GeneratedCSharpFiles)" /> |
||||||
|
<Compile Include="$(GenDir)$(TestName)\*.cs" /> |
||||||
|
</ItemGroup> |
||||||
|
</Target> |
||||||
|
</Project> |
@ -0,0 +1,20 @@ |
|||||||
|
<Project> |
||||||
|
<PropertyGroup> |
||||||
|
<EnableGeneratorCompileItems>true</EnableGeneratorCompileItems> |
||||||
|
<EnableDefaultCompileItems>false</EnableDefaultCompileItems> |
||||||
|
<EnableDefaultNoneItems>false</EnableDefaultNoneItems> |
||||||
|
<IsTestBindings>false</IsTestBindings> |
||||||
|
<IsTestGenerator>false</IsTestGenerator> |
||||||
|
<IsTest>false</IsTest> |
||||||
|
<IsTest Condition="$(MSBuildProjectName.Contains('.Tests'))">true</IsTest> |
||||||
|
<IsTestGenerator Condition="$(MSBuildProjectName.EndsWith('.Gen'))">true</IsTestGenerator> |
||||||
|
<IsTestBindings Condition="!$(IsTest) AND ($(MSBuildProjectName.EndsWith('.CSharp')) OR $(MSBuildProjectName.EndsWith('.CLI')))">true</IsTestBindings> |
||||||
|
<TestName>$(MSBuildProjectName.Substring(0, $(MSBuildProjectName.IndexOf('.'))))</TestName> |
||||||
|
<TestGeneratorName>$(TestName).Gen</TestGeneratorName> |
||||||
|
<OutputType Condition="$(IsTestGenerator)">Exe</OutputType> |
||||||
|
</PropertyGroup> |
||||||
|
|
||||||
|
<ItemGroup> |
||||||
|
<None Include="premake4.lua" /> |
||||||
|
</ItemGroup> |
||||||
|
</Project> |
@ -0,0 +1,31 @@ |
|||||||
|
<Project> |
||||||
|
<PropertyGroup> |
||||||
|
<GeneratorOutput>$(BaseIntermediateOutputPath)$(TestName).Bindings.timestamp</GeneratorOutput> |
||||||
|
</PropertyGroup> |
||||||
|
|
||||||
|
<ItemGroup> |
||||||
|
<Compile Include="$(TestName).Gen.cs" /> |
||||||
|
<Compile Include="$(SrcDir)Generator.Tests\GeneratorTest.cs" Visible="false" /> |
||||||
|
</ItemGroup> |
||||||
|
|
||||||
|
<ItemGroup> |
||||||
|
<ProjectReference Include="$(NativeProjectsDir)$(TestName).Native.vcxproj" ReferenceOutputAssembly="false" Condition="$(IsWindows)" /> |
||||||
|
<ProjectReference Include="$(SrcDir)Generator\CppSharp.Generator.csproj" /> |
||||||
|
</ItemGroup> |
||||||
|
|
||||||
|
<ItemGroup> |
||||||
|
<GeneratorInputs Include="*.h" /> |
||||||
|
<GeneratorInputs Include="$(TestName).Gen.cs" /> |
||||||
|
<UpToDateCheckInput Include="@(GeneratorInputs)" Set="Bindings" /> |
||||||
|
<UpToDateCheckBuilt Include="$(GeneratorOutput)" Set="Bindings" /> |
||||||
|
</ItemGroup> |
||||||
|
|
||||||
|
<Target Name="GenerateBindings" Inputs="@(GeneratorInputs)" Outputs="$(GeneratorOutput)" AfterTargets="AfterBuild"> |
||||||
|
<Exec command='$(DotNetCmd) "$(OutputPath)$(TestGeneratorName).$(GeneratorFileExtension)"' /> |
||||||
|
<Touch Files="$(GeneratorOutput)" AlwaysCreate="true" /> |
||||||
|
|
||||||
|
<ItemGroup> |
||||||
|
<FileWrites Include="$(GeneratorOutput)"/> |
||||||
|
</ItemGroup> |
||||||
|
</Target> |
||||||
|
</Project> |
@ -0,0 +1,20 @@ |
|||||||
|
<Project> |
||||||
|
<PropertyGroup> |
||||||
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> |
||||||
|
</PropertyGroup> |
||||||
|
|
||||||
|
<ItemGroup> |
||||||
|
<Compile Include="$(TestName).Tests.cs" /> |
||||||
|
</ItemGroup> |
||||||
|
|
||||||
|
<ItemGroup> |
||||||
|
<ProjectReference Include="$(SrcDir)Generator.Tests\CppSharp.Generator.Tests.csproj" /> |
||||||
|
<ProjectReference Include="$(TestName).CSharp.csproj" Condition="$(MSBuildProjectName.EndsWith('CSharp'))" /> |
||||||
|
<ProjectReference Include="$(NativeProjectsDir)$(TestName).Native.vcxproj" Condition="$(IsWindows)" ReferenceOutputAssembly="false" /> |
||||||
|
<ProjectReference Include="$(NativeProjectsDir)$(TestName).CLI.vcxproj" Condition="$(MSBuildProjectName.EndsWith('CLI')) AND $(IsWindows)" /> |
||||||
|
</ItemGroup> |
||||||
|
|
||||||
|
<ItemGroup> |
||||||
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.0" /> |
||||||
|
</ItemGroup> |
||||||
|
</Project> |
@ -0,0 +1 @@ |
|||||||
|
<Project Sdk="Microsoft.NET.Sdk" /> |
@ -0,0 +1 @@ |
|||||||
|
<Project Sdk="Microsoft.NET.Sdk" /> |
Loading…
Reference in new issue