Added option to deploy content files.

This commit is contained in:
José Pedro 2018-06-11 23:36:30 +01:00
parent 18e7579107
commit 123b14917f
No known key found for this signature in database
GPG key ID: B8247B9301707B83
4 changed files with 26 additions and 0 deletions

View file

@ -61,6 +61,14 @@
<CosmosBuildTasksAssembly Condition="'$(CosmosBuildTasksAssembly)' == '' OR !Exists('$(CosmosBuildTasksAssembly)')">$(CosmosToolsPath)Cosmos.Build.Tasks.dll</CosmosBuildTasksAssembly>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(DefineExplicitDefaults)' == 'True'">
<Content Deploy="False" />
</ItemDefinitionGroup>
<ItemGroup>
<ContentToDeploy Include="@(Content)" Condition="'%(Content.Deploy)' == 'True'" />
</ItemGroup>
<ItemGroup Condition="'$(KernelPkg)' == ''">
<PlugsReference Include="$(KernelAssembliesDir)Cosmos.Core_Asm.dll" />
<PlugsReference Include="$(KernelAssembliesDir)Cosmos.Core_Plugs.dll" />
@ -274,6 +282,7 @@
<_IsoFile Include="$(SyslinuxPath)com32\lib\libcom32.c32" />
<_IsoFile Include="$(SyslinuxPath)com32\mboot\mboot.c32" />
<_IsoFile Include="$(BinFile)" />
<_IsoFile Include="@(ContentToDeploy)" />
</ItemGroup>
<RemoveDir Directories="$(IntermediateIsoDirectory)" />

View file

@ -15,6 +15,9 @@
</ItemGroup>
<ItemGroup>
<PropertyPageSchema Include="$(_CosmosXamlResourcesDirectory)Rules\Content.xaml">
<Context>File;BrowseObject</Context>
</PropertyPageSchema>
<PropertyPageSchema Include="$(_CosmosXamlResourcesDirectory)Rules\CosmosDebugger.xaml">
<Context>Project</Context>
</PropertyPageSchema>

View file

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<Rule Name="Content"
DisplayName="File Properties"
PageTemplate="generic"
Description="File Properties"
OverrideMode="Extend"
xmlns="http://schemas.microsoft.com/build/2009/properties">
<BoolProperty Name="Deploy"
DisplayName="Deploy"
Category="Advanced" />
</Rule>

View file

@ -30,6 +30,7 @@
<ItemGroup>
<XamlPropertyRule Include="BuildSystem\Rules\BootableConfiguration.xaml" />
<XamlPropertyRule Include="BuildSystem\Rules\Content.xaml" />
<XamlPropertyRule Include="BuildSystem\Rules\CosmosDebugger.xaml" />
<XamlPropertyRule Include="BuildSystem\Rules\LaunchConfiguration.xaml" />
</ItemGroup>