Root > Advanced topics > Compiling your project with EurekaLog > Delphi 2007+

Delphi 2007+

Previous pageReturn to chapter overviewNext page   

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.

 

Note: do not confuse IDE build events and EurekaLog build events. This article uses only IDE build events.

 

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:

 

Delphi command-line compiler

 

Pre-Build Event:

"C:\Program Files (x86)\Neos Eureka S.r.l\EurekaLog 7\Packages\Studio16\ecc32.exe" "--el_prepare=$(PROJECTPATH)" "--el_profile=$(Config)"

 

Post-Build Event:

"C:\Program Files (x86)\Neos Eureka S.r.l\EurekaLog 7\Packages\Studio16\ecc32.exe" "--el_alter_exe=$(PROJECTPATH);$(OUTPUTPATH)" "--el_profile=$(Config)"

 

C++Builder command-line compiler (RAD Studio)

 

Post-Build Event:

"C:\Program Files (x86)\Neos Eureka S.r.l\EurekaLog 7\Packages\Studio16\ecc32.exe" "--el_alter_exe=$(PROJECTPATH);$(OUTPUTPATH)" "--el_profile=$(Config)" --el_mode=Builder

 

C++Builder command-line compiler

 

Post-Build Event:

"C:\Program Files (x86)\Neos Eureka S.r.l\EurekaLog 7\Packages\Builder6\emake.exe" "--el_alter_exe=$(PROJECTPATH);$(OUTPUTPATH)" "--el_profile=$(Config)"

 

(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.

 

For example:

 

 

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).

 

Notes:

If you build your project without MS-Build (by calling dcc32.exe/make.exe directly) - then this option will have no effect. And you'll still need to call ecc32.exe/emake.exe/ecc32speed.exe as explained here.
Some build tools (such as FinalBuilder) may ignore MS-Muild settings, thus pre- and post-build events will not run. And you'll still need to call ecc32.exe/emake.exe/ecc32speed.exe as explained here.
You may want to disable EurekaLog IDE expert assist when using manual pre/post-build events. See this and this articles for more information on reconfiguring your project for manual control.

 

 

See also:




Send feedback... Build date: 2018-11-26
Last edited: 2018-06-14
PRIVACY STATEMENT
The documentation team uses the feedback submitted to improve the EurekaLog documentation. We do not use your e-mail address for any other purpose. We will remove your e-mail address from our system after the issue you are reporting has been resolved. While we are working to resolve this issue, we may send you an e-mail message to request more information about your feedback. After the issues have been addressed, we may send you an email message to let you know that your feedback has been addressed.


Permanent link to this article: https://www.eurekalog.com/help/eurekalog/delphi_2007.php