Skip to content

Commit

Permalink
makefile-project-workspace-creator: add explicit perl dependency for v1
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Nov 6, 2023
1 parent 64be108 commit 7ecb804
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
from conan import ConanFile
from conan import ConanFile, conan_version
from conan.tools.layout import basic_layout


class TestPackageConan(ConanFile):
settings = "os", "arch", "compiler", "build_type"
generators = "VirtualBuildEnv"
generators = "VirtualBuildEnv", "VirtualRunEnv"
test_type = "explicit"

def layout(self):
basic_layout(self)

def build_requirements(self):
self.tool_requires(self.tested_reference_str)
if conan_version.major < 2 and self.settings.os == "Windows":
self.tool_requires("strawberryperl/5.32.1.1")

def test(self):
self.run("perl -S mpc.pl --version")
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ class DefaultNameConan(ConanFile):
def build(self):
pass

def build_requirements(self):
self.tool_requires("strawberryperl/5.32.1.1")

def test(self):
if not tools.cross_building(self.settings):
self.run("perl -S mpc.pl --version", run_environment=True)

0 comments on commit 7ecb804

Please sign in to comment.