在Delphi XE中构建事件宏

Jan*_*rts 10 delphi build delphi-xe

根据Delphi的帮助文件,当我打开对话框以将构建事件添加到项目的选项时,对话框应该显示我可以在命令行上用于构建事件的宏(占位符)列表.当我在Delphi XE中尝试这个时,宏列表是空的.帮助文件没有说明哪些宏可用(我能找到).

那么,哪些宏可用?现在我需要一个宏来获取编译.exe文件的完整路径(后期构建),以及.dproj文件的完整路径.但我希望有一个完整的可用宏列表供将来参考.

Ken*_*ite 11

我不得不回到D2010来提出这个清单:

BDS                 The environment variable $(BDS)
DEFINES             The project's conditional defines
DIR                 The environment variable $(DIR)
INCLUDEPATH         The project's include path
INPUTDIR            The input file's directory
INPUTEXT            The input file's extension
INPUTFILENAME       The input file's name, with extension
INPUTPATH           The input file's full path
LOCALCOMMAND        Local command entered by user in project manager
OUTPUTDIR           The output file's directory
OUTPUTEXT           The output file's extension
OUTPUTFILENAME      The output file's name, with extension
OUTPUTNAME          The output file's name, without extension
OUTPUTPATH          The output file's full path
Path                The environment variable $(PATH)
PROJECTDIR          The project's directory
PROJECTEXT          The project's extension
PROJECTFILENAME     The project file's name, with extension
PROJECTNAME         The project's name
PROJECTPATH         The project file's full path
SAVE                Save the input file to disk before it's compiled
SystemRoot          The environment variable $(SYSTEMROOT)
WINDIR              The environment variable $(WINDIR)
Run Code Online (Sandbox Code Playgroud)