Unit 'fpmkunit' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#fcl]

TFileType

File type classification for build targets

Declaration

Source position: fpmkunit.pp line 150

type TFileType = (

  ftSource,

  

Pascal source code file

  ftUnit,

  

Compiled Pascal unit file

  ftObject,

  

Object file produced by compilation

  ftResource,

  

Resource file containing application resources

  ftExecutable,

  

Executable program file

  ftStaticLibrary,

  

Static library file for linking

  ftSharedLibrary

  

Dynamic shared library file

);

Description

TFileType defines the different types of files that can be produced by build targets in the fpmake system. This classification determines how files are compiled, linked, and installed.

ftSource
represents Pascal source code files (.pas, .pp, .p files) that contain program or unit source code. These files are compiled by the Free Pascal Compiler to produce executable programs or compiled units.
ftUnit
represents compiled Pascal unit files (.ppu files) that contain compiled code and interface information. These files are produced by the compiler and used for linking with other units and programs.
ftObject
represents object files (.o files on Unix, .obj on Windows) containing compiled machine code. These intermediate files are produced during compilation and used by the linker to create final executables or libraries.
ftResource
represents resource files (.res, .rc files) containing application resources such as icons, bitmaps, strings, and other data. These files are compiled into applications to provide user interface elements and embedded data.
ftExecutable
represents executable program files (.exe on Windows, no extension on Unix) that contain runnable machine code. These files are the final output of compiling and linking Pascal programs.
ftStaticLibrary
represents static library files (.a files on Unix, .lib on Windows) containing compiled code that is linked directly into executables at compile time. Static libraries become part of the final executable.
ftSharedLibrary
represents dynamic shared library files (.so on Unix, .dll on Windows) containing compiled code that is loaded at runtime. Shared libraries can be used by multiple programs simultaneously and are loaded dynamically when needed.

See also

TTarget

  

Build target representation in the fpmake system


Documentation generated on: Dec 15 2025