File types: what changed
Revision 5 to 6. Removed lines have a minus sign; added lines have a plus sign.
Title: File types file types
| Old | New | Line | |
|---|---|---|---|
| 1 | - | ||
| 1 | + | This page is a summary of the file types created by FPC and Lazarus. The main purpose is to make it easy to find out whether or not a particular file should be added to a Version Control System (VCS) like SVN or Git. | |
| 2 | 2 | ||
| 3 | - | ||
| 3 | + | ## Types to add to VCS | |
| 4 | 4 | ||
| 5 | - | ||
| 5 | + | Extension | |
| 6 | 6 | ||
| 7 | - | ||
| 7 | + | Description | |
| 8 | 8 | ||
| 9 | - | ||
| 9 | + | .pas | |
| 10 | 10 | ||
| 11 | - | ||
| 11 | + | Pascal source code file | |
| 12 | 12 | ||
| 13 | - | ||
| 13 | + | .pp | |
| 14 | 14 | ||
| 15 | - | ||
| 15 | + | Pascal source code file (useful if you want to avoid confusion with Delphi source code files). | |
| 16 | 16 | ||
| 17 | - | ||
| 17 | + | .lfm | |
| 18 | 18 | ||
| 19 | - | ||
| 19 | + | Lazarus **f**or**m** source file. Analogous to Delphi's dfm files. | |
| 20 | 20 | ||
| 21 | - | ||
| 21 | + | .lpi | |
| 22 | 22 | ||
| 23 | - | ||
| 23 | + | Lazarus **p**roject **i**nformation file. Created by Lazarus for every new project. | |
| 24 | 24 | ||
| 25 | - | ||
| 25 | + | .lpr | |
| 26 | 26 | ||
| 27 | - | ||
| 27 | + | Lazarus **pr**ogram (or **p**roject) file. The source code of the main program. Analogous to Delphi's dpr project file. | |
| 28 | 28 | ||
| 29 | - | ||
| 29 | + | .rc | |
| 30 | 30 | ||
| 31 | - | ||
| 31 | + | A Windows resource file (not binary) | |
| 32 | 32 | ||
| 33 | + | .ico | |
| 34 | + | ||
| 35 | + | The main project icon in Windows icon format | |
| 36 | + | ||
| 37 | + | .manifest | |
| 38 | + | ||
| 39 | + | Windows-specific manifest file for themes | |
| 40 | + | ||
| 41 | + | ## Types usually not added to VCS | |
| 42 | + | ||
| 43 | + | Extension | |
| 44 | + | ||
| 45 | + | Description | |
| 46 | + | ||
| 47 | + | .lps | |
| 48 | + | ||
| 49 | + | Lazarus **p**roject **s**ettings file. Created by Lazarus for every new project. | |
| 50 | + | ||
| 51 | + | .lrs | |
| 52 | + | ||
| 53 | + | Lazarus **r**e**s**ource file. | |
| 54 | + | ||
| 55 | + | .compiled | |
| 56 | + | ||
| 57 | + | FPC compilation state | |
| 58 | + | ||
| 59 | + | .o | |
| 60 | + | ||
| 61 | + | Object file | |
| 62 | + | ||
| 63 | + | .or | |
| 64 | + | ||
| 65 | + | Object file | |
| 66 | + | ||
| 67 | + | .ppu | |
| 68 | + | ||
| 69 | + | A compiled Unit file | |
| 70 | + | ||
| 71 | + | .res | |
| 72 | + | ||
| 73 | + | The result of compiling the rc file (binary) | |
| 74 | + | ||
| 75 | + | .rst | |
| 76 | + | ||
| 77 | + | Compiled resource strings. Used for L10n. If you intend to translate an application, this should probably be version controlled. | |
| 78 | + | ||
| 79 | + | ## An example .gitignore file for Lazarus/Free Pascal | |
| 80 | + | ||
| 81 | + | [Lazarus.gitignore](https://github.com/github/gitignore/blob/master/Global/Lazarus.gitignore) | |
| 82 | + | ||
| 33 | 83 | --- | |
| 34 | - | ||
| 84 | + | *From the Free Pascal wiki, page "file types", as it stood on 2019-12-16 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).* | |
| 85 | + | Category: Lazarus |
