Tools and libraries to glue C/C++ APIs to high-level languages
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

24 lines
925 B

<Project>
<PropertyGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<EnableGeneratorCompileItems>true</EnableGeneratorCompileItems>
<OutputPath>$(GenDir)$(TestName)</OutputPath>
</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>