forked from qt-creator/qt-creator
McuSupport: Separate toolchain file and compiler packages
Toolchain package represents information about compiler and toolchain file (.cmake). This information is parsed from JSON and used for Kit creation. This includes cmake variables, path to compiler. This patch extracts information about toolchain file into separate McuPackage. Change-Id: Id165bdc5afa5d7cf5b5c96620e11cb878254c181 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -39,12 +39,14 @@ McuTarget::McuTarget(const QVersionNumber &qulVersion,
|
||||
OS os,
|
||||
const Packages &packages,
|
||||
const McuToolChainPackagePtr &toolChainPackage,
|
||||
const McuPackagePtr &toolChainFilePackage,
|
||||
int colorDepth)
|
||||
: m_qulVersion(qulVersion)
|
||||
, m_platform(platform)
|
||||
, m_os(os)
|
||||
, m_packages(packages)
|
||||
, m_toolChainPackage(toolChainPackage)
|
||||
, m_toolChainFilePackage(toolChainFilePackage)
|
||||
, m_colorDepth(colorDepth)
|
||||
{}
|
||||
|
||||
@@ -58,6 +60,11 @@ McuToolChainPackagePtr McuTarget::toolChainPackage() const
|
||||
return m_toolChainPackage;
|
||||
}
|
||||
|
||||
McuPackagePtr McuTarget::toolChainFilePackage() const
|
||||
{
|
||||
return m_toolChainFilePackage;
|
||||
}
|
||||
|
||||
McuTarget::OS McuTarget::os() const
|
||||
{
|
||||
return m_os;
|
||||
|
||||
Reference in New Issue
Block a user