mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
ide: Custom build steps: $(FILEDIR) macro
git-svn-id: svn://ultimatepp.org/upp/trunk@4254 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
c7c91b90e9
commit
9eeabe0635
2 changed files with 2 additions and 0 deletions
|
|
@ -242,6 +242,7 @@ Vector<String> CppBuilder::CustomStep(const String& pf, const String& package_,
|
|||
AddPath(mac, "PATH", file);
|
||||
AddPath(mac, "RELPATH", pf);
|
||||
AddPath(mac, "DIR", GetFileFolder(PackagePath(package)));
|
||||
AddPath(mac, "FILEDIR", GetFileFolder(file));
|
||||
AddPath(mac, "PACKAGE", package);
|
||||
mac.Add("FILE", GetFileName(file));
|
||||
mac.Add("TITLE", GetFileTitle(file));
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ void Custom::DoMenu(Button& b, Callback1<String> cb, bool cmd) {
|
|||
String sample = SourcePath(pk, samplefile);
|
||||
menu.Add("Input file path (like '" + UnixPath(sample) + "')", callback1(cb, "$(PATH)"));
|
||||
menu.Add("Input file package-relative path (like '" + samplefile + "')", callback1(cb, "$(RELPATH)"));
|
||||
menu.Add("Input file directory (like '" + samplefile + "')", callback1(cb, "$(FILEDIR)"));
|
||||
menu.Add("Package directory (like '" + UnixPath(GetFileFolder(sample)) + "')", callback1(cb, "$(DIR)"));
|
||||
menu.Add("Input file name (like '" + GetFileName(sample) + "')", callback1(cb, "$(FILE)"));
|
||||
menu.Add("Input file title (like '" + GetFileTitle(sample) + "')", callback1(cb, "$(TITLE)"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue