mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-07-30 16:15:54 +02:00
fpmake: Do not pass the path of packages the package depends on to the unit-search-path in fpmake.pp files
git-svn-id: trunk@47284 -
This commit is contained in:
parent
dd443bdb8b
commit
a8c4670acb
@ -4382,7 +4382,6 @@ var
|
||||
e: string;
|
||||
SrcFilename: String;
|
||||
FpmakeFPCFilename: String;
|
||||
UnitOutputPath: String;
|
||||
UnitPath: String;
|
||||
CodeBuffer: TCodeBuffer;
|
||||
MainSrcFile: String;
|
||||
@ -4409,12 +4408,13 @@ begin
|
||||
FPmakeCompiledFilename:=AppendPathDelim(APackage.Directory)+APackage.Name+'.compiled';
|
||||
|
||||
SrcFilename:=APackage.GetSrcFilename;
|
||||
UnitPath:=APackage.CompilerOptions.GetUnitPath(true,
|
||||
coptParsedPlatformIndependent);
|
||||
|
||||
UnitPath:=APackage.CompilerOptions.ParsedOpts.GetParsedPIValue(pcosUnitPath);
|
||||
UnitPath:=CreateRelativeSearchPath(UnitPath,APackage.CompilerOptions.BaseDirectory);
|
||||
UnitPath:=MergeSearchPaths(UnitPath, '.');
|
||||
|
||||
IncPath:=APackage.CompilerOptions.GetIncludePath(true,
|
||||
coptParsedPlatformIndependent,false);
|
||||
UnitOutputPath:=APackage.CompilerOptions.GetUnitOutPath(true,
|
||||
coptParsedPlatformIndependent);
|
||||
CustomOptions:=APackage.CompilerOptions.GetCustomOptions(
|
||||
coptParsedPlatformIndependent);
|
||||
debugln('CustomOptions (orig): ',CustomOptions);
|
||||
@ -4431,8 +4431,6 @@ begin
|
||||
UnitPath:=ConvertLazarusToFpmakeSearchPath(UnitPath);
|
||||
IncPath:=ConvertLazarusToFpmakeSearchPath(IncPath);
|
||||
// remove path delimiter at the end, or else it will fail on windows
|
||||
UnitOutputPath:=ConvertLazarusToMakefileDirectory(
|
||||
ChompPathDelim(UnitOutputPath));
|
||||
MainSrcFile:=CreateRelativePath(SrcFilename,APackage.Directory);
|
||||
CustomOptions:=ConvertLazarusOptionsToFpmakeOptions(CustomOptions);
|
||||
debugln('CustomOptions (fpmake format): ',CustomOptions);
|
||||
|
Loading…
Reference in New Issue
Block a user