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.
- Loading branch information
Showing
7 changed files
with
114 additions
and
13 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
45 changes: 45 additions & 0 deletions
45
eng/nuget/Microsoft.NET.Workload.Emscripten.Manifest.net6/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,45 @@ | ||
{ | ||
"version": "${WorkloadVersion}", | ||
"workloads": { | ||
"microsoft-net-sdk-emscripten-net6": { | ||
"abstract": true, | ||
"description": "Emscripten SDK compiler tooling", | ||
"packs": [ | ||
"Microsoft.NET.Runtime.Emscripten.Node.net6", | ||
"Microsoft.NET.Runtime.Emscripten.Python.net6", | ||
"Microsoft.NET.Runtime.Emscripten.Sdk.net" | ||
], | ||
"platforms": [ "win-x64", "linux-x64", "osx-x64", "osx-arm64" ] | ||
} | ||
}, | ||
"packs": { | ||
"Microsoft.NET.Runtime.Emscripten.Node.net6" : { | ||
"version": "${PacakgeVersionNet6}", | ||
"alias-to": { | ||
"win-x64": "Microsoft.NET.Runtime.Emscripten.${EmscriptenVersionNet6}.Node.win-x64", | ||
"linux-x64": "Microsoft.NET.Runtime.Emscripten.${EmscriptenVersionNet6}.Node.linux-x64", | ||
"osx-x64": "Microsoft.NET.Runtime.Emscripten.${EmscriptenVersionNet6}.Node.osx-x64", | ||
"osx-arm64": "Microsoft.NET.Runtime.Emscripten.${EmscriptenVersionNet6}.Node.osx-x64" | ||
} | ||
}, | ||
"Microsoft.NET.Runtime.Emscripten.Python.net6" : { | ||
"kind": "Sdk", | ||
"version": "${PacakgeVersionNet6}", | ||
"alias-to": { | ||
"win-x64": "Microsoft.NET.Runtime.Emscripten.${EmscriptenVersionNet6}.Python.win-x64", | ||
"osx-x64": "Microsoft.NET.Runtime.Emscripten.${EmscriptenVersionNet6}.Python.osx-x64", | ||
"osx-arm64": "Microsoft.NET.Runtime.Emscripten.${EmscriptenVersionNet6}.Python.osx-x64" | ||
} | ||
}, | ||
"Microsoft.NET.Runtime.Emscripten.Sdk.net6" : { | ||
"kind": "Sdk", | ||
"version": "${PacakgeVersionNet6}", | ||
"alias-to": { | ||
"win-x64": "Microsoft.NET.Runtime.Emscripten.${EmscriptenVersionNet6}.Sdk.win-x64", | ||
"linux-x64": "Microsoft.NET.Runtime.Emscripten.${EmscriptenVersionNet6}.Sdk.linux-x64", | ||
"osx-x64": "Microsoft.NET.Runtime.Emscripten.${EmscriptenVersionNet6}.Sdk.osx-x64", | ||
"osx-arm64": "Microsoft.NET.Runtime.Emscripten.${EmscriptenVersionNet6}.Sdk.osx-x64" | ||
} | ||
} | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
eng/nuget/Microsoft.NET.Workload.Emscripten.Manifest.net6/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,7 @@ | ||
<Project> | ||
<ImportGroup Condition="'$(RuntimeIdentifier)' == 'browser-wasm' and '$(UsingBrowserRuntimeWorkload)' == 'true' and '$(TargetFrameworkIdentifier)' == '.NETCoreApp' and '$(TargetFrameworkVersion)' == '6.0'"> | ||
<Import Project="Sdk.props" Sdk="Microsoft.NET.Runtime.Emscripten.Python.net6" Condition="!$([MSBuild]::IsOsPlatform('Linux'))" /> | ||
<Import Project="Sdk.props" Sdk="Microsoft.NET.Runtime.Emscripten.Node.net6" /> | ||
<Import Project="Sdk.props" Sdk="Microsoft.NET.Runtime.Emscripten.Sdk.net6" /> | ||
</ImportGroup> | ||
</Project> |
49 changes: 49 additions & 0 deletions
49
...Workload.Emscripten.Manifest.net7/Microsoft.NET.Workload.Emscripten.Manifest.net7.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.net7-$(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> |
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