Refine wamr-sdk build scripts (#801)

Avoid hardcoding the path of wasi-sdk in wamr_toolchain.cmake,
allow passing -w [wasi-sdk path] to build_sdk.sh,
allow passing OUT_DIR to app-sdk and runtime-sdk,
and optimize message information.
This commit is contained in:
liang.he
2021-10-26 14:20:29 +08:00
committed by GitHub
parent 6b3a939370
commit 1a987ae59b
4 changed files with 34 additions and 19 deletions

View File

@ -24,7 +24,9 @@ endif ()
include(${CONFIG_PATH})
set (OUT_DIR "${CMAKE_CURRENT_LIST_DIR}/../out/${WAMR_BUILD_SDK_PROFILE}")
if (NOT DEFINED OUT_DIR)
set (OUT_DIR "${CMAKE_CURRENT_LIST_DIR}/../out/${WAMR_BUILD_SDK_PROFILE}")
endif ()
set (RUNTIME_SDK_DIR "${OUT_DIR}/runtime-sdk")
include(${CMAKE_CURRENT_LIST_DIR}/../../build-scripts/runtime_lib.cmake)