Implement WAMR-IDE with vscode extension (#943)

Implement WAMR-IDE with vscode extension to enable developing
WebAssembly applications with coding, building, running and
debugging support. Support both Linux and Windows, and only
support putting all the tools in a docker image, e.g. wasi-sdk, wamrc,
iwasm and so on.

Co-authored-by: Wang Ning <justdoitwn@163.com>
This commit is contained in:
Wenyong Huang
2022-01-25 10:10:12 +08:00
committed by GitHub
parent 90a0057d33
commit d925369a1f
66 changed files with 2769 additions and 0 deletions

View File

@ -0,0 +1,24 @@
# Copyright (C) 2019 Intel Corporation. All rights reserved.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#!/bin/bash
export CC=/opt/wasi-sdk/bin/clang
export CXX=/opt/wasi-sdk/bin/clang++
if [ -d /mnt/build ];then
rm -fr /mnt/build
fi
mkdir -p /mnt/build
cd /mnt/build/
echo "========> compile wasm with wasi-sdk"
cmake ../.wamr && make
echo && echo
echo "========> compile wasm to AoT with wamrc"
# target name will be provided:
# - user input the target name in IDE
# - generated wasm binary name will be set as user's input target name
# - aot binary name should be the same as wasm binary name
# - target name will be provided through 1st parameter
wamrc -o $1.aot $1.wasm