mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
JerryScript-DCO-1.0-Signed-off-by: Philippe pgu-swir@users.noreply.github.com Co-authored-by: Philippe <pgu-swir@users.noreply.github.com>
17 lines
700 B
Plaintext
17 lines
700 B
Plaintext
# assumes there is a component with this the following
|
|
# - set the JERRY_DIR wherever the jerryscript source code (the include files) is
|
|
# - a "lib" directory with the 2 libraries below
|
|
|
|
set(JERRY_DIR ${PROJECT_DIR}/../../jerryscript/)
|
|
|
|
idf_component_register(
|
|
SRC_DIRS ${JERRY_DIR}/targets/esp-idf
|
|
INCLUDE_DIRS ${JERRY_DIR}/jerry-core/include ${JERRY_DIR}/jerry-ext/include
|
|
)
|
|
|
|
add_prebuilt_library(libjerry-core lib/libjerry-core.a REQUIRES newlib PRIV_REQUIRES ${COMPONENT_NAME})
|
|
add_prebuilt_library(libjerry-ext lib/libjerry-ext.a PRIV_REQUIRES ${COMPONENT_NAME})
|
|
|
|
target_link_libraries(${COMPONENT_LIB} INTERFACE libjerry-core)
|
|
target_link_libraries(${COMPONENT_LIB} INTERFACE libjerry-ext)
|