Skip to content

Commit cd2a39b

Browse files
wujiangangdonghengqaz
authored andcommitted
cmake: Support to get WASM APP libs' DIR from upper layer
WASM APP libs' DIR is set inside a function, cannot be gotten from the upper layer. For the platform such as IDF, users need to get this DIR and include it manually.
1 parent 1fff8d5 commit cd2a39b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/app-framework/app_framework.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ function (add_module_native arg)
3333
${APP_FRAMEWORK_ROOT_DIR}/${ARGV0}/native/*.h
3434
${APP_FRAMEWORK_ROOT_DIR}/${ARGV0}/native/*.inl
3535
)
36+
37+
LIST (APPEND WASM_APP_LIBS_DIR ${APP_FRAMEWORK_ROOT_DIR}/${ARGV0}/native)
38+
set (WASM_APP_LIBS_DIR ${WASM_APP_LIBS_DIR} PARENT_SCOPE)
39+
3640
LIST (APPEND RUNTIME_LIB_HEADER_LIST ${header})
3741
set (RUNTIME_LIB_HEADER_LIST ${RUNTIME_LIB_HEADER_LIST} PARENT_SCOPE)
3842

0 commit comments

Comments
 (0)