Skip to content

Commit 45a6de9

Browse files
committed
A tool in jerry-ext: arg transformer for binding
It provides some APIs for binding developers, so that they can validate the type of the js argument and convert/assign them to the native argument. Related Issue: #1716 JerryScript-DCO-1.0-Signed-off-by: Martijn The [email protected] JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
1 parent 14c455b commit 45a6de9

17 files changed

+1690
-3
lines changed

CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS )
2626
set(JERRY_CMDLINE ON CACHE BOOL "Build jerry command line tool?")
2727
set(JERRY_CMDLINE_MINIMAL OFF CACHE BOOL "Build jerry minimal command line tool?")
2828
set(JERRY_PORT_DEFAULT ON CACHE BOOL "Build default jerry port implementation?")
29+
set(JERRY_EXT ON CACHE BOOL "Build jerry-ext?")
2930
set(JERRY_LIBC ON CACHE BOOL "Build and use jerry-libc?")
3031
set(JERRY_LIBM ON CACHE BOOL "Build and use jerry-libm?")
3132
set(UNITTESTS OFF CACHE BOOL "Build unit tests?")
@@ -94,6 +95,7 @@ message(STATUS "ENABLE_STRIP " ${ENABLE_STRIP} ${ENABLE_STRIP_MESSA
9495
message(STATUS "JERRY_CMDLINE " ${JERRY_CMDLINE})
9596
message(STATUS "JERRY_CMDLINE_MINIMAL " ${JERRY_CMDLINE_MINIMAL})
9697
message(STATUS "JERRY_PORT_DEFAULT " ${JERRY_PORT_DEFAULT} ${JERRY_PORT_DEFAULT_MESSAGE})
98+
message(STATUS "JERRY_EXT " ${JERRY_EXT} ${JERRY_EXT_MESSAGE})
9799
message(STATUS "JERRY_LIBC " ${JERRY_LIBC} ${JERRY_LIBC_MESSAGE})
98100
message(STATUS "JERRY_LIBM " ${JERRY_LIBM} ${JERRY_LIBM_MESSAGE})
99101
message(STATUS "UNITTESTS " ${UNITTESTS})
@@ -238,6 +240,11 @@ if(JERRY_PORT_DEFAULT)
238240
add_subdirectory(jerry-port/default)
239241
endif()
240242

243+
# Jerry's extension tools
244+
if(JERRY_EXT)
245+
add_subdirectory(jerry-ext)
246+
endif()
247+
241248
# Jerry command line tool
242249
if(JERRY_CMDLINE OR JERRY_CMDLINE_MINIMAL)
243250
add_subdirectory(jerry-main)
@@ -249,4 +256,7 @@ if(UNITTESTS)
249256
if(JERRY_LIBM)
250257
add_subdirectory(tests/unit-libm)
251258
endif()
259+
if(JERRY_EXT)
260+
add_subdirectory(tests/unit-ext)
261+
endif()
252262
endif()

0 commit comments

Comments
 (0)