Note: this article is part of explaining compilation outside of IDE.
Using ecc32.exe/emake.exe/ecc32speed.exe with Delphi 2007+ is very easy. That's because Delphi 2007+ uses MS-Build tool and have pre/post-build commands - so calling of ecc32.exe/emake.exe/ecc32speed.exe can be performed automatically during build.
The simplest way to use ecc32.exe/emake.exe in Delphi 2007+ is to add a call to ecc32.exe/emake.exe/ecc32speed.exe to Pre-Build and Post-Build events:
(replace Studio16 with real name of your IDE)
Important Note: "Config" variable may be not available in your IDE. In this case - please, remove --el_profile switch from the command line.
See Post-processing without (re)compilation article for more information about used command-line switches.
Adding a call to ecc32/emake/ecc32speed to your project
If you do this - you'll no longer need to perform any special actions to build your project. It doesn't matter how you build it: manually (msbuild Project1.dproj /t:Win32 /p:config=Debug), with build server/tool - the ecc32.exe/emake.exe/ecc32speed.exe will be invoked automatically (as long as MS-Build is used).