From 76e16c5bd15ba299ec4896136046b6d6b5bd3121 Mon Sep 17 00:00:00 2001 From: Ondrej Pokorny Date: Fri, 30 Dec 2022 21:32:32 +0100 Subject: [PATCH] BuildIntf: publish LazProject1 so that it can be read from packages --- components/buildintf/projectintf.pas | 3 +++ ide/project.pp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/components/buildintf/projectintf.pas b/components/buildintf/projectintf.pas index 08ccefa445..544f934163 100644 --- a/components/buildintf/projectintf.pas +++ b/components/buildintf/projectintf.pas @@ -675,6 +675,9 @@ procedure RegisterProjectDescriptor(ProjDesc: TProjectDescriptor; const Category, Caption, Description, Units: string); } +var + LazProject1: TLazProject = nil; // the main project + implementation procedure RegisterProjectFileDescriptor(FileDesc: TProjectFileDescriptor); diff --git a/ide/project.pp b/ide/project.pp index 4ebab79919..5460d1923b 100644 --- a/ide/project.pp +++ b/ide/project.pp @@ -1188,7 +1188,7 @@ const ); var - Project1: TProject = nil;// the main project + Project1: TProject absolute LazProject1;// the main project function FilenameToLazSyntaxHighlighter(Filename: String): TLazSyntaxHighlighter; function AddCompileReasonsDiff(const PropertyName: string;