mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-05 16:12:34 +02:00
lazbuild: fixed compilation
git-svn-id: trunk@28933 -
This commit is contained in:
parent
a8b437d1a0
commit
c2f59b31e3
@ -67,8 +67,6 @@ type
|
||||
out Description: string);
|
||||
procedure GetDependencyOwnerDirectory(Dependency: TPkgDependency;
|
||||
out Directory: string);
|
||||
procedure GetWritablePkgOutputDirectory(APackage: TLazPackage;
|
||||
var AnOutDirectory: string);
|
||||
// package graph
|
||||
procedure PackageGraphAddPackage(Pkg: TLazPackage);
|
||||
|
||||
@ -217,28 +215,6 @@ begin
|
||||
GetDirectoryOfDependencyOwner(Dependency,Directory);
|
||||
end;
|
||||
|
||||
procedure TLazBuildApplication.GetWritablePkgOutputDirectory(
|
||||
APackage: TLazPackage; var AnOutDirectory: string);
|
||||
var
|
||||
NewOutDir: String;
|
||||
begin
|
||||
if DirectoryIsWritableCached(AnOutDirectory) then exit;
|
||||
|
||||
ForceDirectory(AnOutDirectory);
|
||||
InvalidateFileStateCache;
|
||||
if DirectoryIsWritableCached(AnOutDirectory) then exit;
|
||||
//debugln('TPkgManager.GetWritablePkgOutputDirectory AnOutDirectory=',AnOutDirectory,' ',dbgs(DirectoryIsWritable(AnOutDirectory)));
|
||||
|
||||
// output directory is not writable
|
||||
// -> redirect to config directory
|
||||
NewOutDir:=SetDirSeparators('/$(TargetCPU)-$(TargetOS)');
|
||||
IDEMacros.SubstituteMacros(NewOutDir);
|
||||
NewOutDir:=TrimFilename(GetPrimaryConfigPath+PathDelim+'lib'+PathDelim
|
||||
+APackage.Name+NewOutDir);
|
||||
AnOutDirectory:=NewOutDir;
|
||||
//debugln('TPkgManager.GetWritablePkgOutputDirectory APackage=',APackage.IDAsString,' AnOutDirectory="',AnOutDirectory,'"');
|
||||
end;
|
||||
|
||||
procedure TLazBuildApplication.PackageGraphAddPackage(Pkg: TLazPackage);
|
||||
begin
|
||||
if FileExists(Pkg.FileName) then PkgLinks.AddUserLink(Pkg);
|
||||
@ -850,7 +826,6 @@ procedure TLazBuildApplication.SetupPackageSystem;
|
||||
begin
|
||||
OnGetDependencyOwnerDescription:=@GetDependencyOwnerDescription;
|
||||
OnGetDependencyOwnerDirectory:=@GetDependencyOwnerDirectory;
|
||||
OnGetWritablePkgOutputDirectory:=@GetWritablePkgOutputDirectory;
|
||||
|
||||
// package links
|
||||
PkgLinks:=TPackageLinks.Create;
|
||||
|
@ -259,7 +259,7 @@ begin
|
||||
RegisterIDEMsgQuickFix(TQuickFixIdentifierNotFoundAddLocal.Create);
|
||||
RegisterIDEMsgQuickFix(TQuickFixLocalVariableNotUsed_Remove.Create);
|
||||
RegisterIDEMsgQuickFix(TQuickFixHint_Hide.Create);
|
||||
//RegisterIDEMsgQuickFix(TQuickFixRecompilingChecksumChanged.Create);
|
||||
RegisterIDEMsgQuickFix(TQuickFixRecompilingChecksumChanged.Create);
|
||||
end;
|
||||
|
||||
procedure FreeStandardIDEQuickFixItems;
|
||||
|
Loading…
Reference in New Issue
Block a user