xamarin-macios/tests/xammac_tests/xammac_tests.csproj

304 строки
14 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{22BF080C-AFAD-445B-8BB5-42B9E7FDBC68}</ProjectGuid>
<ProjectTypeGuids>{A3F8F2AB-B479-4A4A-A458-A89E7DC349F1};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<OutputType>Exe</OutputType>
<RootNamespace>xammac_tests</RootNamespace>
<AssemblyName>xammac_tests</AssemblyName>
<MonoMacResourcePrefix>Resources</MonoMacResourcePrefix>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<TargetFrameworkIdentifier>Xamarin.Mac</TargetFrameworkIdentifier>
<LangVersion>latest</LangVersion>
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
<RootTestsDirectory>..</RootTestsDirectory>
<CompilerResponseFile>$(RootTestsDirectory)\..\src\rsp\macos-defines.rsp</CompilerResponseFile>
<MonoBundlingExtraArgs>$(MonoBundlingExtraArgs) --marshal-objectivec-exceptions:throwmanagedexception</MonoBundlingExtraArgs>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\x86\Debug</OutputPath>
<DefineConstants>DEBUG;MONOMAC;XAMMAC_TESTS</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>0</WarningLevel>
<EnableCodeSigning>false</EnableCodeSigning>
<CreatePackage>false</CreatePackage>
<EnablePackageSigning>false</EnablePackageSigning>
<IncludeMonoRuntime>false</IncludeMonoRuntime>
<UseSGen>false</UseSGen>
<HttpClientHandler>HttpClientHandler</HttpClientHandler>
<TlsProvider>Default</TlsProvider>
<LinkMode>None</LinkMode>
<XamMacArch>x86_64</XamMacArch>
<CodeSigningKey>Mac Developer</CodeSigningKey>
<PackageSigningKey>3rd Party Mac Developer Installer</PackageSigningKey>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<CodeSignEntitlements>Entitlements.plist</CodeSignEntitlements>
<CodeSignProvision>Automatic</CodeSignProvision>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<Optimize>true</Optimize>
<OutputPath>bin\x86\Release</OutputPath>
<DefineConstants>MONOMAC;XAMMAC_TESTS</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>0</WarningLevel>
<EnableCodeSigning>false</EnableCodeSigning>
<CreatePackage>false</CreatePackage>
<EnablePackageSigning>false</EnablePackageSigning>
<IncludeMonoRuntime>false</IncludeMonoRuntime>
<UseSGen>false</UseSGen>
<HttpClientHandler>HttpClientHandler</HttpClientHandler>
<TlsProvider>Default</TlsProvider>
<LinkMode>None</LinkMode>
<XamMacArch>x86_64</XamMacArch>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="Xamarin.Mac">
<HintPath>..\..\_mac-build\Library\Frameworks\Xamarin.Mac.framework\Versions\git\lib\reference\mobile\Xamarin.Mac.dll</HintPath>
</Reference>
<Reference Include="System.Net.Http" />
<Reference Include="OpenTK" />
<Reference Include="System.Xml" />
<Reference Include="System.Net" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\common\Assert.cs">
<Link>Assert.cs</Link>
</Compile>
<Compile Include="..\common\Configuration.cs">
<Link>Configuration.cs</Link>
</Compile>
<Compile Include="..\common\PlatformInfo.cs">
<Link>PlatformInfo.cs</Link>
</Compile>
<Compile Include="..\common\TestRuntime.cs">
<Link>TestRuntime.cs</Link>
</Compile>
<Compile Include="..\common\TestRuntime.RunAsync.cs">
<Link>TestRuntime.RunAsync.cs</Link>
</Compile>
<Compile Include="..\common\Extensions.cs">
<Link>Extensions.cs</Link>
</Compile>
<Compile Include="..\common\mac\MacMain.cs">
<Link>MacMain.cs</Link>
</Compile>
<Compile Include="..\common\ExecutionHelper.cs">
<Link>ExecutionHelper.cs</Link>
</Compile>
<Compile Include="..\common\TestAssemblyLoader.cs">
<Link>TestAssemblyLoader.cs</Link>
</Compile>
<Compile Include="..\api-shared\ObjCRuntime\RegistrarTest.cs">
<Link>api-shared\ObjCRuntime\RegistrarTest.cs</Link>
</Compile>
<Compile Include="..\api-shared\CoreFoundation\CFNotificationCenterTest.cs">
<Link>CoreFoundation\CFNotificationCenterTest.cs</Link>
</Compile>
<Compile Include="..\EmbeddedResources\ResourcesTest.cs">
<Link>EmbeddedResources\ResourcesTest.cs</Link>
</Compile>
<Compile Include="..\..\tools\common\StringUtils.cs">
<Link>StringUtils.cs</Link>
</Compile>
<Compile Include="..\monotouch-test\**\*.cs" Exclude="..\monotouch-test\**\obj\**">
<Link>%(RecursiveDir)%(Filename).cs</Link>
</Compile>
<Compile Include="..\..\tests\test-libraries\TrampolineTest.generated.cs" />
<Compile Include="..\..\tests\test-libraries\RegistrarTest.generated.cs" />
<Compile Include="..\..\tools\common\Driver.execution.cs">
<Link>Driver.execution.cs</Link>
</Compile>
<Compile Include="..\..\tools\common\Execution.cs">
<Link>Execution.cs</Link>
</Compile>
<Compile Include="..\mtouch\Cache.cs">
<Link>Cache.cs</Link>
</Compile>
<Compile Include="..\..\tools\common\TargetFramework.cs">
<Link>TargetFramework.cs</Link>
</Compile>
<Compile Include="..\..\tools\common\ApplePlatform.cs">
<Link>ApplePlatform.cs</Link>
</Compile>
<Compile Include="..\..\tools\common\SdkVersions.cs">
<Link>SdkVersions.cs</Link>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="Info.plist" />
<None Include="Entitlements.plist" />
<None Include="..\monotouch-test\app.config">
<Link>app.config</Link>
</None>
</ItemGroup>
<ItemGroup>
<Content Include="..\monotouch-test\Hand.wav">
<Link>Hand.wav</Link>
</Content>
<Content Include="..\monotouch-test\BoardingPass.pkpass">
<Link>BoardingPass.pkpass</Link>
</Content>
<Content Include="..\monotouch-test\drum01.mp3">
<Link>drum01.mp3</Link>
</Content>
<Content Include="..\monotouch-test\Pacifico.ttf">
<Link>Pacifico.ttf</Link>
</Content>
<Content Include="..\monotouch-test\Tamarin.pdf">
<Link>Tamarin.pdf</Link>
</Content>
<Content Include="..\monotouch-test\LL-171A-B-B797E457-16AB-C708-1E0F-32C19DBD47B5.icc">
<Link>LL-171A-B-B797E457-16AB-C708-1E0F-32C19DBD47B5.icc</Link>
</Content>
<Content Include="..\monotouch-test\xamvideotest.mp4">
<Link>xamvideotest.mp4</Link>
</Content>
<Content Include="..\monotouch-test\Resources\xamarin0.png">
<Link>xamarin0.png</Link>
</Content>
<Content Include="..\monotouch-test\Resources\xamarin1.png">
<Link>xamarin1.png</Link>
</Content>
<Content Include="..\monotouch-test\Resources\xamarin2.png">
<Link>xamarin2.png</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="..\monotouch-test\CoreImage\Xam.png">
<Link>CoreImage\Xam.png</Link>
</Content>
<Content Include="..\monotouch-test\basn3p08.png">
<Link>basn3p08.png</Link>
</Content>
<Content Include="..\monotouch-test\basn3p08_with_loc.png">
<Link>basn3p08_with_loc.png</Link>
</Content>
<Content Include="..\monotouch-test\AudioToolbox\1.caf">
<Link>AudioToolbox\1.caf</Link>
</Content>
<Content Include="..\monotouch-test\Resources\metal-sample.metal">
<Link>Resources\metal-sample.metal</Link>
</Content>
<Content Include="..\monotouch-test\Resources\fragmentShader.metal">
<Link>Resources\fragmentShader.metal</Link>
</Content>
<Content Include="..\monotouch-test\uncompressed.txt">
<Link>uncompressed.txt</Link>
</Content>
<Content Include="..\monotouch-test\compressed_lze">
<Link>compressed_lze</Link>
</Content>
<Content Include="..\monotouch-test\compressed_lz4">
<Link>compressed_lz4</Link>
</Content>
<Content Include="..\monotouch-test\compressed_lzma">
<Link>compressed_lzma</Link>
</Content>
<Content Include="..\monotouch-test\compressed_zip">
<Link>compressed_zip</Link>
</Content>
<Content Include="..\monotouch-test\access-denied.html">
<Link>access-denied.html</Link>
</Content>
<Content Include="..\monotouch-test\access-granted.html">
<Link>access-granted.html</Link>
</Content>
<Content Include="..\monotouch-test\Resources\square.gif">
<Link>Resources\square.gif</Link>
</Content>
<Content Include="..\monotouch-test\Resources\full_body.jpg">
<Link>Resources\full_body.jpg</Link>
</Content>
</ItemGroup>
<ItemGroup>
<Metal Include="..\monotouch-test\Resources\metal-sample.metal">
<Link>Resources\metal-sample.metal</Link>
</Metal>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="..\monotouch-test\Security\openssl_crt.der">
<Link>Security\openssl_crt.der</Link>
</EmbeddedResource>
<EmbeddedResource Include="..\EmbeddedResources\Welcome.resx">
<Link>EmbeddedResources\Welcome.resx</Link>
</EmbeddedResource>
<EmbeddedResource Include="..\EmbeddedResources\Welcome.de.resx">
<Link>EmbeddedResources\Welcome.de.resx</Link>
</EmbeddedResource>
<EmbeddedResource Include="..\EmbeddedResources\Welcome.en-AU.resx">
<Link>EmbeddedResources\Welcome.en-AU.resx</Link>
</EmbeddedResource>
<EmbeddedResource Include="..\EmbeddedResources\Welcome.es.resx">
<Link>EmbeddedResources\Welcome.es.resx</Link>
</EmbeddedResource>
<EmbeddedResource Include="..\monotouch-test\Resources\Welcome.resx">
<LogicalName>monotouchtest.Welcome.resources</LogicalName>
</EmbeddedResource>
<EmbeddedResource Include="..\monotouch-test\Resources\Welcome.en-AU.resx">
<LogicalName>monotouchtest.Welcome.en-AU.resources</LogicalName>
</EmbeddedResource>
<EmbeddedResource Include="..\monotouch-test\Resources\Welcome.es.resx">
<LogicalName>monotouchtest.Welcome.es.resources</LogicalName>
</EmbeddedResource>
<EmbeddedResource Include="..\monotouch-test\Resources\Welcome.de.resx">
<LogicalName>monotouchtest.Welcome.de.resources</LogicalName>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<Folder Include="EmbeddedResources\" />
<Folder Include="..\monotouch-test\BundleResourceResources\Base.lproj\" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\bindings-test\macOS\bindings-test.csproj">
<Project>{20BEA313-7E2D-4209-93C0-E4D99C72695A}</Project>
<Name>bindings-test</Name>
</ProjectReference>
<ProjectReference Include="..\..\external\Touch.Unit\Touch.Client\macOS\mobile\Touch.Client-macOS-mobile.csproj">
<Project>{88A8A1AC-0829-4C98-8F4A-9FC23DC42A06}</Project>
<Name>Touch.Client-macOS-mobile</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<BundleResource Include="..\monotouch-test\CoreImage\xamarinmonkey.heic">
<Link>CoreImage\xamarinmonkey.heic</Link>
</BundleResource>
<BundleResource Include="..\monotouch-test\Resources\Base.lproj\Localizable.strings">
<Link>Base.lproj\Localizable.strings</Link>
</BundleResource>
</ItemGroup>
<Import Project="$(RootTestsDirectory)\ComputeRegistrarConstant.targets" />
<Import Project="$(RootTestsDirectory)\nunit.framework.targets" />
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Mac\Xamarin.Mac.CSharp.targets" />
<PropertyGroup>
<TestLibrariesDirectory>..\..\tests\test-libraries</TestLibrariesDirectory>
</PropertyGroup>
<ItemGroup>
<GeneratedTestInput Include="..\..\tests\test-libraries\*.m" />
<GeneratedTestInput Include="..\..\tests\test-libraries\*.h" />
<GeneratedTestInput Include="..\..\tests\test-libraries\*.cs" />
<GeneratedTestInput Include="..\..\tests\test-libraries\custom-type-assembly\*.cs" />
<GeneratedTestInput Include="..\..\tests\test-libraries\Makefile" />
<GeneratedTestOutput Include="..\..\tests\test-libraries\TrampolineTest.generated.cs" />
<GeneratedTestOutput Include="..\..\tests\test-libraries\RegistrarTest.generated.cs" />
<GeneratedTestOutput Include="..\..\tests\test-libraries\custom-type-assembly\.libs\macos\custom-type-assembly.dll" />
<CustomMetalSmeltingInput Include="..\monotouch-test\Resources\fragmentShader.metal" />
</ItemGroup>
<Target Name="CustomMetalSmelting" Inputs="@(CustomMetalSmeltingInput)" Outputs="$(_AppBundlePath)\Contents\Resources\fragmentShader.metallib" DependsOnTargets="_GenerateBundleName;_DetectSdkLocations">
<MakeDir Directories="$(IntermediateOutputPath)\Contents\Resources;$(AppBundleDir)\Contents\Resources" />
<Exec Command="xcrun -sdk macosx metal -c @(CustomMetalSmeltingInput) -o $(IntermediateOutputPath)\Contents\Resources\fragmentShader.air -mmacos-version-min=10.13" EnvironmentVariables="DEVELOPER_DIR=$(_SdkDevPath)"/>
<Exec Command="xcrun -sdk macosx metallib $(IntermediateOutputPath)\Contents\Resources\fragmentShader.air -o $(AppBundleDir)\Contents\Resources\fragmentShader.metallib" EnvironmentVariables="DEVELOPER_DIR=$(_SdkDevPath)" />
</Target>
<Target Name="BeforeBuild" Inputs="@(GeneratedTestInput)" Outputs="@(GeneratedTestOutput)" DependsOnTargets="CustomMetalSmelting"
Condition="!Exists('$(TestLibrariesDirectory)/.libs/macos/custom-type-assembly.dll') Or !Exists('$(TestLibrariesDirectory)/.libs/dotnet/macos/custom-type-assembly.dll')" >
<Exec Command="make -j8 -C $(TestLibrariesDirectory)" EnvironmentVariables="MSBUILD_EXE_PATH=;MSBuildSDKsPath=" Condition="'$(BUILD_REVISION)' == ''" />
<Exec Command="make -j8 -C $(TestLibrariesDirectory)/custom-type-assembly build-assembly" EnvironmentVariables="MSBUILD_EXE_PATH=;MSBuildSDKsPath=" Condition="'$(BUILD_REVISION)' == ''"/>
</Target>
</Project>