Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/mono/sample/wasm/console-node-cjs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ ifneq ($(V),)
DOTNET_MONO_LOG_LEVEL=--setenv=MONO_LOG_LEVEL=debug
endif

PROJECT_NAME=Wasm.Console.CJS.Sample.csproj
CONSOLE_DLL=Wasm.Console.CJS.Sample.dll
PROJECT_NAME=Wasm.Console.Node.CJS.Sample.csproj
CONSOLE_DLL=Wasm.Console.Node.CJS.Sample.dll
MAIN_JS=main.cjs

run: run-console
run: run-console-node
7 changes: 4 additions & 3 deletions src/mono/sample/wasm/console-node-es6/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ ifneq ($(V),)
DOTNET_MONO_LOG_LEVEL=--setenv=MONO_LOG_LEVEL=debug
endif

PROJECT_NAME=Wasm.Console.Sample.csproj
CONSOLE_DLL=Wasm.Console.Sample.dll
PROJECT_NAME=Wasm.Console.Node.ES6.Sample.csproj
CONSOLE_DLL=Wasm.Console.Node.ES6.Sample.dll
MAIN_JS=main.mjs

run: run-console
run: run-console-node
17 changes: 17 additions & 0 deletions src/mono/sample/wasm/console-v8-cjs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
TOP=../../../../..

include ../wasm.mk

ifneq ($(AOT),)
override MSBUILD_ARGS+=/p:RunAOTCompilation=true
endif

ifneq ($(V),)
DOTNET_MONO_LOG_LEVEL=--setenv=MONO_LOG_LEVEL=debug
endif

PROJECT_NAME=Wasm.Console.V8.CJS.Sample.csproj
CONSOLE_DLL=Wasm.Console.V8.CJS.Sample.dll
MAIN_JS=main.cjs

run: run-console
5 changes: 3 additions & 2 deletions src/mono/sample/wasm/console-v8-es6/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ ifneq ($(V),)
DOTNET_MONO_LOG_LEVEL=--setenv=MONO_LOG_LEVEL=debug
endif

PROJECT_NAME=Wasm.Console.Sample.csproj
CONSOLE_DLL=Wasm.Console.Sample.dll
PROJECT_NAME=Wasm.Console.V8.ES6.Sample.csproj
CONSOLE_DLL=Wasm.Console.V8.ES6.Sample.dll
MAIN_JS=v8shim.cjs

run: run-console
5 changes: 4 additions & 1 deletion src/mono/sample/wasm/wasm.mk
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,7 @@ run-browser:
fi

run-console:
cd bin/$(CONFIG)/AppBundle && ~/.jsvu/v8 --stack-trace-limit=1000 --single-threaded --expose_wasm test-main.js -- $(DOTNET_MONO_LOG_LEVEL) --run $(CONSOLE_DLL) $(ARGS)
cd bin/$(CONFIG)/AppBundle && ~/.jsvu/v8 --stack-trace-limit=1000 --single-threaded --expose_wasm $(MAIN_JS) -- $(DOTNET_MONO_LOG_LEVEL) --run $(CONSOLE_DLL) $(ARGS)

run-console-node:
cd bin/$(CONFIG)/AppBundle && node --stack-trace-limit=1000 --single-threaded --expose_wasm $(MAIN_JS) -- $(DOTNET_MONO_LOG_LEVEL) --run $(CONSOLE_DLL) $(ARGS)