forked from microsoft/MixedRealityToolkit-Unity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request microsoft#4051 from andreiborodin/features/assetRe…
…targeting MRTK NuGet with Compiled Binaries
- Loading branch information
Showing
19 changed files
with
1,003 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<Project> | ||
|
||
<PropertyGroup> | ||
<!-- If $(UnityPlayer) is not set, default to Standalone. --> | ||
<MRTKUnityPlayer Condition=" '$(MRTKUnityPlayer)' == '' ">Standalone</MRTKUnityPlayer> | ||
|
||
<!-- Player specific assemblies are in a directory name that starts with the player name and is suffixed with 'Player'. --> | ||
<_MRTKPlayerDirectory>$(MRTKUnityPlayer)Player</_MRTKPlayerDirectory> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<!-- Include content, but only if explicitly requested. This is useful if an MSBuild project references this | ||
nuget package, and the output of the MSBuild project is copied into a Unity project. --> | ||
<Content Include="$(MSBuildThisFileDirectory)..\MRTK\**" Condition=" '$(MRTKIncludeContent)' == 'true' "> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
<!-- Don't show .meta files in Solution Explorer - it's not useful. --> | ||
<Visible Condition=" '%(Extension)' == '.meta' ">false</Visible> | ||
<Link>MRTK\%(RecursiveDir)%(Filename)%(Extension)</Link> | ||
</Content> | ||
|
||
<!-- Get all the dlls for the target player, and store the Identity in a custom OriginalPath metadata. | ||
If Identity is used directly as the HintPath in the Reference, Visual Studio generates a warning | ||
indicating the assemblies are not found, even though the build succeeds. --> | ||
<_MRTKPlayerAssemblies Include="$(MSBuildThisFileDirectory)..\Plugins\$(_MRTKPlayerDirectory)\*.dll"> | ||
<OriginalPath>%(Identity)</OriginalPath> | ||
</_MRTKPlayerAssemblies> | ||
|
||
<!-- Add a Reference to each assembly, where the FileName is assumed to be the assembly name (true by default), | ||
and the HintPath is just the full path to the assembly. --> | ||
<Reference Include="@(_MRTKPlayerAssemblies -> '%(FileName)')"> | ||
<HintPath>%(OriginalPath)</HintPath> | ||
</Reference> | ||
|
||
<!-- Include assembly meta files, but only if explicitly requested. This is useful if an MSBuild project references this | ||
nuget package, and the output of the MSBuild project is copied into a Unity project. --> | ||
<Content Include="@(_MRTKPlayerAssemblies -> '%(OriginalPath).meta')" Condition=" '$(MRTKIncludeAssemblyMetaFiles)' == 'true' "> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
<Visible>false</Visible> | ||
</Content> | ||
|
||
<!-- Clear the _MRTKPlayerAssemblies item list since it will be reused for each MRTK nuget package. --> | ||
<_MRTKPlayerAssemblies Remove="@(_MRTKPlayerAssemblies)" /> | ||
</ItemGroup> | ||
|
||
</Project> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.