[mono] Adjust wasm gitignore and Makefile (#40797)
authorRyan Lucia <rylucia@microsoft.com>
Fri, 14 Aug 2020 00:55:44 +0000 (20:55 -0400)
committerGitHub <noreply@github.com>
Fri, 14 Aug 2020 00:55:44 +0000 (20:55 -0400)
.gitignore
src/mono/wasm/Makefile

index bfe14ad..25fc517 100644 (file)
@@ -353,3 +353,7 @@ src/coreclr/src/System.Private.CoreLib/common
 
 # The debug directory should not be ignored
 !src/coreclr/src/debug
+
+# Mono Wasm-specific excludes
+src/mono/wasm/emsdk/
+src/mono/wasm/.stamp-wasm-install-and-select*
index 398bd0e..7efcaed 100644 (file)
@@ -120,6 +120,12 @@ icu-data:
 
 runtime:
        EMSDK_PATH=$(TOP)/src/mono/wasm/emsdk $(TOP)/build.sh --subset mono --arch wasm --os Browser -c $(CONFIG) /p:ContinueOnError=false  /p:StopOnFirstFailure=true
+       cp $(TOP)/artifacts/bin/mono/Browser.wasm.$(CONFIG)/IL/System.Private.CoreLib.dll $(TOP)/artifacts/bin/microsoft.netcore.app.runtime.browser-wasm/$(CONFIG)/runtimes/browser-wasm/native/
+       $(MAKE) build
+
+corlib:
+       EMSDK_PATH=$(TOP)/src/mono/wasm/emsdk $(TOP)/build.sh --subset mono.corelib --arch wasm --os Browser -c $(CONFIG)
+       cp $(TOP)/artifacts/bin/mono/Browser.wasm.$(CONFIG)/IL/System.Private.CoreLib.dll $(TOP)/artifacts/bin/microsoft.netcore.app.runtime.browser-wasm/$(CONFIG)/runtimes/browser-wasm/native/
 
 build-all:
        EMSDK_PATH=$(TOP)/src/mono/wasm/emsdk $(TOP)/build.sh --subset mono+libs --arch wasm --os Browser -c $(CONFIG)