Skip to content

Commit

Permalink
Add QuickPrivate module
Browse files Browse the repository at this point in the history
  • Loading branch information
bog-dan-ro committed Aug 9, 2023
1 parent b6bf78a commit db4432f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion recipes/qt/5.x.x/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -951,6 +951,8 @@ def _create_private_module(module, dependencies=[]):

if self.options.qtdeclarative:
_create_private_module("Qml", ["CorePrivate", "Qml"])
if self.options.gui:
_create_private_module("Quick", ["CorePrivate", "GuiPrivate", "QmlPrivate", "Quick"])

def package_info(self):
self.cpp_info.set_property("cmake_file_name", "Qt5")
Expand Down Expand Up @@ -1047,7 +1049,7 @@ def _create_plugin(pluginname, libname, plugintype, requires):
"exec_prefix=${prefix}",
]
self.cpp_info.components["qtCore"].set_property("pkg_config_custom_content", "\n".join(pkg_config_vars))

if self.settings.os == "Windows":
module = "WinMain"
componentname = f"qt{module}"
Expand Down Expand Up @@ -1220,6 +1222,7 @@ def _create_plugin(pluginname, libname, plugintype, requires):
self.cpp_info.components["qtQmlImportScanner"].requires = _get_corrected_reqs(["Qml"])
if self.options.gui:
_create_module("Quick", ["Gui", "Qml", "QmlModels"])
_add_build_module("qtQuick", self._cmake_qt5_private_file("Quick"))
if self.options.widgets:
_create_module("QuickWidgets", ["Gui", "Qml", "Quick", "Widgets"])
_create_module("QuickShapes", ["Gui", "Qml", "Quick"])
Expand Down
3 changes: 3 additions & 0 deletions recipes/qt/6.x.x/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,8 @@ def _create_private_module(module, dependencies):

if self.options.qtdeclarative:
_create_private_module("Qml", ["CorePrivate", "Qml"])
if self.options.gui and self.options.qtshadertools:
_create_private_module("Quick", ["CorePrivate", "GuiPrivate", "QmlPrivate", "Quick"])

if self.settings.os in ["Windows", "iOS"]:
contents = textwrap.dedent("""\
Expand Down Expand Up @@ -1094,6 +1096,7 @@ def _create_plugin(pluginname, libname, plugintype, requires):
self.cpp_info.components["qtQmlImportScanner"].requires = _get_corrected_reqs(["Qml"])
if qt_quick_enabled:
_create_module("Quick", ["Gui", "Qml", "QmlModels"])
_add_build_module("qtQuick", self._cmake_qt6_private_file("Quick"))
if self.options.widgets:
_create_module("QuickWidgets", ["Gui", "Qml", "Quick", "Widgets"])
_create_module("QuickShapes", ["Gui", "Qml", "Quick"])
Expand Down

0 comments on commit db4432f

Please sign in to comment.