Skip to content

Commit

Permalink
qt-advanced-docking-system: self.tool_requires("qt/<host_version>")
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Nov 1, 2023
1 parent 77d3a6e commit 6dd5614
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion recipes/qt-advanced-docking-system/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
from conan.errors import ConanInvalidConfiguration
from conan.tools.build import check_min_cppstd
from conan.tools.cmake import CMake, CMakeDeps, CMakeToolchain, cmake_layout
from conan.tools.env import VirtualBuildEnv
from conan.tools.files import apply_conandata_patches, copy, export_conandata_patches, get, replace_in_file, rmdir
from conan.tools.scm import Version

required_conan_version = ">=1.53.0"
required_conan_version = ">=1.56.0 <2 || >=2.0.6"


class QtADS(ConanFile):
Expand Down Expand Up @@ -75,10 +76,16 @@ def validate(self):
f"{self.ref} requires C++{self._min_cppstd}, which your compiler does not support."
)

def build_requirements(self):
# Qt uses rcc during the build
self.tool_requires("qt/<host_version>")

def source(self):
get(self, **self.conan_data["sources"][self.version], strip_root=True)

def generate(self):
env = VirtualBuildEnv(self)
env.generate()
tc = CMakeToolchain(self)
tc.cache_variables["ADS_VERSION"] = self.version
tc.variables["BUILD_EXAMPLES"] = "OFF"
Expand Down

0 comments on commit 6dd5614

Please sign in to comment.