mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-15 22:02:51 -06:00
Fixed Build/Clean *wrong* package bug
git-svn-id: svn://ultimatepp.org/upp/trunk@1076 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
c980cf187a
commit
2a2b650064
1 changed files with 10 additions and 2 deletions
|
|
@ -73,11 +73,19 @@ void Ide::DoBuild()
|
|||
Build();
|
||||
}
|
||||
|
||||
int Find(const Workspace& wspc, const FileList& package)
|
||||
{
|
||||
for(int i = 0; i < wspc.GetCount(); i++)
|
||||
if(wspc[i] == package.GetCurrentName())
|
||||
return i;
|
||||
return -1;
|
||||
}
|
||||
|
||||
void Ide::PackageBuild()
|
||||
{
|
||||
BeginBuilding(true, true);
|
||||
int pi = package.GetCursor();
|
||||
const Workspace& wspc = IdeWorkspace();
|
||||
int pi = Find(wspc, package);
|
||||
if(pi >= 0 && pi <= wspc.GetCount()) {
|
||||
Vector<String> linkfile;
|
||||
String linkopt;
|
||||
|
|
@ -102,8 +110,8 @@ String Ide::GetOutputDir()
|
|||
|
||||
void Ide::PackageClean()
|
||||
{
|
||||
int pi = package.GetCursor();
|
||||
const Workspace& wspc = IdeWorkspace();
|
||||
int pi = Find(wspc, package);
|
||||
if(pi >= 0 && pi < wspc.GetCount()) {
|
||||
console.Clear();
|
||||
CleanPackage(wspc, pi);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue