diff --git a/socketw/all/conandata.yml b/socketw/all/conandata.yml new file mode 100644 index 0000000..aac2c49 --- /dev/null +++ b/socketw/all/conandata.yml @@ -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" diff --git a/socketw/all/conanfile.py b/socketw/all/conanfile.py new file mode 100644 index 0000000..9cd4d19 --- /dev/null +++ b/socketw/all/conanfile.py @@ -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) \ No newline at end of file diff --git a/socketw/config.yml b/socketw/config.yml new file mode 100644 index 0000000..51b09a5 --- /dev/null +++ b/socketw/config.yml @@ -0,0 +1,3 @@ +versions: + "3.10.27": + folder: all