Skip to content

Commit

Permalink
Move where wasm binaries are generated (#36781)
Browse files Browse the repository at this point in the history
This change shifts producing wasm binaries to the native dir so that they'll come over to the installer on CI.
  • Loading branch information
steveisok authored May 22, 2020
1 parent eabb025 commit 2614887
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion eng/liveBuilds.targets
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
$(LibrariesAllBinArtifactsPath)*.dll;
$(LibrariesAllBinArtifactsPath)*.pdb"
IsNative="" />
<LibrariesRuntimeFiles Include="
<LibrariesRuntimeFiles Condition="'$(TargetsMobile)' != 'true'" Include="
$(LibrariesNativeArtifactsPath)*.dll;
$(LibrariesNativeArtifactsPath)*.dylib;
$(LibrariesNativeArtifactsPath)*.a;
Expand All @@ -184,6 +184,10 @@
$(LibrariesNativeArtifactsPath)*.dwarf;
$(LibrariesNativeArtifactsPath)*.pdb"
IsNative="true" />
<LibrariesRuntimeFiles Condition="'$(TargetsMobile)' == 'true'"
Include="
$(LibrariesNativeArtifactsPath)**\*.*"
IsNative="true" />
</ItemGroup>

<Error Condition="'@(LibrariesRefAssemblies)' == ''" Text="The 'libs' subset must be built before building this project." />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@

<ItemGroup Condition="'$(PackageRID)' != ''">
<LibrariesRuntimeFiles Condition="'%(IsNative)' != 'true'" TargetPath="runtimes/$(PackageRID)/lib/$(NetCoreAppCurrent)" />
<LibrariesRuntimeFiles Condition="'%(IsNative)' == 'true'" TargetPath="runtimes/$(PackageRID)/native" />
<LibrariesRuntimeFiles Condition="'%(IsNative)' == 'true'" TargetPath="runtimes/$(PackageRID)/native/%(RecursiveDir)" />
<ReferenceCopyLocalPaths Include="@(LibrariesRuntimeFiles)" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion src/mono/wasm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ emsdk_env.sh: | provision-wasm

MONO_OBJ_DIR=$(OBJDIR)/mono/Browser.wasm.$(CONFIG)
MONO_INCLUDE_DIR=$(MONO_BIN_DIR)/include/mono-2.0
BUILDS_BIN_DIR=$(MONO_BIN_DIR)/wasm/runtimes
BUILDS_BIN_DIR=$(SYS_NATIVE_DIR)/wasm/runtimes
BUILDS_OBJ_DIR=$(MONO_OBJ_DIR)/wasm/runtimes
MONO_LIBS = \
$(MONO_BIN_DIR)/{libmono-ee-interp.a,libmonosgen-2.0.a,libmono-ilgen.a,libmono-icall-table.a} \
Expand Down

0 comments on commit 2614887

Please sign in to comment.