🎉 Made tools a conan pkg

This commit is contained in:
Edgar 2022-07-25 14:54:38 +00:00
parent 5323a66b9d
commit cbe26696c0
No known key found for this signature in database
GPG Key ID: 9AA5DDFFCBDCE46A
3 changed files with 21 additions and 0 deletions

21
tools/conanfile.py Normal file
View File

@ -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"))