IdeConfig: Check that package does not include LCL

This commit is contained in:
Martin 2024-04-13 13:54:51 +02:00
parent 08d0445778
commit d9728c785f
3 changed files with 22 additions and 1 deletions

View File

@ -127,6 +127,10 @@ Files in this package are for the main configuration of the IDE."/>
<Filename Value="include\linux\lazconf.inc"/>
<Type Value="Include"/>
</Item>
<Item>
<Filename Value="ideconfigpcktest.pas"/>
<UnitName Value="IdeConfigPckTest"/>
</Item>
</Files>
<i18n>
<EnableI18N Value="True"/>

View File

@ -12,7 +12,7 @@ uses
EditorToolBarOptions, EnvironmentOpts, etFPCMsgFilePool, etMakeMsgParser, FppkgHelper,
IDECmdLine, IdeConfStrConsts, IDEGuiCmdLine, IDEOptionDefs, IDEProcs, IdeXmlConfigProcs,
LazConf, ModeMatrixOpts, ParsedCompilerOpts, ProjPackCommon, RecentListProcs, SearchPathProcs,
ToolBarOptionsBase, TransferMacros, LazarusPackageIntf;
ToolBarOptionsBase, TransferMacros, IdeConfigPckTest, LazarusPackageIntf;
implementation

View File

@ -0,0 +1,17 @@
unit IdeConfigPckTest;
(*
The package IdeConfig can be used by command line tools (like LazBuild).
Therefore it should not depend on the LCL or GUI related packages
*)
{$IFDEF LCL}
{$error The package IdeConfig must not depend on the LCL}
{$ENDIF}
interface
implementation
end.