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

TSource

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Represents a source file in the build system

Declaration

Source position: fpmkunit.pp line 884

type TSource = class(TNamedItem)

public

  constructor Create(); override;

  

Creates a new source file entry

  destructor Destroy; override;

  

Destroys the source file entry and releases resources

  procedure GetInstallFiles(); virtual;

  

Gets list of files for installation from this source

  property SourceType: TSourceType; [r]

  

Type of source file (documentation, example, etc.)

  property InstallSourcePath: string; [r]

  

Installation path for the source file

end;

Inheritance

TSource

  

Represents a source file in the build system

|

TNamedItem

  

Base class for items with a name property

|

TCollectionItem

|

TPersistent

|

TObject,IFPObserved

Description

TSource represents a single source code file within the Free Pascal build system, tracking file paths, names, and build-related properties.

This class manages individual source files that are compiled as part of build targets, including dependency tracking and compilation settings.


Documentation generated on: Dec 15 2025