Skip to main content
summaryrefslogtreecommitdiffstats
path: root/qt
diff options
context:
space:
mode:
authorDoug Schaefer2016-02-28 01:16:34 +0000
committerGerrit Code Review @ Eclipse.org2016-02-28 02:06:15 +0000
commit3ec5060d54e259c419a4d388f1019b40877f74cf (patch)
tree329ce109b435b9c2ea313e3a0fc198632f9fefb3 /qt
parentc1c656bda8db777ed4ba9adba91d0def6f5645d9 (diff)
downloadorg.eclipse.cdt-3ec5060d54e259c419a4d388f1019b40877f74cf.tar.gz
org.eclipse.cdt-3ec5060d54e259c419a4d388f1019b40877f74cf.tar.xz
org.eclipse.cdt-3ec5060d54e259c419a4d388f1019b40877f74cf.zip
Qt - remove hardcoding of app name in build config.
Diffstat (limited to 'qt')
-rw-r--r--qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/qt/core/QtBuildConfiguration.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/qt/core/QtBuildConfiguration.java b/qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/qt/core/QtBuildConfiguration.java
index 5673442bbf4..881400776ef 100644
--- a/qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/qt/core/QtBuildConfiguration.java
+++ b/qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/qt/core/QtBuildConfiguration.java
@@ -113,19 +113,20 @@ public class QtBuildConfiguration extends CBuildConfiguration {
}
public Path getProgramPath() throws CoreException {
+ String projectName = getProject().getName();
switch (Platform.getOS()) {
case Platform.OS_MACOSX:
// TODO this is mac local specific and really should be
// in the config
// TODO also need to pull the app name out of the pro
// file name
- Path appFolder = getBuildDirectory().resolve("main.app");
+ Path appFolder = getBuildDirectory().resolve(projectName + ".app");
Path contentsFolder = appFolder.resolve("Contents");
Path macosFolder = contentsFolder.resolve("MacOS");
- return macosFolder.resolve("main");
+ return macosFolder.resolve(projectName);
case Platform.OS_WIN32:
Path releaseFolder = getBuildDirectory().resolve("release");
- return releaseFolder.resolve("main.exe");
+ return releaseFolder.resolve(projectName + ".exe");
default:
throw new CoreException(
new Status(IStatus.ERROR, Activator.ID, "platform not supported: " + Platform.getOS()));

Back to the top