Note: this article is part of explaining compilation outside of IDE.
Important Note: usually, you call ecc32.exe/emake.exe from [EurekaLog installation folder]\Packages\[IDE name]\ folder or from \bin folder of your IDE. That way ecc32.exe/emake.exe will know which IDE you are using. However, if you are calling ecc32.exe/emake.exe from \bin folder of EurekaLog, or if you copy ecc32.exe/emake.exe to another folder - then it will NOT know which IDE you are using. You have to supply --el_ide command line switch to indicate what IDE should be used.
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
"C:\Program Files (x86)\Neos Eureka S.r.l\EurekaLog 7\Packages\Studio16\ecc32.exe" "--el_prepare=$(PROJECTPATH)" "--el_profile=$(Config)"
"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)
"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
(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).
|•||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.|
Build date: 2021-02-14
Last edited: 2020-04-21
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