2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2021 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2021-01-20 14:21:57 +01:00
|
|
|
|
|
|
|
|
#include "conansettings.h"
|
2021-03-26 17:50:14 +01:00
|
|
|
|
2021-01-28 16:38:12 +01:00
|
|
|
#include <utils/hostosinfo.h>
|
2021-01-20 14:21:57 +01:00
|
|
|
|
2021-03-26 17:50:14 +01:00
|
|
|
using namespace Utils;
|
|
|
|
|
|
2021-01-20 14:21:57 +01:00
|
|
|
namespace ConanPackageManager {
|
|
|
|
|
namespace Internal {
|
|
|
|
|
|
2021-03-26 17:50:14 +01:00
|
|
|
ConanSettings::ConanSettings()
|
2021-01-20 14:21:57 +01:00
|
|
|
{
|
2021-03-26 17:50:14 +01:00
|
|
|
setSettingsGroup("ConanSettings");
|
|
|
|
|
setAutoApply(false);
|
2021-01-20 14:21:57 +01:00
|
|
|
|
2021-03-26 17:50:14 +01:00
|
|
|
registerAspect(&conanFilePath);
|
|
|
|
|
conanFilePath.setSettingsKey("ConanFilePath");
|
|
|
|
|
conanFilePath.setDisplayStyle(StringAspect::PathChooserDisplay);
|
|
|
|
|
conanFilePath.setExpectedKind(PathChooser::ExistingCommand);
|
|
|
|
|
conanFilePath.setDefaultValue(HostOsInfo::withExecutableSuffix("conan"));
|
2021-01-20 14:21:57 +01:00
|
|
|
}
|
|
|
|
|
|
2021-03-26 17:50:14 +01:00
|
|
|
} // Internal
|
|
|
|
|
} // ConanPackageManager
|