Skip to content
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

Build WASM runtimes #35566

Merged
merged 35 commits into from
May 12, 2020
Merged

Build WASM runtimes #35566

merged 35 commits into from
May 12, 2020

Conversation

vargaz
Copy link
Contributor

@vargaz vargaz commented Apr 28, 2020

No description provided.

@vargaz vargaz marked this pull request as draft April 28, 2020 12:06
@vargaz
Copy link
Contributor Author

vargaz commented Apr 28, 2020

The actual build is not setup yet.

@@ -137,6 +137,8 @@
Include="$(MonoArtifactsPath)\cross\*.*" />
<MonoIncludeFiles Condition="'$(TargetsMobile)' == 'true' or '$(TargetOS)' == 'Browser'"
Include="$(MonoArtifactsPath)\include\**\*.*" />
<WasmDistFiles Condition="'$(TargetOS)' == 'Browser'"
Include="$(MonoArtifactsPath)\wasm\runtimes\**\*.*" />
Copy link
Contributor

@marek-safar marek-safar Apr 28, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think wasm name is redundant in this context and it might be better to explicitly included as there is only a handful of files

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The different kinds of files go to different places inside the nuget, so they need different property names.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was referring to \wasm\runtimes not sure we need this if the package is wasm only

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm yeah it's a bit redundant but since this is the source directory where the files get picked up rather than the destination in the nuget I don't care too much here.

Copy link
Contributor

@kjpou1 kjpou1 May 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Shouldn't we be using Condition="'$(TargetsBrowser)' == 'true'" here instead of Condition="'$(TargetOS)' == 'Browser'" for consistency?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally yes, but that can be cleaned up later.

src/mono/wasm/Makefile Outdated Show resolved Hide resolved
src/mono/wasm/Makefile Outdated Show resolved Hide resolved
src/mono/wasm/runtime/linker-disable-collation.xml Outdated Show resolved Hide resolved
src/mono/wasm/runtime/linker-preserves.xml Show resolved Hide resolved
src/mono/wasm/runtime/linker-subs.xml Outdated Show resolved Hide resolved
src/mono/wasm/runtime/zlib-helper.c Outdated Show resolved Hide resolved
src/mono/wasm/runtime/pinvoke-tables-default-netcore.h Outdated Show resolved Hide resolved
src/mono/wasm/runtime/pinvoke-tables-default.h Outdated Show resolved Hide resolved
@danmoseley danmoseley added arch-wasm WebAssembly architecture area-Build-mono labels Apr 28, 2020
@vargaz vargaz force-pushed the wasm-runtime branch 2 times, most recently from a92b9c9 to c371e7c Compare April 29, 2020 21:29
@vargaz vargaz changed the title Add beginnings of wasm binary generation. Build WASM runtimes Apr 30, 2020
@vargaz vargaz marked this pull request as ready for review April 30, 2020 06:07
@vargaz vargaz force-pushed the wasm-runtime branch 3 times, most recently from 0f58684 to cca8a28 Compare April 30, 2020 10:55
@vargaz
Copy link
Contributor Author

vargaz commented Apr 30, 2020

The wasm installer build needs EMSDK_PATH set as well.

@vargaz vargaz force-pushed the wasm-runtime branch 5 times, most recently from e681a00 to d3f2741 Compare May 1, 2020 10:25
@vargaz
Copy link
Contributor Author

vargaz commented May 1, 2020

This seems to work now.

@marek-safar
Copy link
Contributor

@akoeplinger please review

@@ -137,6 +137,8 @@
Include="$(MonoArtifactsPath)\cross\*.*" />
<MonoIncludeFiles Condition="'$(TargetsMobile)' == 'true' or '$(TargetOS)' == 'Browser'"
Include="$(MonoArtifactsPath)\include\**\*.*" />
<WasmDistFiles Condition="'$(TargetOS)' == 'Browser'"
Include="$(MonoArtifactsPath)\wasm\runtimes\**\*.*" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm yeah it's a bit redundant but since this is the source directory where the files get picked up rather than the destination in the nuget I don't care too much here.

src/libraries/pretest.proj Show resolved Hide resolved
src/mono/mono.proj Outdated Show resolved Hide resolved
src/mono/mono.proj Outdated Show resolved Hide resolved
src/mono/msbuild/WasmAppBuilder/WasmAppBuilder.cs Outdated Show resolved Hide resolved
src/mono/wasm/runtime/driver.c Show resolved Hide resolved
src/mono/wasm/runtime/library_mono.js Show resolved Hide resolved
src/mono/wasm/wasm.proj Outdated Show resolved Hide resolved
src/mono/wasm/Makefile Outdated Show resolved Hide resolved
Include="@(MonoIncludeFiles)">
<TargetPath>runtimes/$(PackageRID)/native/include/%(RecursiveDir)</TargetPath>
</RuntimeFiles>

<RuntimeFiles Condition="'$(TargetsBrowser)' == 'true'"
Include="@(WasmDistFiles)">
<TargetPath>runtimes/$(PackageRID)/native/wasm/runtimes/%(RecursiveDir)</TargetPath>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the wasm/runtimes in the path is redundant

@marek-safar marek-safar merged commit 7f042fc into dotnet:master May 12, 2020
@vargaz vargaz deleted the wasm-runtime branch May 12, 2020 11:58
@ghost ghost locked as resolved and limited conversation to collaborators Dec 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-Build-mono
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants