From 9bb107d7f46b2515591624230d89d9a178ece226 Mon Sep 17 00:00:00 2001 From: yuailong Date: Wed, 7 Jul 2021 16:27:13 +0800 Subject: [PATCH] Brings conan package management to qtpromise. I have uploaded it to personal conan-repository(https://fish.jfrog.io/artifactory/api/conan/fish-conan), dependence: QtPromise/master TODO: 1, Need to add test_package for testing 2, Need to upload to conan-center, better with ci/cd --- conanfile.py | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 conanfile.py diff --git a/conanfile.py b/conanfile.py new file mode 100644 index 0000000..e1da6ed --- /dev/null +++ b/conanfile.py @@ -0,0 +1,30 @@ +import os + +from conans import ConanFile + + +class QtPromiseConfig(ConanFile): + name = "QtPromise" + version = "master" + license = "QtPromise is available under the MIT license." + author = "simonbrunel" + url = "https://github.com/simonbrunel/qtpromise" + description = "Promises/A+ implementation for Qt/C++" + settings = "os", "compiler", "build_type", "arch" + + def package_id(self): + self.info.header_only() + + def source(self): + self.run("git clone git@github.com:simonbrunel/qtpromise.git") + + def package(self): + self.copy("*", dst="include", src="./qtpromise/include") + self.copy("*", dst="src", src="./qtpromise/src") + + def package_info(self): + self.cpp_info.libs = self.collect_libs() + + +if __name__ == '__main__': + os.system("conan create .")