Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delphi file types

I am looking for a list of all file types that can be associated to a Delphi project (all versions of Delphi), more specifically all file types that should be under source control.

This site doesn't mention Delphi 2009 so I'm not sure if there may be new file types.

Is there maybe such a list directly from Codegear?


Putting all the answers together, here is a list:

Files -> Source Control

  • .bdsgroup - Project Group
  • .bdsproj - Project
  • .bpg - Project Group
  • .cfg - Project Configuration
  • .dfm - Delphi Form
  • .dof - Project Options
  • .dpk - Package
  • .dpr - Project
  • .dproj - Project
  • .pas - Pascal File
  • .res - Resource File
  • .todo - IDE Todo

I am not sure about these: Should they be included?

  • .dem
  • .dro
  • .local

Maybe there is anything still missing?

like image 352
Holgerwa Avatar asked Jan 13 '09 09:01

Holgerwa


People also ask

What are Delphi files?

In short, a Delphi project is just a collection of files that make up an application created by Delphi. DPR is the file extension used for the Delphi Project file format to store all the files related to the project. This includes other Delphi file types like Form files (DFMs) and Unit Source files (. PASs).

What is a DPR file?

Project file created by Delphi, a software IDE often used for building Windows applications; used as the main source code file that is the entry point for the application; may contain references to other source code files in the project.


3 Answers

Prior to Prism:

  • .pas is the source code - been that way in all versions
  • .dcu delphi compiled unit (compiled .pas file)
  • .dfm delphi form
  • .dpr Delphi project
  • .res resource file
  • .dpk delphi package
  • .dcp compiled version of dpk
  • .dpl/.bpl Windows DLL with Delphi specifics in it
  • .BPG, .BDSGROUP Borland Project group
  • .dcr compiled version of .res
  • .dof settings for solution
  • .dsk settings for IDE specific to the solution (i.e. what windows are open)
  • .dro This text file contains information about the object repository.
  • .dmt This proprietary binary file contains the shipped and user-defined menu templates information
  • .tlb Type library
  • .dem This text file contains some standard country-specific formats for a TMaskEdit component

From my limited work with Prism it seems

  • .pas is the source code - includes forms now
  • .dproj Delphi project
  • .resx resource file
  • .vsproj delphi package
like image 54
Robert MacLean Avatar answered Oct 23 '22 10:10

Robert MacLean


Just a couple of extra ones that should not be included (at least I don't.):

  • .drc - generated on every compile (list of bound resources)
  • .map - map file
  • .dproj.local
  • .identcache
  • .groupproj.local

Ones that should:

  • .todo - Project todo file for IDE.
  • .inc - Delphi/Pascal Include files.

Others that depend on what your storing:

  • .groupproj - Delphi group of projects file
like image 25
Aikislave Avatar answered Oct 23 '22 10:10

Aikislave


Here's a guide for setting up Subversion with Delphi. He uses this "Global Ignore Patterns" file filter for subversion:

I use

*.dcu *.~* dcu temp *.exe *.zip *.bkm *.ddp *.cfg *.dof *.dsk *.ini *.hlp *.gid 
*.bmp *.png *.gif ~* *.log bin debug release *.map *.chm *.bkf Thumbs.db *.mdb 
.obj *.elf *.stat *.ddp *.bpl *.map *.GID *.hlp *.opt *.dll *.raw *.BIN *.obj 
*.pdb *.scc Debug Release *.xml obj *.~* *.backup *.INI *.ArmLog *.KeyLog 
*.NanoLog *.Stats *.PreARM *.old *.drc *.*~ *.doc *.pdf *.bmp *.jpg *.MRW *.NEF 
*.ORF *.psd *.X3F __history *.local *.identcache *.bak Thumbs.db *.ldb *.dex 
*.rar DllDcu *.lck CVS cvs *.txt *.TXT *.jdbg *.HLP *.KWF *.xls *.cnt *.dsm 
*.dti *.tmp *.lnk *.cbk *.mes

Note that the patterns are case sensitive.

like image 45
Dave Avatar answered Oct 23 '22 11:10

Dave