xuxin930 opened a new pull request, #2971:
URL: https://github.com/apache/nuttx-apps/pull/2971

   ## Summary
   
   This is a complete enhancement and addition to the WASM build support for 
the CMake version.
   https://github.com/apache/nuttx-apps/pull/2324
   
   Enhanced full WASM library and application compilation
   
   1.add complete compilation FLAGS for wasm toolchain
   2.wasm build no longer traverses the native directory, saving build time
   3.implement OPT and AOT process actions for wasm files
   4.create a bridge interface for navtie build and wasm build
   5.instead of traversing all directories again, use nuttx's wasm_add function 
as the registration
   
   ## Impact
   
   enhance wasm feat
   
   ## Testing
   
   ```cmake
   
   # add wasm application
   
       wasm_add_application(
         NAME
         hello_world
         SRCS
         hello_world.c
         STACK_SIZE
         4096
         WINCLUDES
         ${INCDIR}
         WAMR_MODE
         INT
         WLDFLAGS
         ${WLDFLAGS}
         WCFLAGS
         ${CFLAGS}
         INSTALL_NAME
         ${CMAKE_BINARY_DIR}/bin/wasm/hello.wasm)
         
    # add wasm lib
    
     wasm_add_library(
       NAME
       frameworks
       SRCS
       ${SRCS}
       WINCLUDES
       ${INCDIR}
       WCFLAGS
       ${CFLAGS})
   
   ``` 
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to