Skip to content

Commit

Permalink
Improve validation of recipe requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
Tereius committed Aug 10, 2024
1 parent 7d7b29d commit affed58
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ def validate(self):
valid_arch = ["x86_64", "x86", "armv7", "armv8"]
if str(self.settings.arch) not in valid_arch:
raise ConanInvalidConfiguration(f"{self.name} {self.version} is only supported for the following architectures on {self.settings.os}: {valid_arch}")
if self.settings.os == "Linux" and not self.dependencies["qt"].options.dbus:
raise ConanInvalidConfiguration("qt dbus options is required")
if not self.dependencies["qt"].options.qttools:
raise ConanInvalidConfiguration("qt qttools option is required")
if not self.dependencies["qt"].options.qttranslations:
raise ConanInvalidConfiguration("qt qttranslations option is required")

def system_requirements(self):
if self.settings.os == "Linux":
Expand Down

0 comments on commit affed58

Please sign in to comment.