QtCreator 构建步骤变量名称是什么(例如 %{buildDir})? [英] What are QtCreator build step variable names (such as %{buildDir})?

查看:68
本文介绍了QtCreator 构建步骤变量名称是什么(例如 %{buildDir})?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我指定了一个将在项目目录中运行的构建步骤.所以如果这应该在一般情况下工作,我需要一个代表项目目录的符号,类似于 %{buildDir},它代表构建目录.

I am specifying a build step which shall run in the project directory. So if this is supposed to work in general, I need a symbol representing project directory, similar to %{buildDir}, which represents the build directory.

变量按钮.他们的屏幕截图或我看到的 GUI 中没有出现这样的按钮.

Variables button. No such button appears on their screenshots or in the GUI I see.

我很感激 QtCreator 定义的完整变量列表 - 如项目路径、目标可执行文件路径、项目 .pro 文件名等.

I would appreciate full list of variables defined by QtCreator - like project path, target executable path, project .pro filename and so on.

推荐答案

可以在 此处,在 Stack Overflow 上找到答案.

您提到的按钮确实在构建设置中不可见.文档对此不一致.幸运的是,正如您在上面链接的答案中看到的那样 - Variables 按钮在选项中可用.

It is true that the button you mention is not visible in build settings. Documentation is inconsistent about this. Fortunately as you can see in the answer linked above - the Variables button is available in options.

令人遗憾的是,提及此问题的错误并未得到修复,因为有许多其他帖子像你一样.除了错误报告之外,我看不到其他方法可以使丢失的 Variables 按钮出现在 Qt Creator 的构建设置页面上.

It is sad that a bug mentioning this is not being fixed as there are many other posts like yours. Beside bug report I see no other way to make missing Variables button appear on the build settings page in Qt Creator.

这篇关于QtCreator 构建步骤变量名称是什么(例如 %{buildDir})?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆