当前位置: 首页>>代码示例>>C++>>正文


C++ Target::profile方法代码示例

本文整理汇总了C++中projectexplorer::Target::profile方法的典型用法代码示例。如果您正苦于以下问题:C++ Target::profile方法的具体用法?C++ Target::profile怎么用?C++ Target::profile使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在projectexplorer::Target的用法示例。


在下文中一共展示了Target::profile方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: QString

QString Qt4UiCodeModelSupport::uicCommand() const
{
    QtSupport::BaseQtVersion *version;
    if (m_project->needsConfiguration()) {
        version = QtSupport::QtProfileInformation::qtVersion(ProjectExplorer::ProfileManager::instance()->defaultProfile());
    } else {
        ProjectExplorer::Target *target = m_project->activeTarget();
        version = QtSupport::QtProfileInformation::qtVersion(target->profile());
    }
    return version ? version->uicCommand() : QString();
}
开发者ID:KDE,项目名称:android-qt-creator,代码行数:11,代码来源:qtuicodemodelsupport.cpp

示例2: startParameters

Debugger::DebuggerStartParameters BlackBerryRunControlFactory::startParameters(
    const BlackBerryRunConfiguration *runConfig)
{
    Debugger::DebuggerStartParameters params;
    ProjectExplorer::Target *target = runConfig->target();
    ProjectExplorer::Profile *profile = target->profile();

    params.startMode = Debugger::AttachToRemoteServer;
    params.debuggerCommand = Debugger::DebuggerProfileInformation::debuggerCommand(profile).toString();
    params.sysRoot = ProjectExplorer::SysRootProfileInformation::sysRoot(profile).toString();

    if (ProjectExplorer::ToolChain *tc = ProjectExplorer::ToolChainProfileInformation::toolChain(profile)) {
        params.toolChainAbi = tc->targetAbi();
        params.remoteArchitecture = ProjectExplorer::Abi::toString(tc->targetAbi().architecture());
    }

    params.executable = runConfig->localExecutableFilePath();
    params.remoteChannel = runConfig->deployConfiguration()->deviceHost() + QLatin1String(":8000");
    params.displayName = runConfig->displayName();
    params.remoteSetupNeeded = true;

    if (runConfig->debuggerAspect()->useQmlDebugger()) {
        BlackBerryDeviceConfiguration::ConstPtr device = BlackBerryDeviceConfiguration::device(runConfig->target()->profile());
        if (device) {
            params.qmlServerAddress = device->sshParameters().host;
            params.qmlServerPort = runConfig->debuggerAspect()->qmlDebugServerPort();
            params.languages |= Debugger::QmlLanguage;
        }
    }
    if (runConfig->debuggerAspect()->useCppDebugger())
        params.languages |= Debugger::CppLanguage;

    if (const ProjectExplorer::Project *project = runConfig->target()->project()) {
        params.projectSourceDirectory = project->projectDirectory();
        if (const ProjectExplorer::BuildConfiguration *buildConfig = runConfig->target()->activeBuildConfiguration()) {
            params.projectBuildDirectory = buildConfig->buildDirectory();
        }
        params.projectSourceFiles = project->files(ProjectExplorer::Project::ExcludeGeneratedFiles);
    }

    BlackBerryQtVersion *qtVersion =
        dynamic_cast<BlackBerryQtVersion *>(QtSupport::QtProfileInformation::qtVersion(profile));
    if (qtVersion)
        params.solibSearchPath = QnxUtils::searchPaths(qtVersion);

    return params;
}
开发者ID:KDE,项目名称:android-qt-creator,代码行数:47,代码来源:blackberryruncontrolfactory.cpp


注:本文中的projectexplorer::Target::profile方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。