wasdk / WebAssemblyStudio

Learn, Teach, Work and Play in the WebAssembly Studio
http://webassembly.studio
MIT License
2.92k stars 273 forks source link

How can I setup a specific build command? #461

Open fintechee opened 4 years ago

fintechee commented 4 years ago

Emscripten is great! This studio is great as well!! I love it!

I have a question. (I'm a newbie to this IDE)

How can I setup a specific build command? For example:

emcc atr.cpp -o atr.js -s EXTRA_EXPORTED_RUNTIME_METHODS='["ccall", "cwrap", "getValue", "setValue", "addFunction", "UTF8ToString", "lengthBytesUTF8", "stringToUTF8"]' -s RESERVED_FUNCTION_POINTERS=100 -s MODULARIZE=1 -s 'EXPORT_NAME="IndiPlugIn"' -s ENVIRONMENT=web -s ALLOW_MEMORY_GROWTH=1

and

emcc ea_basedon_macd.cpp -o ea_basedon_macd.js -s EXTRA_EXPORTED_RUNTIME_METHODS='["ccall", "cwrap", "getValue", "setValue", "addFunction", "UTF8ToString", "lengthBytesUTF8", "stringToUTF8"]' -s RESERVED_FUNCTION_POINTERS=100 -s MODULARIZE=1 -s 'EXPORT_NAME="EAPlugIn"' -s ENVIRONMENT=web -s ASYNCIFY -s 'ASYNCIFY_IMPORTS=["jOrderSend", "jOrderModify", "jOrderClose", "jOrderDelete"]' -O3

How to make both commands executed by the online studio?

Any help would be appreciated, many thanks.

fintechee commented 4 years ago

I googled WebAssembly editor and found another good IDE: Wasmfiddle. There is a build setting. But Wasmfiddle is deprecated. And the page said they created a new project: WebAssemblyStudio. Then why doesn't the updated version retain the necessary feature?