Skip to main content
summaryrefslogtreecommitdiffstats
path: root/qt
diff options
context:
space:
mode:
authorDoug Schaefer2016-11-07 11:28:45 -0500
committerGerrit Code Review @ Eclipse.org2016-11-09 11:40:17 -0500
commite9beafae109ba3881b74b4e42dde0250508c0140 (patch)
tree402e1c0faf690a77ccc946a8567084242ea41d70 /qt
parent5cafc1413ab4ef1eb29648d8c2ca993a2c4a2685 (diff)
downloadorg.eclipse.cdt-e9beafae109ba3881b74b4e42dde0250508c0140.tar.gz
org.eclipse.cdt-e9beafae109ba3881b74b4e42dde0250508c0140.tar.xz
org.eclipse.cdt-e9beafae109ba3881b74b4e42dde0250508c0140.zip
Add Local Debug for Core Build launches. Qt Path var for Windows.
Adds gdb launching for Core Build launches. A common class is created for things common to run and debug (and probably others). At the bin directory containing qmake to the PATH var for builds and launches since that's where the DLLs are. Adds method and variable to GDBLaunch to override the default environment. Change-Id: I3ab3b48a2f99eaed50cdb4cfdc03959e9700abc5
Diffstat (limited to 'qt')
-rw-r--r--qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/internal/qt/core/build/QtBuildConfiguration.java32
1 files changed, 28 insertions, 4 deletions
diff --git a/qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/internal/qt/core/build/QtBuildConfiguration.java b/qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/internal/qt/core/build/QtBuildConfiguration.java
index 3236ea2af0..81ca2ccd00 100644
--- a/qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/internal/qt/core/build/QtBuildConfiguration.java
+++ b/qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/internal/qt/core/build/QtBuildConfiguration.java
@@ -60,6 +60,28 @@ public class QtBuildConfiguration extends CBuildConfiguration
private final String qtInstallSpec;
private IQtInstall qtInstall;
private Map<String, String> properties;
+
+ private IEnvironmentVariable pathVar = new IEnvironmentVariable() {
+ @Override
+ public String getValue() {
+ return getQmakeCommand().getParent().toString();
+ }
+
+ @Override
+ public int getOperation() {
+ return IEnvironmentVariable.ENVVAR_PREPEND;
+ }
+
+ @Override
+ public String getName() {
+ return "PATH";
+ }
+
+ @Override
+ public String getDelimiter() {
+ return File.pathSeparator;
+ }
+ };
public QtBuildConfiguration(IBuildConfiguration config, String name) throws CoreException {
super(config, name);
@@ -236,14 +258,16 @@ public class QtBuildConfiguration extends CBuildConfiguration
@Override
public IEnvironmentVariable getVariable(String name) {
- // TODO Auto-generated method stub
- return null;
+ if ("PATH".equals(name)) {
+ return pathVar;
+ } else {
+ return null;
+ }
}
@Override
public IEnvironmentVariable[] getVariables() {
- // TODO
- return new IEnvironmentVariable[0];
+ return new IEnvironmentVariable[] { pathVar };
}
@Override

Back to the top