2016-04-21 16:40:25 +03:00
|
|
|
<!--
|
|
|
|
***********************************************************************************************
|
|
|
|
Xamarin.Mac.Common.props
|
|
|
|
|
|
|
|
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 defines default properties for iOS projects.
|
|
|
|
|
|
|
|
Copyright (C) 2013-2014 Xamarin. All rights reserved.
|
|
|
|
***********************************************************************************************
|
|
|
|
-->
|
|
|
|
|
2018-03-21 22:27:53 +03:00
|
|
|
<!-- Unlike Xamarin.Mac.Common.targets, which is not shared by the ObjC Bindings targets (yet),
|
|
|
|
Xamarin.Mac.Common.props is shared and truely common. -->
|
2016-04-21 16:40:25 +03:00
|
|
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
|
|
|
|
|
|
<Import Project="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).Before.props"
|
|
|
|
Condition="Exists('$(MSBuildThisFileDirectory)$(MSBuildThisFileName).Before.props')"/>
|
|
|
|
|
|
|
|
<!-- This is used to determine whether Xamarin.Mac.Common.targets needs to import
|
|
|
|
Xamarin.Mac.Common.props itself, or whether it has been imported previously,
|
|
|
|
e.g. by the project itself. -->
|
|
|
|
<PropertyGroup>
|
|
|
|
<_XamarinCommonPropsHasBeenImported>true</_XamarinCommonPropsHasBeenImported>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
2020-06-02 15:26:25 +03:00
|
|
|
<Import Project="$(MSBuildThisFileDirectory)Xamarin.Shared.props" />
|
|
|
|
|
2019-03-01 01:33:25 +03:00
|
|
|
<!-- Story-time! MigrateToNewXMIdentifier is special because it un-does a lie we started telling from the
|
|
|
|
beginning of Full (called Xamarin.Mac 4.5 back then). Back then, we released Modern (called Mobile) and
|
|
|
|
when many customers upgraded from Classic they broke in terrible ways as none of their nugets worked.
|
|
|
|
No nugets in the wild had heard of the Xamarin.Mac TFI and thus didn't support it. To "fix" this use case,
|
|
|
|
we created Full (XM 4.5) and _lied_ with our TFI claiming to be .NETFramework. Well we were close enough
|
|
|
|
for a vast majority of packages to work. However, this made creating Full specific package flavors impossible.
|
|
|
|
Now that we're getting "real" nuget support, we need to stop lying without breaking the world. We're starting by
|
|
|
|
allowing "opt-in" MigrateToNewXMIdentifier which will swap your declared TFI to the new hotness.
|
|
|
|
-->
|
|
|
|
<PropertyGroup Condition=" '$(MigrateToNewXMIdentifier)' == 'true' And '$(TargetFrameworkIdentifier)' != 'Xamarin.Mac' And '$(UseXamMacFullFramework)' == 'true' ">
|
|
|
|
<TargetFrameworkIdentifier>Xamarin.Mac.NET</TargetFrameworkIdentifier>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
2017-03-14 19:08:04 +03:00
|
|
|
<PropertyGroup>
|
2017-08-28 22:58:45 +03:00
|
|
|
<!-- Opt-in to filter out assemblies denied loading by mono, to avoid bundling them.
|
|
|
|
This should only be for non-Modern profiles, since people who are recompiling for
|
|
|
|
Modern aren't shipping windows bits.
|
|
|
|
-->
|
|
|
|
<FilterDeniedAssemblies Condition="'$(TargetFrameworkIdentifier)' != 'Xamarin.Mac'">true</FilterDeniedAssemblies>
|
2017-03-14 19:08:04 +03:00
|
|
|
</PropertyGroup>
|
|
|
|
|
2016-04-21 16:40:25 +03:00
|
|
|
<!-- When looking for related files to copy, look for Mono debugging files as well -->
|
|
|
|
<PropertyGroup>
|
|
|
|
<AllowedReferenceRelatedFileExtensions>
|
|
|
|
$(AllowedReferenceRelatedFileExtensions);
|
|
|
|
.dll.mdb;
|
2017-02-07 16:39:17 +03:00
|
|
|
.exe.mdb;
|
|
|
|
.pdb
|
2016-04-21 16:40:25 +03:00
|
|
|
</AllowedReferenceRelatedFileExtensions>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<PropertyGroup>
|
2020-06-11 17:34:57 +03:00
|
|
|
<CodesignProvision Condition="'$(CodesignProvision)' == ''"></CodesignProvision>
|
|
|
|
<CodesignEntitlements Condition="'$(CodesignEntitlements)' == ''"></CodesignEntitlements>
|
|
|
|
<CodesignResourceRules Condition="'$(CodesignResourceRules)' == ''"></CodesignResourceRules>
|
|
|
|
<CodesignExtraArgs Condition="'$(CodesignExtraArgs)' == ''"></CodesignExtraArgs>
|
2016-04-21 16:40:25 +03:00
|
|
|
<CreatePackage Condition="'$(CreatePackage)' == ''">false</CreatePackage>
|
|
|
|
<HttpClientHandler Condition="'$(HttpClientHandler)' == ''">HttpClientHandler</HttpClientHandler>
|
|
|
|
<EnablePackageSigning Condition="'$(EnablePackageSigning)' == ''">false</EnablePackageSigning>
|
|
|
|
<PackageSigningKey Condition="'$(PackageSigningKey)' == ''"></PackageSigningKey>
|
|
|
|
<ProductDefinition Condition="'$(ProductDefinition)' == ''"></ProductDefinition>
|
|
|
|
<PackagingExtraArgs Condition="'$(PackagingExtraArgs)' == ''"></PackagingExtraArgs>
|
|
|
|
<I18n Condition="'$(I18n)' == ''"></I18n>
|
|
|
|
<IncludeMonoRuntime Condition="'$(IncludeMonoRuntime)' == ''">true</IncludeMonoRuntime>
|
2016-05-26 00:20:33 +03:00
|
|
|
<IsAppExtension Condition="'$(IsAppExtension)' == ''">False</IsAppExtension>
|
2017-01-24 09:28:15 +03:00
|
|
|
<EnableSGenConc Condition="'$(EnableSGenConc)' == ''">false</EnableSGenConc>
|
2017-03-17 20:55:43 +03:00
|
|
|
<AotScope Condition="'$(AotScope)' == ''">None</AotScope>
|
2019-04-15 23:20:18 +03:00
|
|
|
<ArchiveOnBuild Condition="'$(ArchiveOnBuild)' == ''">False</ArchiveOnBuild>
|
2020-03-11 21:02:43 +03:00
|
|
|
<Profiling Condition="'$(MtouchProfiling)' == ''">False</Profiling>
|
2016-04-21 16:40:25 +03:00
|
|
|
</PropertyGroup>
|
|
|
|
|
2016-06-06 22:30:34 +03:00
|
|
|
<PropertyGroup>
|
[msbuild] Rename and unify to IsMacEnabled (#193)
* [msbuild] Rename and unify to IsMacEnabled
We previously had an MtouchTargetsEnabled and a separate
IsMacTargetsEnabled for iOS and XM, when both actually
meant the same thing: is a Mac enabled for building this
project?
Note that instead of "targets", we make it more generic,
since the condition can be used in a task, a property
group or whatever really, not just to enable/disable
certain targets.
Also, we call it Enabled, rather than Connected or
Available, since it's more natural to think that all such
tasks/targets are enabled when you're building locally
on the Mac. Connected wouldn't have been appropriate, and
Available would be confusing.
For backwards compatibility I've kepd the old MtouchTargetsEnabled
pointing to IsMacEnabled. We'll change our Windows targets
accordingly to also unify this property and how/where it's
set.
* [msbuild] Use full condition comparison for robustness
This is the proper way to use a boolean in a condition, and
prevents errors whenever the property is an empty string or
anything other than a boolean value.
2016-06-16 20:14:43 +03:00
|
|
|
<IsMacEnabled>true</IsMacEnabled>
|
2016-06-06 22:30:34 +03:00
|
|
|
</PropertyGroup>
|
|
|
|
|
2018-03-21 22:27:53 +03:00
|
|
|
<PropertyGroup Condition="'$(TargetFrameworkName)' == 'Full'">
|
2020-07-07 16:45:42 +03:00
|
|
|
<AssemblySearchPaths>$(_XamarinSdkRoot)/lib/reference/full;$(_XamarinSdkRoot)/lib/mono;$(AssemblySearchPaths)</AssemblySearchPaths>
|
2018-03-21 22:27:53 +03:00
|
|
|
<ImplicitlyExpandNETStandardFacades>False</ImplicitlyExpandNETStandardFacades>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<!-- Do not resolve from the GAC in Modern or Full unless allow-unsafe-gac-resolution is passed in -->
|
2020-07-13 15:56:34 +03:00
|
|
|
<PropertyGroup Condition="'$(TargetFrameworkName)' != 'System' And !$(_BundlerArguments.Contains('--allow-unsafe-gac-resolution'))" >
|
2018-03-21 22:27:53 +03:00
|
|
|
<AssemblySearchPaths>$([System.String]::Copy('$(AssemblySearchPaths)').Replace('{GAC}',''))</AssemblySearchPaths>
|
|
|
|
<AssemblySearchPaths Condition="'$(MSBuildRuntimeVersion)' != ''">$(AssemblySearchPaths.Split(';'))</AssemblySearchPaths>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
2016-04-21 16:40:25 +03:00
|
|
|
<Import Project="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).After.props"
|
|
|
|
Condition="Exists('$(MSBuildThisFileDirectory)$(MSBuildThisFileName).After.props')"/>
|
|
|
|
|
|
|
|
</Project>
|