mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2024-11-26 07:21:54 +00:00
fix sample littlevgl build.sh issue (#174)
This commit is contained in:
parent
72d9e886e8
commit
dc7177e745
|
@ -4,6 +4,9 @@ PROJECT_DIR=$PWD
|
|||
WAMR_DIR=${PWD}/../..
|
||||
OUT_DIR=${PWD}/out
|
||||
BUILD_DIR=${PWD}/build
|
||||
LV_CFG_PATH=${PROJECT_DIR}/lv_config
|
||||
|
||||
|
||||
|
||||
if [ -z $KW_BUILD ] || [ -z $KW_OUT_FILE ];then
|
||||
echo "Local Build Env"
|
||||
|
@ -35,7 +38,8 @@ fi
|
|||
|
||||
echo "##################### 0. build wamr-sdk littlevgl start#####################"
|
||||
cd ${WAMR_DIR}/wamr-sdk
|
||||
./build_sdk.sh -n littlevgl -x ${PROJECT_DIR}/wamr_config_littlevgl.cmake
|
||||
./build_sdk.sh -n littlevgl -x ${PROJECT_DIR}/wamr_config_littlevgl.cmake -e ${LV_CFG_PATH}
|
||||
[ $? -eq 0 ] || exit $?
|
||||
echo "#####################build wamr-sdk littlevgl success"
|
||||
|
||||
echo -e "\n\n"
|
||||
|
@ -60,6 +64,7 @@ mkdir -p vgl-wasm-runtime
|
|||
cd vgl-wasm-runtime
|
||||
$cmakewrap ${PROJECT_DIR}/vgl-wasm-runtime
|
||||
$makewrap
|
||||
[ $? -eq 0 ] || exit $?
|
||||
cp vgl_wasm_runtime ${OUT_DIR}/
|
||||
|
||||
echo "##################### build littlevgl wasm runtime end#####################"
|
||||
|
|
|
@ -180,10 +180,7 @@ if [ -n "$out" ]; then
|
|||
fi
|
||||
if [ "${LIBC_SUPPORT}" = "WASI" ]; then
|
||||
echo "using wasi toolchain"
|
||||
cmake .. $CM_DEXTRA_SDK_INCLUDE_PATH \
|
||||
-DWAMR_BUILD_SDK_PROFILE=${PROFILE} \
|
||||
-DCONFIG_PATH=${wamr_config_cmake_file} \
|
||||
-DCMAKE_TOOLCHAIN_FILE=../wasi_toolchain.cmake
|
||||
cmake .. $CM_DEXTRA_SDK_INCLUDE_PATH -DWAMR_BUILD_SDK_PROFILE=${PROFILE} -DCONFIG_PATH=${wamr_config_cmake_file} -DCMAKE_TOOLCHAIN_FILE=../wasi_toolchain.cmake
|
||||
else
|
||||
echo "using builtin libc toolchain"
|
||||
cmake .. $CM_DEXTRA_SDK_INCLUDE_PATH \
|
||||
|
|
Loading…
Reference in New Issue
Block a user