summaryrefslogtreecommitdiff
path: root/tests/src/dir.props
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/dir.props')
-rw-r--r--tests/src/dir.props51
1 files changed, 48 insertions, 3 deletions
diff --git a/tests/src/dir.props b/tests/src/dir.props
index 925e3faba7..f3f229de9a 100644
--- a/tests/src/dir.props
+++ b/tests/src/dir.props
@@ -1,5 +1,52 @@
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="dir.common.props" />
+ <Import Project="..\dir.props" />
+
+ <Import Project="..\dir.common.props" />
+
+ <!-- Setup Default symbol and optimization for Configuration -->
+ <PropertyGroup Condition="'$(Configuration)' == 'Debug'">
+ <DebugSymbols Condition="'$(DebugSymbols)' == ''">true</DebugSymbols>
+ <Optimize Condition="'$(Optimize)' == ''">false</Optimize>
+ <DebugType Condition="'$(DebugType)' == ''">full</DebugType>
+ <DefineConstants>$(DefineConstants);DEBUG;TRACE;XUNIT_PERF</DefineConstants>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)' == 'Release'">
+ <DebugSymbols Condition="'$(DebugSymbols)' == ''">true</DebugSymbols>
+ <Optimize Condition="'$(Optimize)' == ''">true</Optimize>
+ <DebugType Condition="'$(DebugType)' == ''">pdbonly</DebugType>
+ <DefineConstants>$(DefineConstants);TRACE;XUNIT_PERF</DefineConstants>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)' == 'Checked'">
+ <DebugSymbols Condition="'$(DebugSymbols)' == ''">true</DebugSymbols>
+ <Optimize Condition="'$(Optimize)' == ''">true</Optimize>
+ <DebugType Condition="'$(DebugType)' == ''">full</DebugType>
+ <DefineConstants>$(DefineConstants);DEBUG;TRACE;XUNIT_PERF</DefineConstants>
+ </PropertyGroup>
+
+ <!-- Setup target platform pointer size in bit-->
+ <PropertyGroup>
+ <PointerSize Condition="'$(Platform)'=='x64'">64</PointerSize>
+ <PointerSize Condition="'$(Platform)'=='arm64'">64</PointerSize>
+ <PointerSize Condition="'$(Platform)'=='x86'">32</PointerSize>
+ <PointerSize Condition="'$(Platform)'=='arm'">32</PointerSize>
+ </PropertyGroup>
+
+<!-- Setup the default output and intermediate paths -->
+ <PropertyGroup>
+ <BaseOutputPath>$(ProjectDir)\..\bin\tests</BaseOutputPath>
+ <BaseOutputPath Condition="'$(__TestRootDir)' != ''">$(__TestRootDir)</BaseOutputPath>
+ <BaseOutputPathWithConfig>$(BaseOutputPath)\$(OSPlatformConfig)\</BaseOutputPathWithConfig>
+ <BinDir>$(BaseOutputPathWithConfig)</BinDir>
+ <BaseIntermediateOutputPath>$(ProjectDir)\..\bin\tests\obj\$(OSPlatformConfig)\Managed\</BaseIntermediateOutputPath>
+ <BaseIntermediateOutputPath Condition="'$(__ManagedTestIntermediatesDir)' != ''">$(__ManagedTestIntermediatesDir)\</BaseIntermediateOutputPath>
+ <__NativeTestIntermediatesDir Condition="'$(__NativeTestIntermediatesDir)' == ''">$([System.IO.Path]::GetFullPath($(BaseOutputPathWithConfig)..\obj\$(BuildOS).$(Platform).$(Configuration)\Native\))</__NativeTestIntermediatesDir>
+ <BuildProjectRelativeDir>$(MSBuildProjectName)\</BuildProjectRelativeDir>
+ <BuildProjectRelativeDir Condition="'$(MSBuildProjectDirectory.Contains($(SourceDir)))'">$([System.String]::Copy('$(MSBuildProjectDirectory)').Replace($(SourceDir),''))\$(MSBuildProjectName)</BuildProjectRelativeDir>
+ <IntermediateOutputPath>$(BaseIntermediateOutputPath)$(BuildProjectRelativeDir)\</IntermediateOutputPath>
+ <OutputPath>$(BaseOutputPathWithConfig)$(BuildProjectRelativeDir)\</OutputPath>
+ <TestWorkingDir Condition="'$(TestWorkingDir)'==''">$(BaseOutputPath)\testStagingDir\</TestWorkingDir>
+ <TestPath Condition="'$(TestPath)'==''">$(TestWorkingDir)$(OSPlatformConfig)\$(MSBuildProjectName)/</TestPath>
+ </PropertyGroup>
<!-- Disable some standard properties for building our projects -->
<PropertyGroup>
@@ -11,8 +58,6 @@
<NoWarn>78,162,164,168,169,219,251,252,414,429,642,649,652,675,1691,1717,1718,3001,3002,3003,3005,3008</NoWarn>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<SkipSigning Condition="'$(CrossGen)' == 'true'">true</SkipSigning>
- <!-- Set the project.json directory for generated TestWrappers. -->
- <TestWrappersPackagesConfigFileDirectory>$(MSBuildThisFileDirectory)TestWrappersConfig\</TestWrappersPackagesConfigFileDirectory>
<AssemblyKey>Test</AssemblyKey>
</PropertyGroup>