Implement wasm mini loader and refine footprint of loader and runtime (#276)
This commit is contained in:
@ -65,17 +65,8 @@ set (APP_FRAMEWORK_DIR ${WAMR_ROOT_DIR}/core/app-framework)
|
||||
# include the build config template file
|
||||
include (${WAMR_ROOT_DIR}/build-scripts/config_common.cmake)
|
||||
|
||||
if ("$ENV{SGX_SDK}" STREQUAL "")
|
||||
set (SGX_SDK_DIR "/opt/intel/sgxsdk")
|
||||
else()
|
||||
set (SGX_SDK_DIR $ENV{SGX_SDK})
|
||||
endif()
|
||||
|
||||
include_directories (${SHARED_DIR}/include
|
||||
${IWASM_DIR}/include
|
||||
${SGX_SDK_DIR}/include
|
||||
${SGX_SDK_DIR}/include/tlibc
|
||||
${SGX_SDK_DIR}/include/libcxx)
|
||||
${IWASM_DIR}/include)
|
||||
|
||||
enable_language (ASM)
|
||||
|
||||
|
||||
@ -65,6 +65,11 @@ if (NOT DEFINED WAMR_BUILD_MULTI_MODULE)
|
||||
set (WAMR_BUILD_MULTI_MODULE 0)
|
||||
endif ()
|
||||
|
||||
if (NOT DEFINED WAMR_BUILD_MINI_LOADER)
|
||||
# Disable wasm mini loader by default
|
||||
set (WAMR_BUILD_MINI_LOADER 0)
|
||||
endif ()
|
||||
|
||||
set (WAMR_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../..)
|
||||
|
||||
include (${WAMR_ROOT_DIR}/build-scripts/runtime_lib.cmake)
|
||||
|
||||
Reference in New Issue
Block a user