file types: Difference between revisions

From Lazarus wiki
Jump to navigationJump to search
(New page: 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 version control. =...)
 
(Corrections and additions. Source: "Lazarus - The Complete Guide", pp 118, 237-239 and Howard-Page Clark's book.)
Line 1: Line 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 version control.
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 ==
== Types to add to VCS ==
Line 11: Line 11:
   <TR>  
   <TR>  
     <TD>.pas</TD>  
     <TD>.pas</TD>  
     <TD>Pascal source file</TD>  
     <TD>Pascal source code file</TD>  
   </TR>  
   </TR>  
   <TR>  
   <TR>  
     <TD>.pp</TD>  
     <TD>.pp</TD>  
     <TD>Pascal source file</TD>  
     <TD>Pascal source code file (useful if you want to avoid confusion with Delphi source code files).</TD>  
   </TR>
   </TR>
   <TR>  
   <TR>  
     <TD>.lfm</TD>  
     <TD>.lfm</TD>  
     <TD>Lazarus form source file</TD>  
     <TD>Lazarus '''f'''or'''m''' source file. Analogous to Delphi's dfm files.</TD>  
   </TR>  
   </TR>  
   <TR>  
   <TR>  
     <TD>.lpi</TD>  
     <TD>.lpi</TD>  
     <TD>Lazarus project file</TD>
     <TD>Lazarus '''p'''roject '''i'''nformation file. Created by Lazarus for every new project.</TD>  
  </TR>
  <TR>
    <TD>.lpk</TD>
    <TD>Lazarus project main source file</TD>  
   </TR>  
   </TR>  
   <TR>  
   <TR>  
     <TD>.lpr</TD>  
     <TD>.lpr</TD>  
     <TD>Lazarus package source file</TD>  
     <TD>Lazarus '''pr'''ogram (or '''p'''roject) file. The source code of the main program. Analogous to Delphi's dpr project file.</TD>  
   </TR>  
   </TR>  
   <TR>  
   <TR>  
     <TD>.rc</TD>  
     <TD>.rc</TD>  
     <TD>?? Resource file??</TD>  
     <TD>A Windows resource file (not binary)</TD>  
   </TR>  
   </TR>  
   <TR>  
   <TR>  
     <TD>.ico</TD>  
     <TD>.ico</TD>  
     <TD>Application icon image</TD>  
     <TD>The main project icon in Windows icon format</TD>  
   </TR>  
   </TR>  
   <TR>  
   <TR>  
     <TD>.manifest</TD>  
     <TD>.manifest</TD>  
     <TD>Windows manifest file for themes</TD>  
     <TD>Windows-specific manifest file for themes</TD>  
   </TR>  
   </TR>  
</TABLE>
</TABLE>
Line 56: Line 52:
   <TR>  
   <TR>  
     <TD>.lps</TD>  
     <TD>.lps</TD>  
     <TD>Lazarus session file</TD>  
     <TD>Lazarus '''p'''roject '''s'''ettings file. Created by Lazarus for every new project.</TD>
  </TR>
  <TR>
    <TD>.lrs</TD>
    <TD>Lazarus '''r'''e'''s'''ource file.</TD>  
   </TR>  
   </TR>  
   <TR>  
   <TR>  
Line 72: Line 72:
   <TR>  
   <TR>  
     <TD>.ppu</TD>  
     <TD>.ppu</TD>  
     <TD>Precompiled Unit file</TD>  
     <TD>A compiled Unit file</TD>  
   </TR>
   </TR>
   <TR>  
   <TR>  
     <TD>.res</TD>  
     <TD>.res</TD>  
     <TD>Lazarus resource file.</TD>  
     <TD>The result of compiling the rc file (binary)</TD>  
   </TR>
   </TR>
   <TR>  
   <TR>  

Revision as of 22:21, 31 January 2019

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.