From cbe26696c0750f6ebff6a28500ed9dacff541774 Mon Sep 17 00:00:00 2001 From: Edgar Date: Mon, 25 Jul 2022 14:54:38 +0000 Subject: [PATCH] :tada: Made tools a conan pkg --- tools/{ => bin}/cpfd | 0 tools/{ => bin}/diffo | 0 tools/conanfile.py | 21 +++++++++++++++++++++ 3 files changed, 21 insertions(+) rename tools/{ => bin}/cpfd (100%) rename tools/{ => bin}/diffo (100%) create mode 100644 tools/conanfile.py diff --git a/tools/cpfd b/tools/bin/cpfd similarity index 100% rename from tools/cpfd rename to tools/bin/cpfd diff --git a/tools/diffo b/tools/bin/diffo similarity index 100% rename from tools/diffo rename to tools/bin/diffo diff --git a/tools/conanfile.py b/tools/conanfile.py new file mode 100644 index 0000000..0350b90 --- /dev/null +++ b/tools/conanfile.py @@ -0,0 +1,21 @@ +import os +from conans import ConanFile +from conans.errors import ConanInvalidConfiguration + + +class conantoolsConan(ConanFile): + name = "afg-conan-tools" + version = "1.0" + description = "helper-tools" + settings = "os", "arch" + exports_sources = "bin/**" + + def validate(self): + if self.settings.os != "Linux": + raise ConanInvalidConfiguration("Only Linux supported") + + def package(self): + self.copy("*", src="bin", dst="bin", keep_path=True) + + def package_info(self): + self.env_info.PATH.append(os.path.join(self.package_folder, "bin"))