diff options
Diffstat (limited to 'tests/src/Simple/SharedLibrary/SharedLibrary.csproj')
-rw-r--r-- | tests/src/Simple/SharedLibrary/SharedLibrary.csproj | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/src/Simple/SharedLibrary/SharedLibrary.csproj b/tests/src/Simple/SharedLibrary/SharedLibrary.csproj new file mode 100644 index 000000000..5bfa784b9 --- /dev/null +++ b/tests/src/Simple/SharedLibrary/SharedLibrary.csproj @@ -0,0 +1,35 @@ +<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + + <PropertyGroup> + <OutputType>Library</OutputType> + <NativeLib>Shared</NativeLib> + </PropertyGroup> + + <ItemGroup> + <Compile Include="*.cs" /> + </ItemGroup> + + <Target Name="NativeRunnerCompile" AfterTargets="LinkNative"> + <PropertyGroup> + <NativeRunnerBinary>$(NativeOutputPath)SharedLibrary</NativeRunnerBinary> + </PropertyGroup> + + <ItemGroup> + <CppCompile Include="SharedLibrary.cpp" /> + </ItemGroup> + + <ItemGroup> + <NativeRunnerCompilerArg Include="@(CppCompile)" /> + <NativeRunnerCompilerArg Include="-o $(NativeRunnerBinary)" Condition="'$(OS)' != 'Windows_NT'" /> + <NativeRunnerCompilerArg Include="/Fo$(NativeRunnerBinary)" Condition="'$(OS)' == 'Windows_NT'" /> + <NativeRunnerCompilerArg Include="/Fe$(NativeRunnerBinary)" Condition="'$(OS)' == 'Windows_NT'" /> + </ItemGroup> + + <Exec Command="$(CppCompiler) @(NativeRunnerCompilerArg, ' ')" Condition="'$(OS)' != 'Windows_NT'" /> + <WriteLinesToFile File="$(NativeIntermediateOutputPath)SharedLibrary.cl.rsp" Lines="@(NativeRunnerCompilerArg)" Overwrite="true" Condition="'$(OS)' == 'Windows_NT'"/> + <Exec Command="$(CppCompiler) @"$(NativeIntermediateOutputPath)SharedLibrary.cl.rsp"" Condition="'$(OS)' == 'Windows_NT'" /> + </Target> + + <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), SimpleTest.targets))\SimpleTest.targets" /> + +</Project> |