forked from conan-io/conan-center-index
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(conan-io#25407) libuv: add version 1.49.0
Co-authored-by: Ernesto de Gracia Herranz <ernestodegraciah@gmail.com>
- Loading branch information
Showing
3 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 28c6df2..608d0f7 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -471,7 +471,7 @@ if(LIBUV_BUILD_SHARED) | ||
endif() | ||
target_link_libraries(uv ${uv_libraries}) | ||
set_target_properties(uv PROPERTIES OUTPUT_NAME "uv") | ||
-endif() | ||
+else() | ||
|
||
add_library(uv_a STATIC ${uv_sources}) | ||
target_compile_definitions(uv_a PRIVATE ${uv_defines}) | ||
@@ -491,7 +491,7 @@ set_target_properties(uv_a PROPERTIES OUTPUT_NAME "uv") | ||
if(WIN32) | ||
set_target_properties(uv_a PROPERTIES PREFIX "lib") | ||
endif() | ||
- | ||
+endif() | ||
if(LIBUV_BUILD_TESTS) | ||
# Small hack: use ${uv_test_sources} now to get the runner skeleton, | ||
# before the actual tests are added. | ||
@@ -759,18 +759,18 @@ set(UV_VERSION_MAJOR "${CMAKE_MATCH_1}") | ||
set(includedir ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}) | ||
set(libdir ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}) | ||
set(prefix ${CMAKE_INSTALL_PREFIX}) | ||
-configure_file(libuv-static.pc.in libuv-static.pc @ONLY) | ||
+# configure_file(libuv-static.pc.in libuv-static.pc @ONLY) | ||
|
||
install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) | ||
install(FILES LICENSE DESTINATION ${CMAKE_INSTALL_DOCDIR}) | ||
install(FILES LICENSE-extra DESTINATION ${CMAKE_INSTALL_DOCDIR}) | ||
-install(FILES ${PROJECT_BINARY_DIR}/libuv-static.pc | ||
- DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) | ||
-install(TARGETS uv_a EXPORT libuvConfig | ||
- ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) | ||
-install(EXPORT libuvConfig | ||
- DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/libuv | ||
- NAMESPACE libuv::) | ||
+# install(FILES ${PROJECT_BINARY_DIR}/libuv-static.pc | ||
+# DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) | ||
+# install(TARGETS uv_a EXPORT libuvConfig | ||
+# ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) | ||
+# install(EXPORT libuvConfig | ||
+# DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/libuv | ||
+# NAMESPACE libuv::) | ||
|
||
if(LIBUV_BUILD_SHARED) | ||
# The version in the filename is mirroring the behaviour of autotools. | ||
@@ -784,8 +784,16 @@ if(LIBUV_BUILD_SHARED) | ||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} | ||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) | ||
+else() | ||
+ configure_file(libuv-static.pc.in libuv-static.pc @ONLY) | ||
+ install(FILES ${PROJECT_BINARY_DIR}/libuv-static.pc | ||
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) | ||
+ install(TARGETS uv_a EXPORT libuvConfig | ||
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) | ||
+ install(EXPORT libuvConfig | ||
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/libuv | ||
+ NAMESPACE libuv::) | ||
endif() | ||
- | ||
if(MSVC) | ||
set(CMAKE_DEBUG_POSTFIX d) | ||
get_filename_component(CMAKE_C_COMPILER_DIR ${CMAKE_C_COMPILER} DIRECTORY) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
versions: | ||
"1.49.0": | ||
folder: all | ||
"1.48.0": | ||
folder: all | ||
"1.47.0": | ||
|