Sign in Join
Wiki copytemporary

Lazarus Delphi Compiler Tool: what changed

Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
11## Synopsis
22
33The Lazarus Delphi tool allows you to compile with the Delphi compiler instead of the FPC compiler.
44
55It defines a message parser which will allow you to click on a compiler message and be taken to the correct location in the sources. The filenames in compiler output can be converted from windows to unix notation, taking into account the Wine emulator drive configuration.
66
77It also allows to write a configuration file based on the FPC compiler options: Whenever the project is compiled, it writes a configuration file usable for the Delphi compiler, which you can include in the compiler command. The file has the same name as the **.lpi** file, with adifferent extension (configurable, default **.conf**).
88
99## Installation
1010
1111The package file **components/compilers/delphi/lazdelphi.lpk** needs to be installed.
1212
1313## Usage
1414
1515The package defines 4 macros:
1616
1717DCC
1818The delphi compiler executable path, as set in the global settings.
1919
2020DCCCONFIG
2121If the 'Generate compiler configuration' settting is checked, this contains the generated delphi compiler configuration file, prepended with @.
2222
2323If the setting is not set, the macro will be empty.
2424
2525DCCARGS
2626The combined values of the global and project 'Extra compiler arguments' settings.
2727
2828DCCCOMPILE
2929This is equivalent to **\$(DCC) \$(DCCCONFIG) \$(DCCARGS)**.
3030
3131These can be used in the pre compiler command: Here you must do 3 things;
3232
3333- specify the macro you wish in the *Execute before* command
3434- Select the 'Delphi compiler' parser in the *Execute before* command
3535- Disable calling the compiler
3636
3737A sample is visible in the following image
3838
39-<figure>
40-<img src="delphicompilercommands.png" title="delphicompilercommands.png" />
41-<figcaption>delphicompilercommands.png</figcaption>
42-</figure>
39+![](/wiki-images/a/a4/Delphicompilercommands.png)
4340
4441## Global Settings
4542
4643The following things can be set in the **Tools -- Options** menu:
4744
4845- **Delphi compiler executable** - the path to the delphi compiler.
4946- **Configuration file extension** - the extension of the configuration file.
5047- **Map filenames from Windows to Unit notation** on unix-like options, when set, any filenames in compiler output will be converted from Windows to Unix notation.
5148- **Additional compiler options** - use this to specify delphi command-line options common to all Delphi projects, for example the location of the linker or the library path.
5249
53-<figure>
54-<img src="idedelphisettings.png" title="idedelphisettings.png" />
55-<figcaption>idedelphisettings.png</figcaption>
56-</figure>
50+![](/wiki-images/c/ca/Idedelphisettings.png)
5751
5852## Project settings
5953
6054The following things can be set in the **Project options** menu:
6155
6256- **Generate Delphi config file based on FPC compiler options** as the name says, when checked a configuration file will be generated for the project whenever it is compiled.
6357- **Additional compiler options** - use this to specify delphi command-line options specific to the current project.
6458
65-<figure>
66-<img src="projectdelphioptions.png" title="projectdelphioptions.png" />
67-<figcaption>projectdelphioptions.png</figcaption>
68-</figure>
59+![](/wiki-images/1/1f/Projectdelphioptions.png)
6960
7061---
7162*From the Free Pascal wiki, page "Lazarus Delphi Compiler Tool", as it stood on 2023-05-15 after a change by Michael, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history