Skip to content

Commit

Permalink
use simple libdyntype for app-framework example
Browse files Browse the repository at this point in the history
  • Loading branch information
xujuntwt95329 committed Dec 20, 2023
1 parent 698de20 commit b77ba0e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
12 changes: 2 additions & 10 deletions example/app-framework/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,24 +49,16 @@ set (WAMR_BUILD_LIBC_WASI 0)
set (WAMR_BUILD_GC 1)
set (WAMR_BUILD_GC_BINARYEN 1)
set (WAMR_BUILD_STRINGREF 1)
set (USE_SIMPLE_LIBDYNTYPE 1)

## stringref
set(STRINGREF_DIR ${RUNTIMR_DIR}/stringref)
set(WAMR_STRINGREF_IMPL_SOURCE
${STRINGREF_DIR}/stringref_qjs.c
${STRINGREF_DIR}/stringref_simple.c
)

include(${RUNTIMR_DIR}/deps/wamr-gc/build-scripts/runtime_lib.cmake)

## quickjs
set(QUICKJS_SRC_DIR ${RUNTIMR_DIR}/deps/quickjs)
include_directories(${QUICKJS_SRC_DIR})
set(QUICKJS_SOURCE
${QUICKJS_SRC_DIR}/cutils.c
${QUICKJS_SRC_DIR}/libregexp.c
${QUICKJS_SRC_DIR}/libunicode.c
${QUICKJS_SRC_DIR}/quickjs.c)

## libdyntype
set(LIBDYNTYPE_DIR ${RUNTIMR_DIR}/libdyntype)
include (${LIBDYNTYPE_DIR}/libdyntype.cmake)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ set (WAMR_BUILD_APP_LIST WAMR_APP_BUILD_BASE WAMR_APP_BUILD_CONNECTION WAMR_APP_
set (WAMR_BUILD_GC 1)
set (WAMR_BUILD_GC_BINARYEN 1)
set (WAMR_BUILD_STRINGREF 1)
set (USE_SIMPLE_LIBDYNTYPE 1)

set (RUNTIMR_DIR ${CMAKE_CURRENT_LIST_DIR}/../../../../runtime-library)
## stringref
set(STRINGREF_DIR ${RUNTIMR_DIR}/stringref)
set(WAMR_STRINGREF_IMPL_SOURCE
${STRINGREF_DIR}/stringref_qjs.c
${STRINGREF_DIR}/stringref_simple.c
)

## quickjs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ set (WAMR_BUILD_APP_LIST WAMR_APP_BUILD_BASE WAMR_APP_BUILD_CONNECTION WAMR_APP_
set (WAMR_BUILD_GC 1)
set (WAMR_BUILD_GC_BINARYEN 1)
set (WAMR_BUILD_STRINGREF 1)
set (USE_SIMPLE_LIBDYNTYPE 1)

set (RUNTIMR_DIR ${CMAKE_CURRENT_LIST_DIR}/../../../../runtime-library)
## stringref
set(STRINGREF_DIR ${RUNTIMR_DIR}/stringref)
set(WAMR_STRINGREF_IMPL_SOURCE
${STRINGREF_DIR}/stringref_qjs.c
${STRINGREF_DIR}/stringref_simple.c
)

## quickjs
Expand Down

0 comments on commit b77ba0e

Please sign in to comment.