Skip to content

Commit

Permalink
(conan-io#23808) libtorrent: Add 2.0.10
Browse files Browse the repository at this point in the history
* Add libtorrent 2.0.10

* Properly link missing system libs

---------

Co-authored-by: Rubén Rincón Blanco <[email protected]>
  • Loading branch information
Ahajha and AbrilRBS authored May 1, 2024
1 parent ba9b2ae commit 5a760eb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions recipes/libtorrent/all/conandata.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
sources:
"2.0.10":
url: "https://github.com/arvidn/libtorrent/releases/download/v2.0.10/libtorrent-rasterbar-2.0.10.tar.gz"
sha256: "fc935b8c1daca5c0a4d304bff59e64e532be16bb877c012aea4bda73d9ca885d"
"2.0.9":
url: "https://github.com/arvidn/libtorrent/releases/download/v2.0.9/libtorrent-rasterbar-2.0.9.tar.gz"
sha256: "90cd92b6061c5b664840c3d5e151d43fedb24f5b2b24e14425ffbb884ef1798e"
Expand Down
4 changes: 2 additions & 2 deletions recipes/libtorrent/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,9 @@ def package_info(self):
self.cpp_info.components["libtorrent-rasterbar"].requires.append("libiconv::libiconv")

if self.settings.os in ["Linux", "FreeBSD"]:
self.cpp_info.components["libtorrent-rasterbar"].system_libs = ["dl", "pthread"]
self.cpp_info.components["libtorrent-rasterbar"].system_libs = ["dl", "pthread", "m"]
elif self.settings.os == "Windows":
self.cpp_info.components["libtorrent-rasterbar"].system_libs = ["wsock32", "ws2_32", "iphlpapi", "dbghelp"]
self.cpp_info.components["libtorrent-rasterbar"].system_libs = ["wsock32", "ws2_32", "iphlpapi", "dbghelp", "mswsock"]
elif self.settings.os == "Macos":
self.cpp_info.components["libtorrent-rasterbar"].frameworks = ["CoreFoundation", "SystemConfiguration"]

Expand Down
2 changes: 2 additions & 0 deletions recipes/libtorrent/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
versions:
"2.0.10":
folder: "all"
"2.0.9":
folder: "all"
"2.0.8":
Expand Down

0 comments on commit 5a760eb

Please sign in to comment.