Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/Simple/StaticLibrary/StaticLibrary.csproj')
-rw-r--r--tests/src/Simple/StaticLibrary/StaticLibrary.csproj53
1 files changed, 53 insertions, 0 deletions
diff --git a/tests/src/Simple/StaticLibrary/StaticLibrary.csproj b/tests/src/Simple/StaticLibrary/StaticLibrary.csproj
new file mode 100644
index 000000000..591b8644b
--- /dev/null
+++ b/tests/src/Simple/StaticLibrary/StaticLibrary.csproj
@@ -0,0 +1,53 @@
+<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+
+ <PropertyGroup>
+ <OutputType>Library</OutputType>
+ <NativeLib>Static</NativeLib>
+ </PropertyGroup>
+
+ <ItemGroup>
+ <Compile Include="*.cs" />
+ </ItemGroup>
+
+ <Target Name="NativeRunnerCompile" AfterTargets="LinkNative">
+ <PropertyGroup>
+ <NativeRunnerBinary>$(NativeOutputPath)StaticLibrary</NativeRunnerBinary>
+ </PropertyGroup>
+
+ <ItemGroup>
+ <CppCompile Include="StaticLibrary.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'" />
+ <NativeRunnerCompilerArg Include="$(NativeBinary)" Condition="'$(OS)' == 'Windows_NT'" />
+ <NativeRunnerCompilerArg Include="@(NativeLibrary)" Condition="'$(OS)' == 'Windows_NT'" />
+ <NativeRunnerCompilerArg Include="/MTd" Condition="'$(OS)' == 'Windows_NT' and '$(Configuration)' == 'Debug'" />
+ <NativeRunnerCompilerArg Include="/MT" Condition="'$(OS)' == 'Windows_NT' and '$(Configuration)' != 'Debug'" />
+ </ItemGroup>
+
+ <ItemGroup>
+ <NativeRunnerLinkerArg Include="@(NativeLibrary)" />
+ <NativeRunnerLinkerArg Include="-g" />
+ <NativeRunnerLinkerArg Include="-Wl,-rpath,'$ORIGIN'" />
+ <NativeRunnerLinkerArg Include="-pthread" />
+ <NativeRunnerLinkerArg Include="-lstdc++" />
+ <NativeRunnerLinkerArg Include="-ldl" />
+ <NativeRunnerLinkerArg Include="-lm" />
+ <NativeRunnerLinkerArg Include="-lcurl" />
+ <NativeRunnerLinkerArg Include="-lz" />
+ <NativeRunnerLinkerArg Include="-lrt" Condition="'$(TargetOS)' != 'OSX'" />
+ <NativeRunnerLinkerArg Include="-licucore" Condition="'$(TargetOS)' == 'OSX'" />
+ </ItemGroup>
+
+ <Exec Command="$(CppCompiler) @(NativeRunnerCompilerArg, ' ') $(NativeBinary) @(NativeRunnerLinkerArg, ' ')" Condition="'$(OS)' != 'Windows_NT'" />
+ <WriteLinesToFile File="$(NativeIntermediateOutputPath)SharedLibrary.cl.rsp" Lines="@(NativeRunnerCompilerArg)" Overwrite="true" Condition="'$(OS)' == 'Windows_NT'"/>
+ <Exec Command="$(CppCompiler) @&quot;$(NativeIntermediateOutputPath)SharedLibrary.cl.rsp&quot;" Condition="'$(OS)' == 'Windows_NT'" />
+ </Target>
+
+ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), SimpleTest.targets))\SimpleTest.targets" />
+
+</Project>