mirror of https://github.com/buggins/dlangide.git
support targetPath parameter in dub.json; use project dir if not specified; close #173
This commit is contained in:
parent
b1ece5d64f
commit
7a8b03109c
2
dub.json
2
dub.json
|
@ -12,7 +12,7 @@
|
||||||
"stringImportPaths": ["views", "views/res", "views/res/i18n", "views/res/mdpi", "views/res/hdpi"],
|
"stringImportPaths": ["views", "views/res", "views/res/i18n", "views/res/mdpi", "views/res/hdpi"],
|
||||||
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"dlangui": "==0.9.16",
|
"dlangui": "==0.9.18",
|
||||||
"dcd": "~>0.9.0-alpha4"
|
"dcd": "~>0.9.0-alpha4"
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -488,8 +488,12 @@ class Project : WorkspaceItem {
|
||||||
version (Windows) {
|
version (Windows) {
|
||||||
exename = exename ~ ".exe";
|
exename = exename ~ ".exe";
|
||||||
}
|
}
|
||||||
// TODO: use targetPath
|
string targetPath = _projectFile.getString("targetPath", null);
|
||||||
string exePath = buildNormalizedPath(_filename.dirName, "bin", exename);
|
string exePath;
|
||||||
|
if (targetPath.length)
|
||||||
|
exePath = buildNormalizedPath(_filename.dirName, targetPath, exename); // int $targetPath directory
|
||||||
|
else
|
||||||
|
exePath = buildNormalizedPath(_filename.dirName, exename); // in project directory
|
||||||
return exePath;
|
return exePath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue