-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix MilCodeGen and Csp build #10417
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
dipeshmsft
merged 6 commits into
dotnet:main
from
ThomasGoulet73:fix-milcodegen-and-csp-build
Feb 8, 2025
Merged
Fix MilCodeGen and Csp build #10417
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
ed4cd70
Fix MilCodeGen and Csp build
ThomasGoulet73 e9b75e2
PR feedback
ThomasGoulet73 c9a1606
Remove references to SdxRoot
ThomasGoulet73 276d547
Merge branch 'main' of https://github.com/dotnet/wpf into fix-milcode…
ThomasGoulet73 c508602
PR feedback
ThomasGoulet73 bcf782c
Merge branch 'main' of https://github.com/dotnet/wpf into fix-milcode…
ThomasGoulet73 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,52 @@ | ||
# MilCodeGen | ||
This directory contains MilCodeGen, which uses the Csp tool to generate source code for the MIL resources. | ||
|
||
## How to run MilCodeGen | ||
Run this command at the root of the WPF repo: | ||
``` | ||
build.cmd -projects "src\Microsoft.DotNet.Wpf\src\WpfGfx\codegen\mcg\mcg.proj" | ||
``` | ||
|
||
## Generated files | ||
List of generated resources: | ||
``` | ||
src\Microsoft.DotNet.Wpf\src\WpfGfx\Include\Generated\wgx_resource_types.* | ||
src\Microsoft.DotNet.Wpf\src\WpfGfx\Include\Generated\wgx_sdk_version.* | ||
src\Microsoft.DotNet.Wpf\src\WpfGfx\Include\Generated\*_command* | ||
src\Microsoft.DotNet.Wpf\src\WpfGfx\Include\Generated\wgx_misc.* | ||
src\Microsoft.DotNet.Wpf\src\WpfGfx\Include\Generated\wgx_render_types.h | ||
src\Microsoft.DotNet.Wpf\src\WpfGfx\Include\Generated\wincodec_private_generated.h | ||
src\Microsoft.DotNet.Wpf\src\WpfGfx\Include\Generated\wgx_render_types_generated.h | ||
src\Microsoft.DotNet.Wpf\src\WindowsBase\System\Windows\Converters\Generated\. | ||
src\Microsoft.DotNet.Wpf\src\WindowsBase\System\Windows\Generated\. | ||
src\Microsoft.DotNet.Wpf\src\WindowsBase\System\Windows\Media\Generated\. | ||
src\Microsoft.DotNet.Wpf\src\WindowsBase\System\Windows\Media\Converters\Generated\. | ||
src\Microsoft.DotNet.Wpf\src\PresentationCore\System\Windows\Generated\. | ||
src\Microsoft.DotNet.Wpf\src\PresentationCore\System\Windows\Media3D\Converters\Generated\. | ||
src\Microsoft.DotNet.Wpf\src\PresentationCore\System\Windows\Media3D\Generated\. | ||
src\Microsoft.DotNet.Wpf\src\PresentationCore\System\Windows\Media\Animation\Generated\. | ||
src\Microsoft.DotNet.Wpf\src\PresentationCore\System\Windows\Media\Converters\Generated\. | ||
src\Microsoft.DotNet.Wpf\src\PresentationCore\System\Windows\Media\Effects\Generated\. | ||
src\Microsoft.DotNet.Wpf\src\PresentationCore\System\Windows\Media\Generated\. | ||
src\Microsoft.DotNet.Wpf\src\PresentationCore\System\Windows\Media\Imaging\Generated\. | ||
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Generated\. | ||
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Media\Animation\Generated\. | ||
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Generated\. | ||
src\Microsoft.DotNet.Wpf\src\WpfGfx\codegen\mcg\ResourceModel\Generated\. | ||
src\Microsoft.DotNet.Wpf\src\WpfGfx\core\resources\*_generated.* | ||
src\Microsoft.DotNet.Wpf\src\WpfGfx\core\uce\generated_* | ||
src\Microsoft.DotNet.Wpf\src\WpfGfx\exts\cmdstruct.h | ||
``` | ||
|
||
List of generated elements: | ||
``` | ||
src\Microsoft.DotNet.Wpf\src\PresentationCore\System\Windows\Generated\UIElement.cs | ||
src\Microsoft.DotNet.Wpf\src\PresentationCore\System\Windows\Generated\UIElement3D.cs | ||
src\Microsoft.DotNet.Wpf\src\PresentationCore\System\Windows\Generated\ContentElement.cs | ||
``` | ||
|
||
## Documentation | ||
Control flow in these templates is as follows: | ||
* Execution starts at ResourceGenerator.Main() | ||
* That method invokes the Go() method on each subclass of GeneratorBase. | ||
i.e. it invokes methods like ManagedResource.Go() and DataStruct.Go(). |
This file contains hidden or 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
6 changes: 0 additions & 6 deletions
6
src/Microsoft.DotNet.Wpf/src/WpfGfx/codegen/mcg/csp.exe.config
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
src/Microsoft.DotNet.Wpf/src/WpfGfx/codegen/mcg/csp.exe.manifest
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.