Skip to content

Commit

Permalink
Create Soup View GUI (#103)
Browse files Browse the repository at this point in the history
Create Soup View Build Visualizer
  • Loading branch information
mwasplund authored Dec 17, 2021
1 parent 47104c4 commit c454772
Show file tree
Hide file tree
Showing 52 changed files with 2,412 additions and 26 deletions.
1 change: 1 addition & 0 deletions Docs/Posts-Of-Interest.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* [CppCon 2019: Boris Kolpackov “Practical C++ Modules”](https://www.youtube.com/watch?v=szHV6RdQdg8)
* [CppCon 2019: Nathan Sidwell “Converting to C++20 Modules”](https://www.youtube.com/watch?v=KVsWIEw3TTw)
* [CppCon 2019: Michael Spencer “Building Modules”](https://www.youtube.com/watch?v=L0SHHkBenss)
* [C++ MODULES: A BRIEF TOUR](https://accu.org/journals/overload/28/159/sidwell/)

## Hooking OS Calls
* [Detours](https://www.microsoft.com/en-us/research/project/detours/?from=http%3A%2F%2Fresearch.microsoft.com%2Fsn%2Fdetours)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<Project>
<!-- Common Project Directories -->
<PropertyGroup>
<GenerateSharpDirectory>$(MSBuildThisFileDirectory.TrimEnd('\'))</GenerateSharpDirectory>
<SourceDirectory>$([System.IO.Path]::GetDirectoryName($(GenerateSharpDirectory)))</SourceDirectory>
<SourceDirectory>$(MSBuildThisFileDirectory.TrimEnd('\'))</SourceDirectory>
<GenerateSharpDirectory>$(RootDirectory)\GenerateSharp</GenerateSharpDirectory>
<ViewDirectory>$(RootDirectory)\GenerateSharp</ViewDirectory>
<RootDirectory>$([System.IO.Path]::GetDirectoryName($(SourceDirectory)))</RootDirectory>
<OutDirectory>$(RootDirectory)\out\msbuild</OutDirectory>
<ObjectRoot>$(OutDirectory)\obj</ObjectRoot>
Expand All @@ -28,10 +29,10 @@

<!-- Inject the shared StyleCop settings -->
<ItemGroup>
<AdditionalFiles Include="$(GenerateSharpDirectory)\stylecop.json" Link="stylecop.json" />
<AdditionalFiles Include="$(SourceDirectory)\stylecop.json" Link="stylecop.json" />
</ItemGroup>
<PropertyGroup>
<CodeAnalysisRuleSet>$(GenerateSharpDirectory)\Soup.Rules.ruleset</CodeAnalysisRuleSet>
<CodeAnalysisRuleSet>$(SourceDirectory)\Soup.Rules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>

<!-- Generate the XML documentation -->
Expand Down
8 changes: 1 addition & 7 deletions Source/GenerateSharp/Generate/BuildTaskManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,6 @@ public void Execute(BuildState state, Path soupTargetDirectory)

Log.Info("TaskDone: " + currentTask.Name);

// Write the output from the task to be used for debugging
var activeStateFile = soupTargetDirectory + new Path($"ActiveState_{currentTask.Name}.bvt");
var sharedStateFile = soupTargetDirectory + new Path($"SharedState_{currentTask.Name}.bvt");
ValueTableManager.SaveState(activeStateFile, state.ActiveState);
ValueTableManager.SaveState(sharedStateFile, state.SharedState);

// Build the task info
var taskInfo = new ValueTable();
taskInfo.Add("ActiveState", new Value(state.ActiveStateImpl.Clone()));
Expand All @@ -178,7 +172,7 @@ public void Execute(BuildState state, Path soupTargetDirectory)
generateInfoTable.Add("TaskInfo", new Value(taskInfoTable));

// Save the runtime information
var generateInfoStateFile = soupTargetDirectory + new Path($"GenerateInfo.bvt");
var generateInfoStateFile = soupTargetDirectory + BuildConstants.GenerateTaskInfoFileName;
ValueTableManager.SaveState(generateInfoStateFile, generateInfoTable);
}

Expand Down
192 changes: 190 additions & 2 deletions Source/GenerateSharp/GenerateSharp.sln

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions Source/GenerateSharp/SoupView.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,171 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.1.31911.260
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Soup.Utilities", "Utilities\Soup.Utilities.csproj", "{274AD7F0-D11F-4B6B-8BFC-51DEBFE40DF8}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Opal", "Opal\Opal.csproj", "{D01AC47E-1A6A-4EDE-97F5-2D05D1BC7120}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Opal.UnitTests", "Opal.UnitTests\Opal.UnitTests.csproj", "{0DD0DB83-90BE-4FDC-B470-6A25C11C1DE9}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Soup.Build.Runtime", "Runtime\Soup.Build.Runtime.csproj", "{32DB1BF4-77A3-4A49-8AC2-DE250D2CFCCE}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Soup.Build", "Build\Soup.Build.csproj", "{CD73104E-C7DE-4400-89F2-A04950649235}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Soup.Build.Extensions", "Build.Extensions\Soup.Build.Extensions.csproj", "{C81003D5-1FA4-464C-AE8F-38F79305FEDA}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Soup.Build.Runtime.UnitTests", "Runtime.UnitTests\Soup.Build.Runtime.UnitTests.csproj", "{C2D73DDF-AEA8-43CF-B634-BC7F1D4E2F16}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SoupView", "SoupView\SoupView.csproj", "{2B65A2B3-2342-4030-A194-5B1394BFCE6D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|arm64 = Debug|arm64
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|arm64 = Release|arm64
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{274AD7F0-D11F-4B6B-8BFC-51DEBFE40DF8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{274AD7F0-D11F-4B6B-8BFC-51DEBFE40DF8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{274AD7F0-D11F-4B6B-8BFC-51DEBFE40DF8}.Debug|arm64.ActiveCfg = Debug|Any CPU
{274AD7F0-D11F-4B6B-8BFC-51DEBFE40DF8}.Debug|arm64.Build.0 = Debug|Any CPU
{274AD7F0-D11F-4B6B-8BFC-51DEBFE40DF8}.Debug|x64.ActiveCfg = Debug|x64
{274AD7F0-D11F-4B6B-8BFC-51DEBFE40DF8}.Debug|x64.Build.0 = Debug|x64
{274AD7F0-D11F-4B6B-8BFC-51DEBFE40DF8}.Debug|x86.ActiveCfg = Debug|Any CPU
{274AD7F0-D11F-4B6B-8BFC-51DEBFE40DF8}.Debug|x86.Build.0 = Debug|Any CPU
{274AD7F0-D11F-4B6B-8BFC-51DEBFE40DF8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{274AD7F0-D11F-4B6B-8BFC-51DEBFE40DF8}.Release|Any CPU.Build.0 = Release|Any CPU
{274AD7F0-D11F-4B6B-8BFC-51DEBFE40DF8}.Release|arm64.ActiveCfg = Release|Any CPU
{274AD7F0-D11F-4B6B-8BFC-51DEBFE40DF8}.Release|arm64.Build.0 = Release|Any CPU
{274AD7F0-D11F-4B6B-8BFC-51DEBFE40DF8}.Release|x64.ActiveCfg = Release|x64
{274AD7F0-D11F-4B6B-8BFC-51DEBFE40DF8}.Release|x64.Build.0 = Release|x64
{274AD7F0-D11F-4B6B-8BFC-51DEBFE40DF8}.Release|x86.ActiveCfg = Release|Any CPU
{274AD7F0-D11F-4B6B-8BFC-51DEBFE40DF8}.Release|x86.Build.0 = Release|Any CPU
{D01AC47E-1A6A-4EDE-97F5-2D05D1BC7120}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D01AC47E-1A6A-4EDE-97F5-2D05D1BC7120}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D01AC47E-1A6A-4EDE-97F5-2D05D1BC7120}.Debug|arm64.ActiveCfg = Debug|Any CPU
{D01AC47E-1A6A-4EDE-97F5-2D05D1BC7120}.Debug|arm64.Build.0 = Debug|Any CPU
{D01AC47E-1A6A-4EDE-97F5-2D05D1BC7120}.Debug|x64.ActiveCfg = Debug|x64
{D01AC47E-1A6A-4EDE-97F5-2D05D1BC7120}.Debug|x64.Build.0 = Debug|x64
{D01AC47E-1A6A-4EDE-97F5-2D05D1BC7120}.Debug|x86.ActiveCfg = Debug|Any CPU
{D01AC47E-1A6A-4EDE-97F5-2D05D1BC7120}.Debug|x86.Build.0 = Debug|Any CPU
{D01AC47E-1A6A-4EDE-97F5-2D05D1BC7120}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D01AC47E-1A6A-4EDE-97F5-2D05D1BC7120}.Release|Any CPU.Build.0 = Release|Any CPU
{D01AC47E-1A6A-4EDE-97F5-2D05D1BC7120}.Release|arm64.ActiveCfg = Release|Any CPU
{D01AC47E-1A6A-4EDE-97F5-2D05D1BC7120}.Release|arm64.Build.0 = Release|Any CPU
{D01AC47E-1A6A-4EDE-97F5-2D05D1BC7120}.Release|x64.ActiveCfg = Release|x64
{D01AC47E-1A6A-4EDE-97F5-2D05D1BC7120}.Release|x64.Build.0 = Release|x64
{D01AC47E-1A6A-4EDE-97F5-2D05D1BC7120}.Release|x86.ActiveCfg = Release|Any CPU
{D01AC47E-1A6A-4EDE-97F5-2D05D1BC7120}.Release|x86.Build.0 = Release|Any CPU
{0DD0DB83-90BE-4FDC-B470-6A25C11C1DE9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0DD0DB83-90BE-4FDC-B470-6A25C11C1DE9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0DD0DB83-90BE-4FDC-B470-6A25C11C1DE9}.Debug|arm64.ActiveCfg = Debug|Any CPU
{0DD0DB83-90BE-4FDC-B470-6A25C11C1DE9}.Debug|arm64.Build.0 = Debug|Any CPU
{0DD0DB83-90BE-4FDC-B470-6A25C11C1DE9}.Debug|x64.ActiveCfg = Debug|x64
{0DD0DB83-90BE-4FDC-B470-6A25C11C1DE9}.Debug|x64.Build.0 = Debug|x64
{0DD0DB83-90BE-4FDC-B470-6A25C11C1DE9}.Debug|x86.ActiveCfg = Debug|Any CPU
{0DD0DB83-90BE-4FDC-B470-6A25C11C1DE9}.Debug|x86.Build.0 = Debug|Any CPU
{0DD0DB83-90BE-4FDC-B470-6A25C11C1DE9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0DD0DB83-90BE-4FDC-B470-6A25C11C1DE9}.Release|Any CPU.Build.0 = Release|Any CPU
{0DD0DB83-90BE-4FDC-B470-6A25C11C1DE9}.Release|arm64.ActiveCfg = Release|Any CPU
{0DD0DB83-90BE-4FDC-B470-6A25C11C1DE9}.Release|arm64.Build.0 = Release|Any CPU
{0DD0DB83-90BE-4FDC-B470-6A25C11C1DE9}.Release|x64.ActiveCfg = Release|x64
{0DD0DB83-90BE-4FDC-B470-6A25C11C1DE9}.Release|x64.Build.0 = Release|x64
{0DD0DB83-90BE-4FDC-B470-6A25C11C1DE9}.Release|x86.ActiveCfg = Release|Any CPU
{0DD0DB83-90BE-4FDC-B470-6A25C11C1DE9}.Release|x86.Build.0 = Release|Any CPU
{32DB1BF4-77A3-4A49-8AC2-DE250D2CFCCE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{32DB1BF4-77A3-4A49-8AC2-DE250D2CFCCE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{32DB1BF4-77A3-4A49-8AC2-DE250D2CFCCE}.Debug|arm64.ActiveCfg = Debug|Any CPU
{32DB1BF4-77A3-4A49-8AC2-DE250D2CFCCE}.Debug|arm64.Build.0 = Debug|Any CPU
{32DB1BF4-77A3-4A49-8AC2-DE250D2CFCCE}.Debug|x64.ActiveCfg = Debug|x64
{32DB1BF4-77A3-4A49-8AC2-DE250D2CFCCE}.Debug|x64.Build.0 = Debug|x64
{32DB1BF4-77A3-4A49-8AC2-DE250D2CFCCE}.Debug|x86.ActiveCfg = Debug|Any CPU
{32DB1BF4-77A3-4A49-8AC2-DE250D2CFCCE}.Debug|x86.Build.0 = Debug|Any CPU
{32DB1BF4-77A3-4A49-8AC2-DE250D2CFCCE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{32DB1BF4-77A3-4A49-8AC2-DE250D2CFCCE}.Release|Any CPU.Build.0 = Release|Any CPU
{32DB1BF4-77A3-4A49-8AC2-DE250D2CFCCE}.Release|arm64.ActiveCfg = Release|Any CPU
{32DB1BF4-77A3-4A49-8AC2-DE250D2CFCCE}.Release|arm64.Build.0 = Release|Any CPU
{32DB1BF4-77A3-4A49-8AC2-DE250D2CFCCE}.Release|x64.ActiveCfg = Release|x64
{32DB1BF4-77A3-4A49-8AC2-DE250D2CFCCE}.Release|x64.Build.0 = Release|x64
{32DB1BF4-77A3-4A49-8AC2-DE250D2CFCCE}.Release|x86.ActiveCfg = Release|Any CPU
{32DB1BF4-77A3-4A49-8AC2-DE250D2CFCCE}.Release|x86.Build.0 = Release|Any CPU
{CD73104E-C7DE-4400-89F2-A04950649235}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CD73104E-C7DE-4400-89F2-A04950649235}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CD73104E-C7DE-4400-89F2-A04950649235}.Debug|arm64.ActiveCfg = Debug|Any CPU
{CD73104E-C7DE-4400-89F2-A04950649235}.Debug|arm64.Build.0 = Debug|Any CPU
{CD73104E-C7DE-4400-89F2-A04950649235}.Debug|x64.ActiveCfg = Debug|x64
{CD73104E-C7DE-4400-89F2-A04950649235}.Debug|x64.Build.0 = Debug|x64
{CD73104E-C7DE-4400-89F2-A04950649235}.Debug|x86.ActiveCfg = Debug|Any CPU
{CD73104E-C7DE-4400-89F2-A04950649235}.Debug|x86.Build.0 = Debug|Any CPU
{CD73104E-C7DE-4400-89F2-A04950649235}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CD73104E-C7DE-4400-89F2-A04950649235}.Release|Any CPU.Build.0 = Release|Any CPU
{CD73104E-C7DE-4400-89F2-A04950649235}.Release|arm64.ActiveCfg = Release|Any CPU
{CD73104E-C7DE-4400-89F2-A04950649235}.Release|arm64.Build.0 = Release|Any CPU
{CD73104E-C7DE-4400-89F2-A04950649235}.Release|x64.ActiveCfg = Release|x64
{CD73104E-C7DE-4400-89F2-A04950649235}.Release|x64.Build.0 = Release|x64
{CD73104E-C7DE-4400-89F2-A04950649235}.Release|x86.ActiveCfg = Release|Any CPU
{CD73104E-C7DE-4400-89F2-A04950649235}.Release|x86.Build.0 = Release|Any CPU
{C81003D5-1FA4-464C-AE8F-38F79305FEDA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C81003D5-1FA4-464C-AE8F-38F79305FEDA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C81003D5-1FA4-464C-AE8F-38F79305FEDA}.Debug|arm64.ActiveCfg = Debug|Any CPU
{C81003D5-1FA4-464C-AE8F-38F79305FEDA}.Debug|arm64.Build.0 = Debug|Any CPU
{C81003D5-1FA4-464C-AE8F-38F79305FEDA}.Debug|x64.ActiveCfg = Debug|x64
{C81003D5-1FA4-464C-AE8F-38F79305FEDA}.Debug|x64.Build.0 = Debug|x64
{C81003D5-1FA4-464C-AE8F-38F79305FEDA}.Debug|x86.ActiveCfg = Debug|Any CPU
{C81003D5-1FA4-464C-AE8F-38F79305FEDA}.Debug|x86.Build.0 = Debug|Any CPU
{C81003D5-1FA4-464C-AE8F-38F79305FEDA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C81003D5-1FA4-464C-AE8F-38F79305FEDA}.Release|Any CPU.Build.0 = Release|Any CPU
{C81003D5-1FA4-464C-AE8F-38F79305FEDA}.Release|arm64.ActiveCfg = Release|Any CPU
{C81003D5-1FA4-464C-AE8F-38F79305FEDA}.Release|arm64.Build.0 = Release|Any CPU
{C81003D5-1FA4-464C-AE8F-38F79305FEDA}.Release|x64.ActiveCfg = Release|x64
{C81003D5-1FA4-464C-AE8F-38F79305FEDA}.Release|x64.Build.0 = Release|x64
{C81003D5-1FA4-464C-AE8F-38F79305FEDA}.Release|x86.ActiveCfg = Release|Any CPU
{C81003D5-1FA4-464C-AE8F-38F79305FEDA}.Release|x86.Build.0 = Release|Any CPU
{C2D73DDF-AEA8-43CF-B634-BC7F1D4E2F16}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C2D73DDF-AEA8-43CF-B634-BC7F1D4E2F16}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C2D73DDF-AEA8-43CF-B634-BC7F1D4E2F16}.Debug|arm64.ActiveCfg = Debug|Any CPU
{C2D73DDF-AEA8-43CF-B634-BC7F1D4E2F16}.Debug|arm64.Build.0 = Debug|Any CPU
{C2D73DDF-AEA8-43CF-B634-BC7F1D4E2F16}.Debug|x64.ActiveCfg = Debug|x64
{C2D73DDF-AEA8-43CF-B634-BC7F1D4E2F16}.Debug|x64.Build.0 = Debug|x64
{C2D73DDF-AEA8-43CF-B634-BC7F1D4E2F16}.Debug|x86.ActiveCfg = Debug|Any CPU
{C2D73DDF-AEA8-43CF-B634-BC7F1D4E2F16}.Debug|x86.Build.0 = Debug|Any CPU
{C2D73DDF-AEA8-43CF-B634-BC7F1D4E2F16}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C2D73DDF-AEA8-43CF-B634-BC7F1D4E2F16}.Release|Any CPU.Build.0 = Release|Any CPU
{C2D73DDF-AEA8-43CF-B634-BC7F1D4E2F16}.Release|arm64.ActiveCfg = Release|Any CPU
{C2D73DDF-AEA8-43CF-B634-BC7F1D4E2F16}.Release|arm64.Build.0 = Release|Any CPU
{C2D73DDF-AEA8-43CF-B634-BC7F1D4E2F16}.Release|x64.ActiveCfg = Release|x64
{C2D73DDF-AEA8-43CF-B634-BC7F1D4E2F16}.Release|x64.Build.0 = Release|x64
{C2D73DDF-AEA8-43CF-B634-BC7F1D4E2F16}.Release|x86.ActiveCfg = Release|Any CPU
{C2D73DDF-AEA8-43CF-B634-BC7F1D4E2F16}.Release|x86.Build.0 = Release|Any CPU
{2B65A2B3-2342-4030-A194-5B1394BFCE6D}.Debug|Any CPU.ActiveCfg = Debug|x64
{2B65A2B3-2342-4030-A194-5B1394BFCE6D}.Debug|Any CPU.Build.0 = Debug|x64
{2B65A2B3-2342-4030-A194-5B1394BFCE6D}.Debug|Any CPU.Deploy.0 = Debug|x64
{2B65A2B3-2342-4030-A194-5B1394BFCE6D}.Debug|arm64.ActiveCfg = Debug|arm64
{2B65A2B3-2342-4030-A194-5B1394BFCE6D}.Debug|arm64.Build.0 = Debug|arm64
{2B65A2B3-2342-4030-A194-5B1394BFCE6D}.Debug|x64.ActiveCfg = Debug|x64
{2B65A2B3-2342-4030-A194-5B1394BFCE6D}.Debug|x64.Build.0 = Debug|x64
{2B65A2B3-2342-4030-A194-5B1394BFCE6D}.Debug|x86.ActiveCfg = Debug|x86
{2B65A2B3-2342-4030-A194-5B1394BFCE6D}.Debug|x86.Build.0 = Debug|x86
{2B65A2B3-2342-4030-A194-5B1394BFCE6D}.Release|Any CPU.ActiveCfg = Release|x64
{2B65A2B3-2342-4030-A194-5B1394BFCE6D}.Release|Any CPU.Build.0 = Release|x64
{2B65A2B3-2342-4030-A194-5B1394BFCE6D}.Release|Any CPU.Deploy.0 = Release|x64
{2B65A2B3-2342-4030-A194-5B1394BFCE6D}.Release|arm64.ActiveCfg = Release|arm64
{2B65A2B3-2342-4030-A194-5B1394BFCE6D}.Release|arm64.Build.0 = Release|arm64
{2B65A2B3-2342-4030-A194-5B1394BFCE6D}.Release|x64.ActiveCfg = Release|x64
{2B65A2B3-2342-4030-A194-5B1394BFCE6D}.Release|x64.Build.0 = Release|x64
{2B65A2B3-2342-4030-A194-5B1394BFCE6D}.Release|x86.ActiveCfg = Release|x86
{2B65A2B3-2342-4030-A194-5B1394BFCE6D}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {6974AB2C-3FEE-4C5B-8775-A4C9DFB8D635}
EndGlobalSection
EndGlobal
12 changes: 12 additions & 0 deletions Source/GenerateSharp/SoupView/App.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<Application
x:Class="SoupView.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
49 changes: 49 additions & 0 deletions Source/GenerateSharp/SoupView/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
// <copyright file="App.xaml.cs" company="Soup">
// Copyright (c) Soup. All rights reserved.
// </copyright>

using Microsoft.UI.Xaml;
using Opal;
using Opal.System;
using SoupView.View;

// To learn more about WinUI, the WinUI project structure,
// and more about our project templates, see: http://aka.ms/winui-project-info.
namespace SoupView
{
/// <summary>
/// Provides application-specific behavior to supplement the default Application class.
/// </summary>
public partial class App : Application
{
/// <summary>
/// Initializes the singleton application object. This is the first line of authored code
/// executed, and as such is the logical equivalent of main() or WinMain().
/// </summary>
public App()
{
// Register the runtime services
Log.RegisterListener(new ConsoleTraceListener());
LifetimeManager.RegisterSingleton<IFileSystem, RuntimeFileSystem>();

this.InitializeComponent();
}

/// <summary>
/// Invoked when the application is launched normally by the end user. Other entry points
/// will be used such as when the application is launched to open a specific file.
/// </summary>
/// <param name="args">Details about the launch request and process.</param>
protected override void OnLaunched(LaunchActivatedEventArgs args)
{
m_window = new MainWindow();

//m_window.ExtendsContentIntoTitleBar = true;
// m_window.SetTitleBar(new TextBlock());

m_window.Activate();
}

private Window m_window;
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Source/GenerateSharp/SoupView/Assets/Soup.ico
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 48 additions & 0 deletions Source/GenerateSharp/SoupView/Package.appxmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="utf-8"?>

<Package
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
IgnorableNamespaces="uap rescap">

<Identity
Name="7a16c044-069a-400b-bc10-b118c242d03c"
Publisher="CN=mwasp"
Version="1.0.0.0" />

<Properties>
<DisplayName>Soup View</DisplayName>
<PublisherDisplayName>Soup Build</PublisherDisplayName>
<Logo>Assets\StoreLogo.png</Logo>
</Properties>

<Dependencies>
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.0" />
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.0" />
</Dependencies>

<Resources>
<Resource Language="x-generate"/>
</Resources>

<Applications>
<Application Id="App"
Executable="$targetnametoken$.exe"
EntryPoint="$targetentrypoint$">
<uap:VisualElements
DisplayName="Soup View"
Description="Visualize soup project build structures."
BackgroundColor="transparent"
Square150x150Logo="Assets\Square150x150Logo.png"
Square44x44Logo="Assets\Square44x44Logo.png">
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png" />
<uap:SplashScreen Image="Assets\SplashScreen.png" />
</uap:VisualElements>
</Application>
</Applications>

<Capabilities>
<rescap:Capability Name="runFullTrust" />
</Capabilities>
</Package>
15 changes: 15 additions & 0 deletions Source/GenerateSharp/SoupView/Properties/launchSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"profiles": {
"SoupView (Package)": {
"commandName": "MsixPackage"
},
"SoupView (Unpackaged)": {
"commandName": "Project"
},
"WSL": {
"commandName": "WSL2",
"environmentVariables": {},
"distributionName": ""
}
}
}
Loading

0 comments on commit c454772

Please sign in to comment.