forked from emscripten-core/emsdk
-
Notifications
You must be signed in to change notification settings - Fork 29
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 #29 from lewing/manifest
Initial workload split
- Loading branch information
Showing
23 changed files
with
182 additions
and
116 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
8 changes: 0 additions & 8 deletions
8
eng/nuget/Microsoft.NET.Runtime.Emscripten.2.0.23.Node.linux-x64.pkgproj
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
eng/nuget/Microsoft.NET.Runtime.Emscripten.2.0.23.Node.osx-x64.pkgproj
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
eng/nuget/Microsoft.NET.Runtime.Emscripten.2.0.23.Node.win-x64.pkgproj
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
eng/nuget/Microsoft.NET.Runtime.Emscripten.2.0.23.Python.osx-x64.pkgproj
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
eng/nuget/Microsoft.NET.Runtime.Emscripten.2.0.23.Python.win-x64.pkgproj
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
eng/nuget/Microsoft.NET.Runtime.Emscripten.2.0.23.Sdk.linux-x64.pkgproj
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
eng/nuget/Microsoft.NET.Runtime.Emscripten.2.0.23.Sdk.osx-x64.pkgproj
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
eng/nuget/Microsoft.NET.Runtime.Emscripten.2.0.23.Sdk.win-x64.pkgproj
This file was deleted.
Oops, something went wrong.
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
21 changes: 21 additions & 0 deletions
21
...nuget/Microsoft.NET.Runtime.Emscripten.Node/Microsoft.NET.Runtime.Emscripten.Node.pkgproj
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,21 @@ | ||
<Project> | ||
<Import Project="$(RepoRoot)\Directory.Build.props" /> | ||
<Import Project="$(NuGetPackageRoot)\microsoft.dotnet.build.tasks.packaging\$(MicrosoftDotNetBuildTasksPackagingVersion)\build\Microsoft.DotNet.Build.Tasks.Packaging.props" /> | ||
<Import Project="$([MSBuild]::GetPathOfFileAbove(Microsoft.NET.Runtime.Emscripten.Common.props))" /> | ||
<Import Project="Microsoft.NET.Runtime.Emscripten.Node.props" /> | ||
|
||
<Target Name="_PrepareForPack" BeforeTargets="GetPackageFiles" Returns="@(PackageFile)"> | ||
<!-- Override the id to include the Emscripten version --> | ||
<PropertyGroup> | ||
<Id>Microsoft.NET.Runtime.Emscripten.$(EmscriptenVersion).Node.$(PackageRID)</Id> | ||
</PropertyGroup> | ||
</Target> | ||
|
||
<PropertyGroup> | ||
<PackageDescription>Contains Emscripten Node binaries for $(PackageRID).</PackageDescription> | ||
<Description>Contains Emscripten Node binaries for $(PackageRID).</Description> | ||
</PropertyGroup> | ||
|
||
<Import Project="$(NuGetPackageRoot)\microsoft.dotnet.build.tasks.packaging\$(MicrosoftDotNetBuildTasksPackagingVersion)\build\Microsoft.DotNet.Build.Tasks.Packaging.targets" /> | ||
<Import Project="$(RepoRoot)\Directory.Build.targets" /> | ||
</Project> |
File renamed without changes.
21 changes: 21 additions & 0 deletions
21
...t/Microsoft.NET.Runtime.Emscripten.Python/Microsoft.NET.Runtime.Emscripten.Python.pkgproj
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,21 @@ | ||
<Project> | ||
<Import Project="$(RepoRoot)\Directory.Build.props" /> | ||
<Import Project="$(NuGetPackageRoot)\microsoft.dotnet.build.tasks.packaging\$(MicrosoftDotNetBuildTasksPackagingVersion)\build\Microsoft.DotNet.Build.Tasks.Packaging.props" /> | ||
<Import Project="$([MSBuild]::GetPathOfFileAbove(Microsoft.NET.Runtime.Emscripten.Common.props))" /> | ||
<Import Project="Microsoft.NET.Runtime.Emscripten.Python.props" /> | ||
|
||
<Target Name="_PrepareForPack" BeforeTargets="GetPackageFiles" Returns="@(PackageFile)"> | ||
<!-- Override the id to include the Emscripten version --> | ||
<PropertyGroup> | ||
<Id>Microsoft.NET.Runtime.Emscripten.$(EmscriptenVersion).Python.$(PackageRID)</Id> | ||
</PropertyGroup> | ||
</Target> | ||
|
||
<PropertyGroup> | ||
<PackageDescription>Contains Emscripten Python binaries for $(PackageRID).</PackageDescription> | ||
<Description>Contains Emscripten Python binaries for $(PackageRID).</Description> | ||
</PropertyGroup> | ||
|
||
<Import Project="$(NuGetPackageRoot)\microsoft.dotnet.build.tasks.packaging\$(MicrosoftDotNetBuildTasksPackagingVersion)\build\Microsoft.DotNet.Build.Tasks.Packaging.targets" /> | ||
<Import Project="$(RepoRoot)\Directory.Build.targets" /> | ||
</Project> |
File renamed without changes.
21 changes: 21 additions & 0 deletions
21
eng/nuget/Microsoft.NET.Runtime.Emscripten.Sdk/Microsoft.NET.Runtime.Emscripten.Sdk.pkgproj
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,21 @@ | ||
<Project> | ||
<Import Project="$(RepoRoot)\Directory.Build.props" /> | ||
<Import Project="$(NuGetPackageRoot)\microsoft.dotnet.build.tasks.packaging\$(MicrosoftDotNetBuildTasksPackagingVersion)\build\Microsoft.DotNet.Build.Tasks.Packaging.props" /> | ||
<Import Project="$([MSBuild]::GetPathOfFileAbove(Microsoft.NET.Runtime.Emscripten.Common.props))" /> | ||
<Import Project="Microsoft.NET.Runtime.Emscripten.Sdk.props" /> | ||
|
||
<Target Name="_PrepareForPack" BeforeTargets="GetPackageFiles" Returns="@(PackageFile)"> | ||
<!-- Override the id to include the Emscripten version --> | ||
<PropertyGroup> | ||
<Id>Microsoft.NET.Runtime.Emscripten.$(EmscriptenVersion).Sdk.$(PackageRID)</Id> | ||
</PropertyGroup> | ||
</Target> | ||
|
||
<PropertyGroup> | ||
<PackageDescription>Contains Emscripten SDK binaries for $(PackageRID).</PackageDescription> | ||
<Description>Contains Emscripten SDK binaries for $(PackageRID).</Description> | ||
</PropertyGroup> | ||
|
||
<Import Project="$(NuGetPackageRoot)\microsoft.dotnet.build.tasks.packaging\$(MicrosoftDotNetBuildTasksPackagingVersion)\build\Microsoft.DotNet.Build.Tasks.Packaging.targets" /> | ||
<Import Project="$(RepoRoot)\Directory.Build.targets" /> | ||
</Project> |
File renamed without changes.
49 changes: 49 additions & 0 deletions
49
...osoft.NET.Workload.Emscripten.Manifest/Microsoft.NET.Workload.Emscripten.Manifest.pkgproj
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,49 @@ | ||
<Project DefaultTargets="Build"> | ||
<Import Project="$(RepoRoot)\Directory.Build.props" /> | ||
|
||
<Import Project="$(NuGetPackageRoot)\microsoft.dotnet.build.tasks.packaging\$(MicrosoftDotNetBuildTasksPackagingVersion)\build\Microsoft.DotNet.Build.Tasks.Packaging.props" /> | ||
<Import Project="$(NuGetPackageRoot)\microsoft.dotnet.build.tasks.templating\$(MicrosoftDotNetBuildTasksTemplatingVersion)\build\Microsoft.DotNet.Build.Tasks.Templating.props" /> | ||
<Import Project="$([MSBuild]::GetPathOfFileAbove(Microsoft.NET.Runtime.Emscripten.Common.props))" /> | ||
|
||
<PropertyGroup> | ||
<PackageDescription>Internal toolchain package not meant for direct consumption. Please do not reference directly.</PackageDescription> | ||
<Description>Internal toolchain package not meant for direct consumption. Please do not reference directly.</Description> | ||
</PropertyGroup> | ||
|
||
<Target Name="_PrepareForPack" BeforeTargets="GetPackageFiles" Returns="@(PackageFile)"> | ||
<!-- Override the id to include the sdk band as per the workload installer spec --> | ||
<PropertyGroup> | ||
<Id>Microsoft.NET.Workload.Emscripten.Manifest-$(WorkloadSdkBandVersion)</Id> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<WorkloadManifestPath>$(IntermediateOutputPath)WorkloadManifest.json</WorkloadManifestPath> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageFile Include="$(WorkloadManifestPath)" TargetPath="data" /> | ||
<PackageFile Include="WorkloadManifest.targets" TargetPath="data" /> | ||
</ItemGroup> | ||
</Target> | ||
|
||
<!-- Running this target ensures we have the fully evaluated PackageVersion --> | ||
<Target Name="_WriteManifestValues" AfterTargets="CalculatePackageVersion"> | ||
<PropertyGroup> | ||
<PackagePathVersion>PackageVersion=$(PackageVersion);</PackagePathVersion> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<_WorkloadManifestValues Include="WorkloadVersion" Value="$(PackageVersion)" /> | ||
<_WorkloadManifestValues Include="PackageVersion" Value="$(PackageVersion)" /> | ||
<_WorkloadManifestValues Include="EmscriptenVersion" Value="$(EmscriptenVersion)" /> | ||
</ItemGroup> | ||
|
||
<GenerateFileFromTemplate | ||
TemplateFile="WorkloadManifest.json.in" | ||
Properties="@(_WorkloadManifestValues->'%(Identity)=%(Value)')" | ||
OutputPath="$(WorkloadManifestPath)" /> | ||
</Target> | ||
|
||
<Import Project="$(NuGetPackageRoot)\microsoft.dotnet.build.tasks.packaging\$(MicrosoftDotNetBuildTasksPackagingVersion)\build\Microsoft.DotNet.Build.Tasks.Packaging.targets" /> | ||
<Import Project="$(RepoRoot)\Directory.Build.targets" /> | ||
</Project> |
46 changes: 46 additions & 0 deletions
46
eng/nuget/Microsoft.NET.Workload.Emscripten.Manifest/WorkloadManifest.json.in
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,46 @@ | ||
{ | ||
"version": "${WorkloadVersion}", | ||
"workloads": { | ||
"microsoft-net-sdk-emscripten": { | ||
"abstract": true, | ||
"description": "Emscripten SDK compiler tooling", | ||
"packs": [ | ||
"Microsoft.NET.Runtime.Emscripten.Node", | ||
"Microsoft.NET.Runtime.Emscripten.Python", | ||
"Microsoft.NET.Runtime.Emscripten.Sdk" | ||
], | ||
"platforms": [ "win-x64", "linux-x64", "osx-x64", "osx-arm64" ] | ||
} | ||
}, | ||
"packs": { | ||
"Microsoft.NET.Runtime.Emscripten.Node" : { | ||
"kind": "Sdk", | ||
"version": "${PackageVersion}", | ||
"alias-to": { | ||
"win-x64": "Microsoft.NET.Runtime.${EmscriptenVersion}.Node.win-x64", | ||
"linux-x64": "Microsoft.NET.Runtime.Emscripten.${EmscriptenVersion}.Node.linux-x64", | ||
"osx-x64": "Microsoft.NET.Runtime.Emscripten.${EmscriptenVersion}.Node.osx-x64", | ||
"osx-arm64": "Microsoft.NET.Runtime.Emscripten.${EmscriptenVersion}.Node.osx-x64" | ||
} | ||
}, | ||
"Microsoft.NET.Runtime.Emscripten.Python" : { | ||
"kind": "Sdk", | ||
"version": "${PackageVersion}", | ||
"alias-to": { | ||
"win-x64": "Microsoft.NET.Runtime.Emscripten.${EmscriptenVersion}.Python.win-x64", | ||
"osx-x64": "Microsoft.NET.Runtime.Emscripten.${EmscriptenVersion}.Python.osx-x64", | ||
"osx-arm64": "Microsoft.NET.Runtime.Emscripten.${EmscriptenVersion}.Python.osx-x64" | ||
} | ||
}, | ||
"Microsoft.NET.Runtime.Emscripten.Sdk" : { | ||
"kind": "Sdk", | ||
"version": "${PackageVersion}", | ||
"alias-to": { | ||
"win-x64": "Microsoft.NET.Runtime.Emscripten.${EmscriptenVersion}.Sdk.win-x64", | ||
"linux-x64": "Microsoft.NET.Runtime.Emscripten.${EmscriptenVersion}.Sdk.linux-x64", | ||
"osx-x64": "Microsoft.NET.Runtime.Emscripten.${EmscriptenVersion}.Sdk.osx-x64", | ||
"osx-arm64": "Microsoft.NET.Runtime.Emscripten.${EmscriptenVersion}.Sdk.osx-x64" | ||
} | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
eng/nuget/Microsoft.NET.Workload.Emscripten.Manifest/WorkloadManifest.targets
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,12 @@ | ||
<Project> | ||
<PropertyGroup Condition="'$(RuntimeIdentifier)' == 'browser-wasm'"> | ||
<UsingBrowserRuntimeWorkload Condition="'$(RunAOTCompilation)' == 'true' or '$(UsingMicrosoftNETSdkBlazorWebAssembly)' != 'true'" >true</UsingBrowserRuntimeWorkload> | ||
<UsingBrowserRuntimeWorkload Condition="'$(UsingBrowserRuntimeWorkload)' == ''" >$(WasmNativeWorkload)</UsingBrowserRuntimeWorkload> | ||
</PropertyGroup> | ||
|
||
<ImportGroup Condition="'$(RuntimeIdentifier)' == 'browser-wasm' and '$(UsingBrowserRuntimeWorkload)' == 'true'"> | ||
<Import Project="Sdk.props" Sdk="Microsoft.NET.Runtime.Emscripten.Python" Condition="!$([MSBuild]::IsOsPlatform('Linux'))" /> | ||
<Import Project="Sdk.props" Sdk="Microsoft.NET.Runtime.Emscripten.Node" /> | ||
<Import Project="Sdk.props" Sdk="Microsoft.NET.Runtime.Emscripten.Sdk" /> | ||
</ImportGroup> | ||
</Project> |
This file was deleted.
Oops, something went wrong.