Sign in Join
Wiki copytemporary

IDE Window: Configure Build file: what changed

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

OldNewLine
11Normally 'building' and 'running' menu items and shortcuts invokes building (running) the current project.
22
33With this dialog you can override this behaviour for each file. This is useful, if you created a small test program or a sub project. Then you can compile them without changing the project. These settings are stored with the project (.lpi file). They are not global settings.
44
55## Build / Run File
66
77The IDE can build and run single files instead of the project. For example when pressing the *Run* button, the IDE checks if you enabled this feature for the current source file in the source editor. If yes, the IDE executes the Run File command instead. The information how to build or run a file is stored as IDE directives in the source file itself and can be setup via the dialog described on this page (Run / Configure Build+Run File).
88
99### Options
1010
1111When this file is active in the source editor ...
1212
1313To override the behaviour for run and/or build by checking the appropriate checkbox.
1414
1515- On build project execute the Build File command instead
1616- On run project execute the Run File command instead
1717
1818### Build
1919
2020#### Working directory
2121
2222Before building, change to this directory. Relative paths in the build command will then be relative to this directory.
2323
2424#### Build Command
2525
2626Provide the command to call for building the file. The default is:
2727
28-` $(CompPath) $(EdFile)`
28+```text
29+ $(CompPath) $(EdFile)
30+```
2931
3032#### Scan for FPC messages
3133
3234Parse output for FPC errors and hints. The IDE will jump to errors.
3335
3436#### Scan for Make messages
3537
3638Parse output for 'Make' errors and hints. The IDE will jump to errors.
3739
3840#### Macros
3941
4042[[IDE Macros in paths and filenames]]
4143
4244### Run
4345
4446#### Always build before run
4547
4648If checked, the Build File command is executed before running.
4749
4850#### Working directory
4951
5052Before running, change to this directory. Relative paths in the run command will then be relative to this directory.
5153
5254#### Run Command
5355
5456Provide the command to call to run file. The default is:
5557
56-` $MakeExe($(EdFile))`
58+```text
59+ $MakeExe($(EdFile))
60+```
5761
5862#### Macros
5963
6064[[IDE Macros in paths and filenames]]
6165
6266## IDE directives
6367
6468- **BuildCommand**
6569- **BuildWorkingDir**
6670- **BuildScan**
6771- **RunCommand**
6872- **RunWorkingDir**
6973- **RunFlags**
7074
7175See [[IDE directives]].
7276
7377---
7478*From the Free Pascal wiki, page "IDE Window: Configure Build file", as it stood on 2021-01-29 after a change by Trev, 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