package An official xmake package repository
https://xrepo.xmake.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.9 KiB
54 lines
1.9 KiB
9 months ago
|
diff --git a/core/iwasm/libraries/libc-uvwasi/libc_uvwasi.cmake b/core/iwasm/libraries/libc-uvwasi/libc_uvwasi.cmake
|
||
|
index 7a3bfbdc..3c8c4b19 100644
|
||
|
--- a/core/iwasm/libraries/libc-uvwasi/libc_uvwasi.cmake
|
||
|
+++ b/core/iwasm/libraries/libc-uvwasi/libc_uvwasi.cmake
|
||
|
@@ -12,48 +12,6 @@ include(FetchContent)
|
||
|
# Point CMake at the custom modules to find libuv and uvwasi
|
||
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")
|
||
|
|
||
|
-## libuv
|
||
|
-find_package(LIBUV QUIET)
|
||
|
-if (LIBUV_FOUND)
|
||
|
- include_directories(${LIBUV_INCLUDE_DIR})
|
||
|
-else()
|
||
|
- FetchContent_Declare(
|
||
|
- libuv
|
||
|
- GIT_REPOSITORY https://github.com/libuv/libuv.git
|
||
|
- GIT_TAG ${LIBUV_VERSION}
|
||
|
- )
|
||
|
- FetchContent_GetProperties(libuv)
|
||
|
- if (NOT libuv_POPULATED)
|
||
|
- message("-- Fetching libuv ..")
|
||
|
- FetchContent_Populate(libuv)
|
||
|
- include_directories("${libuv_SOURCE_DIR}/include")
|
||
|
- add_subdirectory(${libuv_SOURCE_DIR} ${libuv_BINARY_DIR} EXCLUDE_FROM_ALL)
|
||
|
- set (LIBUV_LIBRARIES uv_a)
|
||
|
- set_target_properties(uv_a PROPERTIES POSITION_INDEPENDENT_CODE 1)
|
||
|
- endif()
|
||
|
-endif()
|
||
|
-
|
||
|
-## uvwasi
|
||
|
-find_package(UVWASI QUIET)
|
||
|
-if (UVWASI_FOUND)
|
||
|
- include_directories(${UVWASI_INCLUDE_DIR})
|
||
|
-else()
|
||
|
- FetchContent_Declare(
|
||
|
- uvwasi
|
||
|
- GIT_REPOSITORY https://github.com/nodejs/uvwasi.git
|
||
|
- GIT_TAG main
|
||
|
- )
|
||
|
- FetchContent_GetProperties(uvwasi)
|
||
|
- if (NOT uvwasi_POPULATED)
|
||
|
- message("-- Fetching uvwasi ..")
|
||
|
- FetchContent_Populate(uvwasi)
|
||
|
- include_directories("${uvwasi_SOURCE_DIR}/include")
|
||
|
- add_subdirectory(${uvwasi_SOURCE_DIR} ${uvwasi_BINARY_DIR} EXCLUDE_FROM_ALL)
|
||
|
- set (UVWASI_LIBRARIES uvwasi_a)
|
||
|
- set_target_properties(uvwasi_a PROPERTIES POSITION_INDEPENDENT_CODE 1)
|
||
|
- endif()
|
||
|
-endif()
|
||
|
-
|
||
|
set (UV_A_LIBS ${LIBUV_LIBRARIES} ${UVWASI_LIBRARIES})
|
||
|
|
||
|
file (GLOB_RECURSE source_all ${LIBC_WASI_DIR}/*.c)
|