-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Adds support for generating Mono named NETCore.App Runtime Packs #34980
Changes from all commits
57e1d7e
67144c5
a4e79df
3403d21
f8a20b6
2fffa1d
47c7107
3d0823f
4d03a34
da55a57
a8803f0
0f5b218
49d4216
d301875
4752408
305b0cc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -39,10 +39,20 @@ | |||||
<PropertyGroup> | ||||||
<DefaultSubsets>clr+mono+libs+installer</DefaultSubsets> | ||||||
<DefaultSubsets Condition="'$(TargetOS)' == 'iOS' or '$(TargetOS)' == 'Android' or '$(TargetOS)' == 'tvOS'">mono+libs+installer</DefaultSubsets> | ||||||
<DefaultSubsetCategories Condition="'$(TargetOS)' == 'WebAssembly'">mono+libs</DefaultSubsetCategories> | ||||||
<DefaultSubsets Condition="'$(TargetOS)' == 'WebAssembly'">mono+libs</DefaultSubsets> | ||||||
</PropertyGroup> | ||||||
|
||||||
<!-- Init _subSet here in to allow RuntimeFlavor to be set as early as possible --> | ||||||
<PropertyGroup> | ||||||
<_subset Condition="'$(Subset)' != ''">+$(Subset.ToLowerInvariant())+</_subset> | ||||||
<_subset Condition="'$(Subset)' == ''">+$(DefaultSubsets)+</_subset> | ||||||
</PropertyGroup> | ||||||
|
||||||
<PropertyGroup> | ||||||
<RuntimeFlavor Condition="'$(TargetOS)' == 'tvOS' or '$(TargetOS)' == 'iOS' or '$(TargetOS)' == 'Android' or '$(TargetOS)' == 'WebAssembly'">Mono</RuntimeFlavor> | ||||||
<RuntimeFlavor Condition="'$(RuntimeFlavor)' == '' and ($(_subset.Contains('+mono+')) or $(_subset.Contains('+mono.runtime'))) and (!$(_subset.Contains('+clr+')) and !$(_subset.Contains('+clr.runtime')))">Mono</RuntimeFlavor> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Lost some
Suggested change
I would put it on multiple lines for easier reading/review, but this is subjective and I'm sure some people are annoyed at me doing it all the time 😄: <RuntimeFlavor
Condition="
'$(RuntimeFlavor)' == '' and
(
$(_subset.Contains('+mono+')) or
$(_subset.Contains('+mono.runtime'))
) and
(
!$(_subset.Contains('+clr+')) and
!$(_subset.Contains('+clr.runtime'))
)">Mono</RuntimeFlavor> There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @steveisok I edited my message on Teams and added the missing pluses :D You probably took mine before the edit :D There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. FWIW, seems like this is a nit as well to me--I think it would only cause a problem if we added a |
||||||
<RuntimeFlavor Condition="'$(RuntimeFlavor)' == ''">CoreCLR</RuntimeFlavor> | ||||||
|
||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: Please close this PropertyGroup and open a new one. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can that happen in a follow up PR? |
||||||
<DefaultCoreClrSubsets>clr.runtime+linuxdac+clr.corelib+clr.nativecorelib+clr.tools+clr.buildtools+clr.packages</DefaultCoreClrSubsets> | ||||||
|
||||||
<DefaultMonoSubsets Condition="'$(MonoEnableLLVM)' == 'true' and '$(MonoLLVMDir)' == ''">mono.llvm+</DefaultMonoSubsets> | ||||||
|
@@ -51,12 +61,10 @@ | |||||
<DefaultLibrariesSubsets>libs.depprojs+libs.native+libs.ref+libs.src+libs.pretest+libs.packages</DefaultLibrariesSubsets> | ||||||
|
||||||
<DefaultInstallerSubsets>corehost+installer.managed+installer.depprojs+installer.pkgprojs+bundles+installers+installer.tests</DefaultInstallerSubsets> | ||||||
<DefaultInstallerSubsets Condition="'$(TargetOS)' == 'iOS' or '$(TargetOS)' == 'Android' or '$(TargetOS)' == 'tvOS'">installer.depprojs+installer.pkgprojs</DefaultInstallerSubsets> | ||||||
<DefaultInstallerSubsets Condition="'$(RuntimeFlavor)' == 'Mono'">installer.pkgprojs</DefaultInstallerSubsets> | ||||||
</PropertyGroup> | ||||||
|
||||||
<PropertyGroup> | ||||||
<_subset Condition="'$(Subset)' != ''">+$(Subset.ToLowerInvariant())+</_subset> | ||||||
<_subset Condition="'$(Subset)' == ''">+$(DefaultSubsets)+</_subset> | ||||||
<_subset>$(_subset.Replace('+clr+', '+$(DefaultCoreClrSubsets)+'))</_subset> | ||||||
<_subset>$(_subset.Replace('+mono+', '+$(DefaultMonoSubsets)+'))</_subset> | ||||||
<_subset>$(_subset.Replace('+libs+', '+$(DefaultLibrariesSubsets)+'))</_subset> | ||||||
|
@@ -66,12 +74,6 @@ | |||||
<_subset>+$(_subset.Trim('+'))+</_subset> | ||||||
</PropertyGroup> | ||||||
|
||||||
<PropertyGroup> | ||||||
<RuntimeFlavor Condition="'$(TargetOS)' == 'tvOS' or '$(TargetOS)' == 'iOS' or '$(TargetOS)' == 'Android' or '$(TargetOS)' == 'WebAssembly'">Mono</RuntimeFlavor> | ||||||
<RuntimeFlavor Condition="'$(RuntimeFlavor)' == '' and $(_subset.Contains('+mono.runtime+')) and !$(_subset.Contains('+clr.runtime+'))">Mono</RuntimeFlavor> | ||||||
<RuntimeFlavor Condition="'$(RuntimeFlavor)' == ''">CoreCLR</RuntimeFlavor> | ||||||
</PropertyGroup> | ||||||
|
||||||
<ItemGroup> | ||||||
<!-- CoreClr --> | ||||||
<SubsetName Include="Clr" Description="The CoreCLR runtime, LinuxDac, CoreLib (+ native), tools and packages." /> | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same - can that happen in a follow up PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
of course, those were just nits.