From 20de5006b636316d67509d5d4e212d23b7c778bf Mon Sep 17 00:00:00 2001 From: Wolfgang Bremer Date: Mon, 26 Oct 2020 12:10:40 +0100 Subject: [PATCH] Initial conanfile.py for possible distribution --- conanfile.py | 25 +++++++++++++++++++++++++ conanfile.txt | 7 ------- 2 files changed, 25 insertions(+), 7 deletions(-) create mode 100644 conanfile.py delete mode 100644 conanfile.txt diff --git a/conanfile.py b/conanfile.py new file mode 100644 index 00000000..ce0ba845 --- /dev/null +++ b/conanfile.py @@ -0,0 +1,25 @@ +from conans import ConanFile, CMake, tools + +class autobahn_cppConan(ConanFile): + name = "autobahn-cpp" + version = "v20.8.1" + license = "Boost Software License - Version 1.0 - August 17th, 2003" + author = "Crossbar.io Technologies GmbH and contributors" + description = "WAMP for C++ on Boost/ASIO" + url = "https://github.com/crossbario/autobahn-cpp" + requires = "boost/1.73.0","msgpack/3.2.1","websocketpp/0.8.2" + generators = "cmake_find_package" + scm = { + "type": "git", + "subfolder": ".", + "url": "auto", + "revision": "auto" + } + no_copy_source = True + + def package(self): + self.copy("*.hpp", dst="include/autobahn", src="autobahn") + self.copy("*.ipp", dst="include/autobahn", src="autobahn") + + def package_id(self): + self.info.header_only() diff --git a/conanfile.txt b/conanfile.txt deleted file mode 100644 index d60d9d07..00000000 --- a/conanfile.txt +++ /dev/null @@ -1,7 +0,0 @@ -[requires] -boost/1.73.0 -msgpack/3.2.1 -websocketpp/0.8.2 - -[generators] -cmake_find_package