68 строки
3.4 KiB
Plaintext
68 строки
3.4 KiB
Plaintext
|
<!--
|
||
|
***********************************************************************************************
|
||
|
Xamarin.Mac.AppExtension.Common.targets
|
||
|
|
||
|
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
|
||
|
created a backup copy. Incorrect changes to this file will make it
|
||
|
impossible to load or build your projects from the command-line or the IDE.
|
||
|
|
||
|
This file imports the version- and platform-specific targets for the project importing
|
||
|
this file. This file also defines targets to produce an error if the specified targets
|
||
|
file does not exist, but the project is built anyway (command-line or IDE build).
|
||
|
|
||
|
Copyright (C) 2013-2014 Xamarin. All rights reserved.
|
||
|
***********************************************************************************************
|
||
|
-->
|
||
|
|
||
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||
|
<PropertyGroup>
|
||
|
<IsAppExtension>True</IsAppExtension>
|
||
|
</PropertyGroup>
|
||
|
|
||
|
<Import Project="$(MSBuildThisFileDirectory)Xamarin.Mac.Common.targets" />
|
||
|
|
||
|
<Import Project="$(MSBuildThisFileDirectory)Xamarin.Mac.AppExtension.Common.props"
|
||
|
Condition="'$(_XamarinAppExtensionCommonPropsHasBeenImported)' != 'true'" />
|
||
|
|
||
|
<Import Project="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).Before.targets"
|
||
|
Condition="Exists('$(MSBuildThisFileDirectory)$(MSBuildThisFileName).Before.targets')"/>
|
||
|
|
||
|
<!-- Override GetTargetPath, Build, and Rebuild -->
|
||
|
<Target Name="GetBundleTargetPath" DependsOnTargets="_GenerateBundleName;$(GetTargetPathDependsOn)" Outputs="@(_AppExtensionBundlePath)" />
|
||
|
<Target Name="Build" Condition="'$(_InvalidConfigurationWarning)' != 'true'" DependsOnTargets="_EnabledLocalSigning;_GenerateBundleName;$(BuildDependsOn)" Outputs="$(_AppExtensionBundlePath)" />
|
||
|
<Target Name="Rebuild" Condition="'$(_InvalidConfigurationWarning)' != 'true'" DependsOnTargets="_EnabledLocalSigning;_GenerateBundleName;$(RebuildDependsOn)" Outputs="$(_AppExtensionBundlePath)" />
|
||
|
|
||
|
<Target Name="_EnabledLocalSigning" DependsOnTargets="_DetectSigningIdentity">
|
||
|
<PropertyGroup>
|
||
|
<EnableCodeSigning Condition="'$(EnableCodeSigning)' != 'true'">true</EnableCodeSigning>
|
||
|
<_CodeSigningKey Condition="'$(_CodeSigningKey)' == ''">-</_CodeSigningKey>
|
||
|
<CodeSignEntitlements Condition="'$(CodeSignEntitlements)' == ''">Entitlements.plist</CodeSignEntitlements>
|
||
|
</PropertyGroup>
|
||
|
</Target>
|
||
|
|
||
|
<Target Name="_GenerateBundleName" DependsOnTargets="_DetectSigningIdentity">
|
||
|
<PropertyGroup>
|
||
|
<AppBundleDir Condition="'$(AppBundleDir)' == ''">$(OutputPath)$(DeviceSpecificOutputPath)$(_AppBundleName).appex</AppBundleDir>
|
||
|
<_AppBundlePath>$(AppBundleDir)\</_AppBundlePath>
|
||
|
|
||
|
<_AppResourcesPath>$(_AppBundlePath)Contents\Resources\</_AppResourcesPath>
|
||
|
|
||
|
<!-- needed for GetTargetPath/Build/Rebuild task outputs -->
|
||
|
<_AppExtensionBundlePath>$(MSBuildProjectDirectory)\$(AppBundleDir)</_AppExtensionBundlePath>
|
||
|
</PropertyGroup>
|
||
|
<ItemGroup>
|
||
|
<_AppExtensionBundlePath Include="$(MSBuildProjectDirectory)\$(AppBundleDir)">
|
||
|
<!-- We need this metadata to fix the source in VS -->
|
||
|
<BuildSessionId>$(BuildSessionId)</BuildSessionId>
|
||
|
<BuildServerPath>..\..\$(BuildAppName)\$(BuildSessionId)\$(AppBundleDir)</BuildServerPath>
|
||
|
</_AppExtensionBundlePath>
|
||
|
</ItemGroup>
|
||
|
</Target>
|
||
|
|
||
|
<Target Name="CreateIpa"/>
|
||
|
|
||
|
<Import Project="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).After.targets"
|
||
|
Condition="Exists('$(MSBuildThisFileDirectory)$(MSBuildThisFileName).After.targets')"/>
|
||
|
|
||
|
</Project>
|