file types
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.
Types to add to VCS
Extension
Description
.pas
Pascal source code file
.pp
Pascal source code file (useful if you want to avoid confusion with Delphi source code files).
.lfm
Lazarus form source file. Analogous to Delphi's dfm files.
.lpi
Lazarus project information file. Created by Lazarus for every new project.
.lpr
Lazarus program (or project) file. The source code of the main program. Analogous to Delphi's dpr project file.
.rc
A Windows resource file (not binary)
.ico
The main project icon in Windows icon format
.manifest
Windows-specific manifest file for themes
Types usually not added to VCS
Extension
Description
.lps
Lazarus project settings file. Created by Lazarus for every new project.
.lrs
Lazarus resource file.
.compiled
FPC compilation state
.o
Object file
.or
Object file
.ppu
A compiled Unit file
.res
The result of compiling the rc file (binary)
.rst
Compiled resource strings. Used for L10n. If you intend to translate an application, this should probably be version controlled.
An example .gitignore file for Lazarus/Free Pascal
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.
Talk about this page
Nobody has opened a bench for this page yet. Sign in to open one.
