mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
theide: Internal include now used for all packages
git-svn-id: svn://ultimatepp.org/upp/trunk@1346 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
0dfde73755
commit
13c7c8db4e
3 changed files with 9 additions and 11 deletions
|
|
@ -282,6 +282,12 @@ One<Builder> MakeBuild::CreateBuilder(Host *host)
|
|||
b->host = host;
|
||||
b->compiler = bm.Get("COMPILER", "");
|
||||
b->include = SplitDirs(GetVar("UPP") + ';' + bm.Get("INCLUDE", ""));
|
||||
const Workspace& wspc = GetIdeWorkspace();
|
||||
for(int i = 0; i < wspc.GetCount(); i++) {
|
||||
const Package& pkg = wspc.GetPackage(i);
|
||||
for(int j = 0; j < pkg.include.GetCount(); j++)
|
||||
b->include.Add(SourcePath(wspc[i], pkg.include[j].text));
|
||||
}
|
||||
b->libpath = SplitDirs(bm.Get("LIB", ""));
|
||||
b->debug_options = bm.Get("DEBUG_OPTIONS", "");
|
||||
b->release_options = bm.Get("RELEASE_OPTIONS", "");
|
||||
|
|
|
|||
|
|
@ -335,11 +335,6 @@ String CppBuilder::Includes(const char *sep, const String& package, const Packag
|
|||
String cc;
|
||||
for(int i = 0; i < include.GetCount(); i++)
|
||||
cc << sep << GetHostPathQ(include[i]);
|
||||
for(int i = 0; i < pkg.include.GetCount(); i++) {
|
||||
const OptItem& m = pkg.include[i];
|
||||
if(MatchWhen(m.when, config.GetKeys()))
|
||||
cc << sep << GetHostPathQ(SourcePath(package, m.text));
|
||||
}
|
||||
return cc;
|
||||
}
|
||||
|
||||
|
|
@ -348,11 +343,6 @@ String CppBuilder::IncludesShort(const char *sep, const String& package, const P
|
|||
String cc;
|
||||
for(int i = 0; i < include.GetCount(); i++)
|
||||
cc << sep << GetHostPathShortQ(include[i]);
|
||||
for(int i = 0; i < pkg.include.GetCount(); i++) {
|
||||
const OptItem& m = pkg.include[i];
|
||||
if(MatchWhen(m.when, config.GetKeys()))
|
||||
cc << sep << GetHostPathShortQ(SourcePath(package, m.text));
|
||||
}
|
||||
return cc;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@ void PackageEditor::OptionAdd(ArrayCtrl& option, int type, const char *title, co
|
|||
{
|
||||
if(o.GetCount() == 0)
|
||||
return;
|
||||
option.Add(-1, -1, "when", title);
|
||||
option.Add(-1, -1, type == INCLUDE ? "" : "when", title);
|
||||
option.SetDisplay(option.GetCount() - 1, 0, Single<OptionHeaderDisplay>());
|
||||
option.SetDisplay(option.GetCount() - 1, 1, Single<OptionHeaderDisplay>());
|
||||
for(int i = 0; i < o.GetCount(); i++) {
|
||||
|
|
@ -248,6 +248,7 @@ void PackageEditor::AddOption(int type)
|
|||
WithUppOptDlg<TopWindow> dlg;
|
||||
CtrlLayoutOKCancel(dlg, opt_name[type]);
|
||||
dlg.when.SetFilter(CondFilter);
|
||||
dlg.when.Enable(type != INCLUDE);
|
||||
if(dlg.Run() != IDOK)
|
||||
return;
|
||||
SetOpt(option, type, opt[type]->Add(), ~dlg.when, ~dlg.text);
|
||||
|
|
@ -290,6 +291,7 @@ void PackageEditor::EditOption()
|
|||
if(i >= 0 && i < m.GetCount()) {
|
||||
WithUppOptDlg<TopWindow> dlg;
|
||||
CtrlLayoutOKCancel(dlg, opt_name[type]);
|
||||
dlg.when.Enable(type != INCLUDE);
|
||||
dlg.when <<= m[i].when;
|
||||
dlg.text <<= m[i].text;
|
||||
if(dlg.Run() != IDOK)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue