lazbuild: fixed compilation

git-svn-id: trunk@28933 -
This commit is contained in:
mattias 2011-01-10 13:29:22 +00:00
parent a8b437d1a0
commit c2f59b31e3
2 changed files with 1 additions and 26 deletions

View File

@ -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;

View File

@ -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;