🎉 Added socketw

This commit is contained in:
Edgar 2021-08-04 18:13:07 +00:00 committed by GitHub
parent bc1fb66998
commit 4ddd585d2e
3 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,6 @@
sources:
"3.10.27":
url: "https://github.com/RigsOfRods/socketw/archive/refs/tags/3.10.27.tar.gz"
sha256: "8f25b7ebf85ca12f2c3257e851be2a95819b9ac1ee78884fc4db81c850b5d70e"
requirements:
- "openssl/1.1.1k"

30
socketw/all/conanfile.py Normal file
View File

@ -0,0 +1,30 @@
from conans import ConanFile, CMake, tools
class SocketwConan(ConanFile):
name = "socketw"
license = "GNU Lesser General Public License v2.1"
url = "https://github.com/RigsOfRods/socketw/issues"
description = "SocketW is a library which provides cross-platform socket abstraction"
settings = "os", "compiler", "build_type", "arch"
generators = "cmake"
def requirements(self):
for req in self.conan_data["requirements"]:
self.requires(req)
def source(self):
tools.get(**self.conan_data["sources"][self.version], strip_root=True)
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
def package(self):
cmake = CMake(self)
cmake.install()
def package_info(self):
self.cpp_info.libs = tools.collect_libs(self)

3
socketw/config.yml Normal file
View File

@ -0,0 +1,3 @@
versions:
"3.10.27":
folder: all