mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-16 23:49:28 +02:00
IDE: win64 uses same lazbaseconf.inc file as win32.
git-svn-id: trunk@14960 -
This commit is contained in:
parent
38bbbb2558
commit
da7e767012
@ -22,152 +22,4 @@
|
||||
***************************************************************************
|
||||
}
|
||||
|
||||
const
|
||||
DefaultFPCSrcDirs: array[1..2] of string = (
|
||||
'$(LazarusDir)\fpcsrc', // this value is set in internalinit
|
||||
'c:\pp\source'
|
||||
);
|
||||
|
||||
DefaultLazarusSrcDirs: array[1..1] of string = (
|
||||
'c:\lazarus'
|
||||
);
|
||||
|
||||
var
|
||||
PrimaryConfigPath,
|
||||
SecondaryConfigPath: string;
|
||||
|
||||
procedure GetDefaultLCLLibPaths(List: TStrings);
|
||||
begin
|
||||
end;
|
||||
|
||||
{---------------------------------------------------------------------------
|
||||
getPrimaryConfigPath function
|
||||
---------------------------------------------------------------------------}
|
||||
function GetPrimaryConfigPath: String;
|
||||
begin
|
||||
Result := PrimaryConfigPath;
|
||||
end;
|
||||
|
||||
{---------------------------------------------------------------------------
|
||||
getSecondaryConfigPath function
|
||||
---------------------------------------------------------------------------}
|
||||
function GetSecondaryConfigPath: String;
|
||||
begin
|
||||
Result := SecondaryConfigPath;
|
||||
end;
|
||||
|
||||
{---------------------------------------------------------------------------
|
||||
createPrimaryConfigPath procedure
|
||||
---------------------------------------------------------------------------}
|
||||
procedure createPrimaryConfigPath;
|
||||
begin
|
||||
CreateDir(GetPrimaryConfigPath);
|
||||
end;
|
||||
|
||||
{---------------------------------------------------------------------------
|
||||
SetPrimaryConfigPath procedure
|
||||
---------------------------------------------------------------------------}
|
||||
procedure SetPrimaryConfigPath(const NewValue: String);
|
||||
begin
|
||||
PrimaryConfigPath:=NewValue;
|
||||
end;
|
||||
|
||||
{---------------------------------------------------------------------------
|
||||
SetSecondaryConfigPath procedure
|
||||
---------------------------------------------------------------------------}
|
||||
procedure SetSecondaryConfigPath(const NewValue: String);
|
||||
begin
|
||||
SecondaryConfigPath:=NewValue;
|
||||
end;
|
||||
|
||||
function FindDefaultCompilerPath: string;
|
||||
begin
|
||||
Result:=SearchFileInPath(GetDefaultCompilerFilename,
|
||||
AppendPathDelim(ProgramDirectory)+'pp\bin\i386-win64',
|
||||
SysUtils.GetEnvironmentVariable('PATH'),';',
|
||||
[]);
|
||||
if Result<>'' then exit;
|
||||
Result:='c:\pp\bin\i386-win32\ppc386.exe';
|
||||
if not FileExists(Result) then Result:='';
|
||||
end;
|
||||
|
||||
function FindDefaultMakePath: string;
|
||||
begin
|
||||
Result:=SearchFileInPath('make.exe',
|
||||
AppendPathDelim(ProgramDirectory)+'pp\bin\i386-win64',
|
||||
SysUtils.GetEnvironmentVariable('PATH'),';',
|
||||
[]);
|
||||
end;
|
||||
|
||||
function CreateCompilerTestPascalFilename: string;
|
||||
var
|
||||
fs: TFileStream;
|
||||
begin
|
||||
Result:=AppendPathDelim(GetPrimaryConfigPath)+'compilertest.pas';
|
||||
if not FileExists(Result) then begin
|
||||
fs:=TFileStream.Create(Result,fmCreate);
|
||||
fs.Free;
|
||||
end;
|
||||
end;
|
||||
|
||||
function GetDefaultCompiledUnitExt(FPCVersion, FPCRelease: integer): string;
|
||||
begin
|
||||
if (FPCVersion=1) and (FPCRelease=0) then
|
||||
Result:='.ppw'
|
||||
else
|
||||
Result:='.ppu';
|
||||
end;
|
||||
|
||||
function OSLocksExecutables: boolean;
|
||||
begin
|
||||
Result:=true;
|
||||
end;
|
||||
|
||||
function GetDefaultTestBuildDirectory: string;
|
||||
begin
|
||||
Result:=SysUtils.GetEnvironmentVariable('TEMP');
|
||||
if Result<>'' then exit;
|
||||
Result:='c:\temp\';
|
||||
if DirPathExists(Result) then exit;
|
||||
Result:='c:\windows\temp\';
|
||||
end;
|
||||
|
||||
procedure GetDefaultCompilerFilenames(List: TStrings);
|
||||
begin
|
||||
List.Add(AppendPathDelim(ProgramDirectory)+'pp\bin\x64-win64\ppcx64.exe');
|
||||
List.Add('c:\pp\bin\x64-win64\ppcx64.exe');
|
||||
end;
|
||||
|
||||
procedure GetDefaultMakeFilenames(List: TStrings);
|
||||
begin
|
||||
List.Add(AppendPathDelim(ProgramDirectory)+'pp\bin\x64-win64\make.exe');
|
||||
List.Add('c:\pp\bin\x64-win64\make.exe');
|
||||
end;
|
||||
|
||||
procedure GetDefaultTestBuildDirs(List: TStrings);
|
||||
begin
|
||||
List.Add('c:\tmp\');
|
||||
List.Add('c:\windows\temp\');
|
||||
end;
|
||||
|
||||
procedure GetDefaultBrowser(var Browser, Params: string);
|
||||
begin
|
||||
Browser:= SearchFileInPath('rundll32.exe','',
|
||||
SysUtils.GetEnvironmentVariable('PATH'),';',
|
||||
[sffDontSearchInBasePath]);
|
||||
Params:='url.dll,FileProtocolHandler %s';
|
||||
end;
|
||||
|
||||
{---------------------------------------------------------------------------
|
||||
procedure InternalInit;
|
||||
---------------------------------------------------------------------------}
|
||||
procedure InternalInit;
|
||||
begin
|
||||
PrimaryConfigPath:=ChompPathDelim(ExtractFilePath(Paramstr(0)));
|
||||
SecondaryConfigPath:=SysUtils.GetEnvironmentVariable('WINDIR');
|
||||
If SecondaryConfigPath = '' Then
|
||||
SecondaryConfigPath:='c:\windows';
|
||||
DefaultFPCSrcDirs[1]:=AppendPathDelim(ProgramDirectory)+'fpcsrc';
|
||||
end;
|
||||
|
||||
|
||||
{$I ../win/lazbaseconf.inc}
|
||||
|
Loading…
Reference in New Issue
Block a user