mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-08 07:58:21 +02:00
replaced ppc386 with platform independent name
git-svn-id: trunk@5778 -
This commit is contained in:
parent
91aaab9121
commit
ed06870dfa
@ -704,7 +704,7 @@ begin
|
|||||||
FileTitles[0]:='compiler path';
|
FileTitles[0]:='compiler path';
|
||||||
FileDescs[0]:=Format(
|
FileDescs[0]:=Format(
|
||||||
lisCodeToolsDefsThePathToTheFreePascalCompilerForExample, [#13,
|
lisCodeToolsDefsThePathToTheFreePascalCompilerForExample, [#13,
|
||||||
'"', '"', '"', '"']);
|
'"', GetDefaultCompilerFilename, '"', '"', '"']);
|
||||||
FileNames[0]:=DefaultCompiler;
|
FileNames[0]:=DefaultCompiler;
|
||||||
FileFlags[0]:=[iftCmdLine,iftNotEmpty];
|
FileFlags[0]:=[iftCmdLine,iftNotEmpty];
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
compileroptions.pp - Lazarus IDE unit
|
compileroptions.pp - Lazarus IDE unit
|
||||||
---------------------------------------
|
---------------------------------------
|
||||||
Compiler options form sets the switches for the project
|
Compiler options form sets the switches for the project
|
||||||
file for the PPC386 compiler.
|
file for the FPC compiler.
|
||||||
|
|
||||||
|
|
||||||
Initial Revision : Sat May 10 23:15:32 CST 1999
|
Initial Revision : Sat May 10 23:15:32 CST 1999
|
||||||
@ -1704,7 +1704,7 @@ begin
|
|||||||
|
|
||||||
{ Get all the options and create a string that can be passed to the compiler }
|
{ Get all the options and create a string that can be passed to the compiler }
|
||||||
|
|
||||||
{ options of ppc386 1.1 :
|
{ options of fpc 1.1 :
|
||||||
|
|
||||||
put + after a boolean switch option to enable it, - to disable it
|
put + after a boolean switch option to enable it, - to disable it
|
||||||
-a the compiler doesn't delete the generated assembler file
|
-a the compiler doesn't delete the generated assembler file
|
||||||
@ -2761,11 +2761,12 @@ begin
|
|||||||
OpenDialog:=TOpenDialog.Create(Self);
|
OpenDialog:=TOpenDialog.Create(Self);
|
||||||
try
|
try
|
||||||
if Sender=btnCompiler then begin
|
if Sender=btnCompiler then begin
|
||||||
OpenDialog.Title:='Browse for Compiler (ppc386)';
|
OpenDialog.Title:=Format(lisBrowseForCompiler, [GetDefaultCompilerFilename
|
||||||
|
]);
|
||||||
DefaultFilename:=FindDefaultCompilerPath;
|
DefaultFilename:=FindDefaultCompilerPath;
|
||||||
OpenDialog.Options:=OpenDialog.Options+[ofFileMustExist];
|
OpenDialog.Options:=OpenDialog.Options+[ofFileMustExist];
|
||||||
end else if Sender=btnUnitOutputDir then begin
|
end else if Sender=btnUnitOutputDir then begin
|
||||||
OpenDialog.Title:='Unit Output directory';
|
OpenDialog.Title:=lisUnitOutputDirectory;
|
||||||
DefaultFilename:='';
|
DefaultFilename:='';
|
||||||
OpenDialog.Options:=OpenDialog.Options+[ofPathMustExist];
|
OpenDialog.Options:=OpenDialog.Options+[ofPathMustExist];
|
||||||
end else
|
end else
|
||||||
@ -2796,7 +2797,7 @@ var
|
|||||||
begin
|
begin
|
||||||
ANode:=InhTreeView.Selected;
|
ANode:=InhTreeView.Selected;
|
||||||
if (ANode=nil) or (ANode.Data=nil) then begin
|
if (ANode=nil) or (ANode.Data=nil) then begin
|
||||||
InhItemMemo.Lines.Text:='Select a node';
|
InhItemMemo.Lines.Text:=lisSelectANode;
|
||||||
end else begin
|
end else begin
|
||||||
ChildData:=PInheritedNodeData(ANode.Data);
|
ChildData:=PInheritedNodeData(ANode.Data);
|
||||||
if ChildData^.Option in icoAllSearchPaths then begin
|
if ChildData^.Option in icoAllSearchPaths then begin
|
||||||
@ -3233,28 +3234,28 @@ begin
|
|||||||
AncestorNode.ImageIndex:=ImageIndexPackage;
|
AncestorNode.ImageIndex:=ImageIndexPackage;
|
||||||
AncestorNode.SelectedIndex:=AncestorNode.ImageIndex;
|
AncestorNode.SelectedIndex:=AncestorNode.ImageIndex;
|
||||||
with AncestorOptions.ParsedOpts do begin
|
with AncestorOptions.ParsedOpts do begin
|
||||||
AddChildNode('unit path',
|
AddChildNode(lisunitPath,
|
||||||
CreateRelativeSearchPath(GetParsedValue(pcosUnitPath),
|
CreateRelativeSearchPath(GetParsedValue(pcosUnitPath),
|
||||||
CompilerOpts.BaseDirectory),icoUnitPath);
|
CompilerOpts.BaseDirectory),icoUnitPath);
|
||||||
AddChildNode('include path',
|
AddChildNode(lisincludePath,
|
||||||
CreateRelativeSearchPath(GetParsedValue(pcosIncludePath),
|
CreateRelativeSearchPath(GetParsedValue(pcosIncludePath),
|
||||||
CompilerOpts.BaseDirectory),icoIncludePath);
|
CompilerOpts.BaseDirectory),icoIncludePath);
|
||||||
AddChildNode('object path',
|
AddChildNode(lisobjectPath,
|
||||||
CreateRelativeSearchPath(GetParsedValue(pcosObjectPath),
|
CreateRelativeSearchPath(GetParsedValue(pcosObjectPath),
|
||||||
CompilerOpts.BaseDirectory),icoObjectPath);
|
CompilerOpts.BaseDirectory),icoObjectPath);
|
||||||
AddChildNode('library path',
|
AddChildNode(lislibraryPath,
|
||||||
CreateRelativeSearchPath(GetParsedValue(pcosLibraryPath),
|
CreateRelativeSearchPath(GetParsedValue(pcosLibraryPath),
|
||||||
CompilerOpts.BaseDirectory),icoLibraryPath);
|
CompilerOpts.BaseDirectory),icoLibraryPath);
|
||||||
AddChildNode('linker options',GetParsedValue(pcosLinkerOptions),
|
AddChildNode(lislinkerOptions, GetParsedValue(pcosLinkerOptions),
|
||||||
icoLinkerOptions);
|
icoLinkerOptions);
|
||||||
AddChildNode('custom options',GetParsedValue(pcosCustomOptions),
|
AddChildNode(liscustomOptions, GetParsedValue(pcosCustomOptions),
|
||||||
icoCustomOptions);
|
icoCustomOptions);
|
||||||
end;
|
end;
|
||||||
AncestorNode.Expanded:=true;
|
AncestorNode.Expanded:=true;
|
||||||
end;
|
end;
|
||||||
OptionsList.Free;
|
OptionsList.Free;
|
||||||
end else begin
|
end else begin
|
||||||
InhTreeView.Items.Add(nil,'No compiler options inherited.');
|
InhTreeView.Items.Add(nil, lisNoCompilerOptionsInherited);
|
||||||
end;
|
end;
|
||||||
InhTreeView.EndUpdate;
|
InhTreeView.EndUpdate;
|
||||||
end;
|
end;
|
||||||
@ -3499,7 +3500,6 @@ var
|
|||||||
begin
|
begin
|
||||||
// Setup the Code Generation Tab
|
// Setup the Code Generation Tab
|
||||||
CodeGenPage:=nbMain.Page[Page];
|
CodeGenPage:=nbMain.Page[Page];
|
||||||
Assert(False, 'Trace:Setting up compiler options code generation tab');
|
|
||||||
|
|
||||||
grpUnitStyle := TRadioGroup.Create(Self);
|
grpUnitStyle := TRadioGroup.Create(Self);
|
||||||
with grpUnitStyle do
|
with grpUnitStyle do
|
||||||
@ -3780,7 +3780,6 @@ procedure TfrmCompilerOptions.SetupLinkingTab(Page: integer);
|
|||||||
begin
|
begin
|
||||||
// Setup the Linking Tab
|
// Setup the Linking Tab
|
||||||
LinkingPage:=nbMain.Page[Page];
|
LinkingPage:=nbMain.Page[Page];
|
||||||
Assert(False, 'Trace:Setting up compiler options linking tab');
|
|
||||||
|
|
||||||
grpDebugging := TGroupBox.Create(Self);
|
grpDebugging := TGroupBox.Create(Self);
|
||||||
with grpDebugging do
|
with grpDebugging do
|
||||||
@ -4263,7 +4262,7 @@ begin
|
|||||||
Top:=grpConfigFile.Top+grpConfigFile.Height+10;
|
Top:=grpConfigFile.Top+grpConfigFile.Height+10;
|
||||||
Width:=grpConfigFile.Width;
|
Width:=grpConfigFile.Width;
|
||||||
Height:=200;
|
Height:=200;
|
||||||
Caption:='Custom options';
|
Caption:=lisCustomOptions2;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
memCustomOptions := TMemo.Create(Self);
|
memCustomOptions := TMemo.Create(Self);
|
||||||
@ -4286,7 +4285,7 @@ begin
|
|||||||
with InhNoteLabel do begin
|
with InhNoteLabel do begin
|
||||||
Name:='InhNoteLabel';
|
Name:='InhNoteLabel';
|
||||||
Parent:=InheritedPage;
|
Parent:=InheritedPage;
|
||||||
Caption:='Additional compiler options inherited from packages';
|
Caption:=lisAdditionalCompilerOptionsInheritedFromPackages;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
InhTreeView:=TTreeView.Create(Self);
|
InhTreeView:=TTreeView.Create(Self);
|
||||||
@ -4306,7 +4305,7 @@ begin
|
|||||||
ReadOnly:=true;
|
ReadOnly:=true;
|
||||||
WordWrap:=true;
|
WordWrap:=true;
|
||||||
ScrollBars:=ssAutoVertical;
|
ScrollBars:=ssAutoVertical;
|
||||||
Text:='Select a node';
|
Text:=lisSelectANode;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -4725,8 +4724,6 @@ end;
|
|||||||
procedure TfrmCompilerOptions.SetupButtonBar;
|
procedure TfrmCompilerOptions.SetupButtonBar;
|
||||||
begin
|
begin
|
||||||
// Setup the Button Bar
|
// Setup the Button Bar
|
||||||
Assert(False, 'Trace:Setting up compiler options button bar');
|
|
||||||
|
|
||||||
btnOK := TButton.Create(Self);
|
btnOK := TButton.Create(Self);
|
||||||
with btnOK do
|
with btnOK do
|
||||||
begin
|
begin
|
||||||
|
@ -2189,7 +2189,7 @@ begin
|
|||||||
with CompilerPathGroupBox do begin
|
with CompilerPathGroupBox do begin
|
||||||
Name:='CompilerPathGroupBox';
|
Name:='CompilerPathGroupBox';
|
||||||
Parent:=NoteBook.Page[Page];
|
Parent:=NoteBook.Page[Page];
|
||||||
Caption:=dlgFpcPath;
|
Caption:=Format(dlgFpcPath,[GetDefaultCompilerFilename]);
|
||||||
OnResize:=@CompilerPathGroupBoxResize;
|
OnResize:=@CompilerPathGroupBoxResize;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -2197,12 +2197,9 @@ begin
|
|||||||
with CompilerPathComboBox do begin
|
with CompilerPathComboBox do begin
|
||||||
Name:='CompilerPathComboBox';
|
Name:='CompilerPathComboBox';
|
||||||
Parent:=CompilerPathGroupBox;
|
Parent:=CompilerPathGroupBox;
|
||||||
with Items do begin
|
Items.BeginUpdate;
|
||||||
BeginUpdate;
|
GetDefaultCompilerFilenames(Items);
|
||||||
Add('/usr/bin/ppc386');
|
Items.EndUpdate;
|
||||||
Add('/opt/fpc/ppc386');
|
|
||||||
EndUpdate;
|
|
||||||
end;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
CompilerPathButton:=TButton.Create(Self);
|
CompilerPathButton:=TButton.Create(Self);
|
||||||
@ -3159,7 +3156,8 @@ begin
|
|||||||
OpenDialog.Options:=OpenDialog.Options+[ofPathMustExist];
|
OpenDialog.Options:=OpenDialog.Options+[ofPathMustExist];
|
||||||
// set title
|
// set title
|
||||||
if Sender=CompilerPathButton then
|
if Sender=CompilerPathButton then
|
||||||
OpenDialog.Title:=lisChooseCompilerPath
|
OpenDialog.Title:=
|
||||||
|
Format(lisChooseCompilerPath,[GetDefaultCompilerFilename])
|
||||||
else if Sender=MakePathButton then
|
else if Sender=MakePathButton then
|
||||||
OpenDialog.Title:=lisChooseMakePath
|
OpenDialog.Title:=lisChooseMakePath
|
||||||
else
|
else
|
||||||
|
@ -133,8 +133,9 @@ end;
|
|||||||
---------------------------------------------------------------------------}
|
---------------------------------------------------------------------------}
|
||||||
function FindDefaultCompilerPath: string;
|
function FindDefaultCompilerPath: string;
|
||||||
begin
|
begin
|
||||||
Result:=SearchFileInPath('ppc386','',{$IFDEF Ver1_0}GetEnv{$ELSE}FpGetEnv{$ENDIF}('PATH'),':',
|
Result:=SearchFileInPath(GetDefaultCompilerFilename,'',
|
||||||
[sffDontSearchInBasePath]);
|
{$IFDEF Ver1_0}GetEnv{$ELSE}FpGetEnv{$ENDIF}('PATH'),':',
|
||||||
|
[sffDontSearchInBasePath]);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{---------------------------------------------------------------------------
|
{---------------------------------------------------------------------------
|
||||||
@ -142,8 +143,9 @@ end;
|
|||||||
---------------------------------------------------------------------------}
|
---------------------------------------------------------------------------}
|
||||||
function FindDefaultMakePath: string;
|
function FindDefaultMakePath: string;
|
||||||
begin
|
begin
|
||||||
Result:=SearchFileInPath('make','',{$IFDEF Ver1_0}GetEnv{$ELSE}FpGetEnv{$ENDIF}('PATH'),':',
|
Result:=SearchFileInPath('make','',
|
||||||
[sffDontSearchInBasePath]);
|
{$IFDEF Ver1_0}GetEnv{$ELSE}FpGetEnv{$ENDIF}('PATH'),':',
|
||||||
|
[sffDontSearchInBasePath]);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{---------------------------------------------------------------------------
|
{---------------------------------------------------------------------------
|
||||||
@ -170,8 +172,8 @@ end;
|
|||||||
|
|
||||||
procedure GetDefaultCompilerFilenames(List: TStrings);
|
procedure GetDefaultCompilerFilenames(List: TStrings);
|
||||||
begin
|
begin
|
||||||
List.Add('/usr/bin/ppc386');
|
List.Add('/usr/bin/'+GetDefaultCompilerFilename);
|
||||||
List.Add('/opt/fpc/ppc386');
|
List.Add('/opt/fpc/'+GetDefaultCompilerFilename);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure GetDefaultMakeFilenames(List: TStrings);
|
procedure GetDefaultMakeFilenames(List: TStrings);
|
||||||
|
@ -109,7 +109,7 @@ end;
|
|||||||
|
|
||||||
function FindDefaultCompilerPath: string;
|
function FindDefaultCompilerPath: string;
|
||||||
begin
|
begin
|
||||||
Result:=SearchFileInPath('ppc386.exe','',GetEnv('PATH'),';',
|
Result:=SearchFileInPath(GetDefaultCompilerFilename,'',GetEnv('PATH'),';',
|
||||||
[sffDontSearchInBasePath]);
|
[sffDontSearchInBasePath]);
|
||||||
if Result<>'' then exit;
|
if Result<>'' then exit;
|
||||||
Result:='c:\pp\bin\win32\ppc386.exe';
|
Result:='c:\pp\bin\win32\ppc386.exe';
|
||||||
@ -192,6 +192,9 @@ end;
|
|||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.22 2004/08/13 12:28:01 mattias
|
||||||
|
replaced ppc386 with platform independent name
|
||||||
|
|
||||||
Revision 1.21 2004/07/30 15:34:09 vincents
|
Revision 1.21 2004/07/30 15:34:09 vincents
|
||||||
make executable location is a environment option now.
|
make executable location is a environment option now.
|
||||||
|
|
||||||
|
@ -40,8 +40,9 @@ unit InitialSetupDlgs;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, Forms, Controls, Buttons, Dialogs, EnvironmentOpts,
|
Classes, SysUtils, Forms, Controls, Buttons, Dialogs, FileCtrl, StdCtrls,
|
||||||
FileCtrl, StdCtrls, ComCtrls, LazConf, IDEProcs;
|
ComCtrls,
|
||||||
|
LazarusIDEStrConsts, LazConf, EnvironmentOpts, IDEProcs;
|
||||||
|
|
||||||
procedure SetupCompilerFilename(var InteractiveSetup: boolean);
|
procedure SetupCompilerFilename(var InteractiveSetup: boolean);
|
||||||
procedure SetupFPCSourceDirectory(var InteractiveSetup: boolean);
|
procedure SetupFPCSourceDirectory(var InteractiveSetup: boolean);
|
||||||
@ -62,26 +63,24 @@ begin
|
|||||||
if not FileIsExecutable(CurCompilerFilename) then begin
|
if not FileIsExecutable(CurCompilerFilename) then begin
|
||||||
if not InteractiveSetup then exit;
|
if not InteractiveSetup then exit;
|
||||||
if CurCompilerFilename='' then begin
|
if CurCompilerFilename='' then begin
|
||||||
MessageDlg('Free Pascal Compiler not found',
|
MessageDlg(lisFreePascalCompilerNotFound,
|
||||||
'The Free Pascal compiler (filename: ppc386) was not found.'#13
|
Format(lisTheFreePascalCompilerFilenameWasNotFoundItIsRecomm, [
|
||||||
+'It is recommended that you install fpc.',
|
GetDefaultCompilerFilename, #13]),
|
||||||
mtWarning,[mbIgnore],0);
|
mtWarning,[mbIgnore],0);
|
||||||
end else begin
|
end else begin
|
||||||
DefaultCompPath:=FindDefaultCompilerPath;
|
DefaultCompPath:=FindDefaultCompilerPath;
|
||||||
if CompareFilenames(DefaultCompPath,CurCompilerFilename)<>0 then begin
|
if CompareFilenames(DefaultCompPath,CurCompilerFilename)<>0 then begin
|
||||||
r:=MessageDlg('Invalid Compiler Filename',
|
r:=MessageDlg(lisInvalidCompilerFilename,
|
||||||
'The current compiler filename "'+CurCompilerFilename+'"'#13
|
Format(lisTheCurrentCompilerFilenameIsNotAValidExecutableCho, ['"',
|
||||||
+'is not a valid executable.'#13
|
CurCompilerFilename, '"', #13, #13, '"', DefaultCompPath, '"', #13]
|
||||||
+'Choose Ok to choose the default "'+DefaultCompPath+'".'#13
|
),
|
||||||
+'Otherwise check Environment -> Environment Options -> Files',
|
|
||||||
mtWarning,[mbOk,mbIgnore],0);
|
mtWarning,[mbOk,mbIgnore],0);
|
||||||
if r=mrOk then
|
if r=mrOk then
|
||||||
CurCompilerFilename:=DefaultCompPath;
|
CurCompilerFilename:=DefaultCompPath;
|
||||||
end else begin
|
end else begin
|
||||||
MessageDlg('Invalid Compiler Filename',
|
MessageDlg(lisInvalidCompilerFilename,
|
||||||
'The current compiler filename "'+CurCompilerFilename+'"'#13
|
Format(lisTheCurrentCompilerFilenameIsNotAValidExecutablePlz, ['"',
|
||||||
+'is not a valid executable.'#13
|
CurCompilerFilename, '"', #13, #13]),
|
||||||
+'Plz check Environment -> Environment Options -> Files',
|
|
||||||
mtWarning,[mbIgnore],0);
|
mtWarning,[mbIgnore],0);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
@ -103,28 +102,23 @@ begin
|
|||||||
or (not FileIsExecutable(EnvironmentOptions.CompilerFilename)) then
|
or (not FileIsExecutable(EnvironmentOptions.CompilerFilename)) then
|
||||||
exit;
|
exit;
|
||||||
if CurFPCSrcDir='' then begin
|
if CurFPCSrcDir='' then begin
|
||||||
MessageDlg('Free Pascal Sources not found',
|
MessageDlg(lisFreePascalSourcesNotFound,
|
||||||
'The Free Pascal source directory was not found.'#13
|
Format(lisTheFreePascalSourceDirectoryWasNotFoundSomeCodeFun, [#13,
|
||||||
+'Some code functions will not work.'#13
|
#13, #13]),
|
||||||
+'It is recommended that you install it and set the path'#13
|
|
||||||
+'Environment -> Environment Options -> Files',
|
|
||||||
mtWarning,[mbIgnore],0);
|
mtWarning,[mbIgnore],0);
|
||||||
end else begin
|
end else begin
|
||||||
DefaultFPCSrcDir:=FindDefaultFPCSrcDirectory;
|
DefaultFPCSrcDir:=FindDefaultFPCSrcDirectory;
|
||||||
if CompareFilenames(DefaultFPCSrcDir,CurFPCSrcDir)<>0 then begin
|
if CompareFilenames(DefaultFPCSrcDir,CurFPCSrcDir)<>0 then begin
|
||||||
r:=MessageDlg('Invalid Free Pascal source directory',
|
r:=MessageDlg(lisInvalidFreePascalSourceDirectory,
|
||||||
'The current Free Pascal source directory "'+CurFPCSrcDir+'"'#13
|
Format(lisTheCurrentFreePascalSourceDirectoryDoesNotLookCorr, ['"',
|
||||||
+'does not look correct.'#13
|
CurFPCSrcDir, '"', #13, #13, '"', DefaultFPCSrcDir, '"', #13]),
|
||||||
+'Choose Ok to choose the default "'+DefaultFPCSrcDir+'".'#13
|
|
||||||
+'Otherwise check Environment -> Environment Options -> Files',
|
|
||||||
mtWarning,[mbOk,mbIgnore],0);
|
mtWarning,[mbOk,mbIgnore],0);
|
||||||
if r=mrOk then
|
if r=mrOk then
|
||||||
CurFPCSrcDir:=DefaultFPCSrcDir;
|
CurFPCSrcDir:=DefaultFPCSrcDir;
|
||||||
end else begin
|
end else begin
|
||||||
MessageDlg('Invalid Free Pascal source directory',
|
MessageDlg(lisInvalidFreePascalSourceDirectory,
|
||||||
'The current Free Pascal source directory "'+CurFPCSrcDir+'"'#13
|
Format(lisTheCurrentFreePascalSourceDirectoryDoesNotLookCorr2, ['"',
|
||||||
+'does not look correct.'#13
|
CurFPCSrcDir, '"', #13, #13]),
|
||||||
+'Check Environment -> Environment Options -> Files',
|
|
||||||
mtWarning,[mbIgnore],0);
|
mtWarning,[mbIgnore],0);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
@ -144,29 +138,23 @@ begin
|
|||||||
if not CheckLazarusDirectory(CurLazDir) then begin
|
if not CheckLazarusDirectory(CurLazDir) then begin
|
||||||
if not InteractiveSetup then exit;
|
if not InteractiveSetup then exit;
|
||||||
if CurLazDir='' then begin
|
if CurLazDir='' then begin
|
||||||
MessageDlg('Lazarus directory not found',
|
MessageDlg(lisLazarusDirectoryNotFound,
|
||||||
'The Lazarus directory was not found.'#13
|
Format(lisTheLazarusDirectoryWasNotFoundYouWillNotBeAbleToCr, [#13, #13]
|
||||||
+'You will not be able to create LCL applications.'#13
|
),
|
||||||
+'Plz check Environment -> Environment Options -> Files',
|
|
||||||
mtWarning,[mbIgnore],0);
|
mtWarning,[mbIgnore],0);
|
||||||
end else begin
|
end else begin
|
||||||
DefaultLazDir:=ProgramDirectory;
|
DefaultLazDir:=ProgramDirectory;
|
||||||
if CompareFilenames(DefaultLazDir,CurLazDir)<>0 then begin
|
if CompareFilenames(DefaultLazDir,CurLazDir)<>0 then begin
|
||||||
r:=MessageDlg('Lazarus directory not found',
|
r:=MessageDlg(lisLazarusDirectoryNotFound,
|
||||||
'The current Lazarus directory "'+CurLazDir+'"'#13
|
Format(lisTheCurrentLazarusDirectoryDoesNotLookCorrectWithou, ['"',
|
||||||
+'does not look correct.'#13
|
CurLazDir, '"', #13, #13, #13, '"', DefaultLazDir, '"', #13]),
|
||||||
+'Without it You will not be able to create LCL applications.'#13
|
|
||||||
+'Choose Ok to choose the default "'+DefaultLazDir+'".'#13
|
|
||||||
+'Otherwise check Environment -> Environment Options -> Files',
|
|
||||||
mtWarning,[mbOk,mbIgnore],0);
|
mtWarning,[mbOk,mbIgnore],0);
|
||||||
if r=mrOk then
|
if r=mrOk then
|
||||||
CurLazDir:=DefaultLazDir;
|
CurLazDir:=DefaultLazDir;
|
||||||
end else begin
|
end else begin
|
||||||
MessageDlg('Lazarus directory not found',
|
MessageDlg(lisLazarusDirectoryNotFound,
|
||||||
'The current Lazarus directory "'+CurLazDir+'"'#13
|
Format(lisTheCurrentLazarusDirectoryDoesNotLookCorrectWithou2, ['"',
|
||||||
+'does not look correct.'#13
|
CurLazDir, '"', #13, #13, #13]),
|
||||||
+'Without it You will not be able to create LCL applications.'#13
|
|
||||||
+'Check Environment -> Environment Options -> Files',
|
|
||||||
mtWarning,[mbIgnore],0);
|
mtWarning,[mbIgnore],0);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
@ -480,7 +480,7 @@ resourcestring
|
|||||||
lisSelectDFMFiles = 'Select Delphi form files (*.dfm)';
|
lisSelectDFMFiles = 'Select Delphi form files (*.dfm)';
|
||||||
lisChooseDirectory = 'Choose directory';
|
lisChooseDirectory = 'Choose directory';
|
||||||
lisChooseLazarusSourceDirectory = 'Choose Lazarus Directory';
|
lisChooseLazarusSourceDirectory = 'Choose Lazarus Directory';
|
||||||
lisChooseCompilerPath = 'Choose compiler filename (ppc386)';
|
lisChooseCompilerPath = 'Choose compiler filename (%s)';
|
||||||
lisChooseFPCSourceDir = 'Choose FPC source directory';
|
lisChooseFPCSourceDir = 'Choose FPC source directory';
|
||||||
lisChooseMakePath = 'Choose make path';
|
lisChooseMakePath = 'Choose make path';
|
||||||
lisChooseDebuggerPath = 'Choose debugger filename';
|
lisChooseDebuggerPath = 'Choose debugger filename';
|
||||||
@ -634,7 +634,7 @@ resourcestring
|
|||||||
dlgMaxRecentProjs = 'Max recent project files';
|
dlgMaxRecentProjs = 'Max recent project files';
|
||||||
dlgQOpenLastPrj = 'Open last project at start';
|
dlgQOpenLastPrj = 'Open last project at start';
|
||||||
dlgLazarusDir = 'Lazarus directory (default for all projects)';
|
dlgLazarusDir = 'Lazarus directory (default for all projects)';
|
||||||
dlgFpcPath = 'Compiler path (ppc386)';
|
dlgFpcPath = 'Compiler path (%s)';
|
||||||
dlgFpcSrcPath = 'FPC source directory';
|
dlgFpcSrcPath = 'FPC source directory';
|
||||||
dlgMakePath = 'Make path';
|
dlgMakePath = 'Make path';
|
||||||
dlgDebugType = 'Debugger type and path';
|
dlgDebugType = 'Debugger type and path';
|
||||||
@ -837,9 +837,19 @@ resourcestring
|
|||||||
dlgCOOther = 'Other';
|
dlgCOOther = 'Other';
|
||||||
dlgCOInherited = 'Inherited';
|
dlgCOInherited = 'Inherited';
|
||||||
dlgCOCompilation = 'Compilation';
|
dlgCOCompilation = 'Compilation';
|
||||||
|
lisBrowseForCompiler = 'Browse for Compiler (%s)';
|
||||||
|
lisUnitOutputDirectory = 'Unit Output directory';
|
||||||
|
lisSelectANode = 'Select a node';
|
||||||
dlgShowCompilerOptions = 'Show compiler options';
|
dlgShowCompilerOptions = 'Show compiler options';
|
||||||
dlgCOOpts = 'Options: ';
|
dlgCOOpts = 'Options: ';
|
||||||
dlgCOStyle = 'Style:';
|
dlgCOStyle = 'Style:';
|
||||||
|
lisNoCompilerOptionsInherited = 'No compiler options inherited.';
|
||||||
|
lisunitPath = 'unit path';
|
||||||
|
lisincludePath = 'include path';
|
||||||
|
lisobjectPath = 'object path';
|
||||||
|
lislibraryPath = 'library path';
|
||||||
|
lislinkerOptions = 'linker options';
|
||||||
|
liscustomOptions = 'custom options';
|
||||||
dlgCOAsIs = 'As-Is';
|
dlgCOAsIs = 'As-Is';
|
||||||
dlgSymantecChecking = 'Symantec Checking:';
|
dlgSymantecChecking = 'Symantec Checking:';
|
||||||
dlgDelphi2Ext = 'Delphi 2 Extensions';
|
dlgDelphi2Ext = 'Delphi 2 Extensions';
|
||||||
@ -910,6 +920,7 @@ resourcestring
|
|||||||
dlgConfigFiles = 'Config Files:';
|
dlgConfigFiles = 'Config Files:';
|
||||||
dlgUseFpcCfg = 'Use Compiler Config File (fpc.cfg)';
|
dlgUseFpcCfg = 'Use Compiler Config File (fpc.cfg)';
|
||||||
dlgUseAdditionalConfig = 'Use Additional Compiler Config File';
|
dlgUseAdditionalConfig = 'Use Additional Compiler Config File';
|
||||||
|
lisCustomOptions2 = 'Custom options';
|
||||||
dlgStopAfterNrErr = 'Stop after number of errors:';
|
dlgStopAfterNrErr = 'Stop after number of errors:';
|
||||||
dlgOtherUnitFiles = 'Other Unit Files (Delimiter is semicolon):';
|
dlgOtherUnitFiles = 'Other Unit Files (Delimiter is semicolon):';
|
||||||
dlgCOIncFiles = 'Include Files:';
|
dlgCOIncFiles = 'Include Files:';
|
||||||
@ -920,6 +931,8 @@ resourcestring
|
|||||||
lisCOSkipCallingCompiler = 'Skip calling Compiler';
|
lisCOSkipCallingCompiler = 'Skip calling Compiler';
|
||||||
lisCOExecuteAfter = 'Execute after';
|
lisCOExecuteAfter = 'Execute after';
|
||||||
lisCOExecuteBefore = 'Execute before';
|
lisCOExecuteBefore = 'Execute before';
|
||||||
|
lisAdditionalCompilerOptionsInheritedFromPackages = 'Additional compiler '
|
||||||
|
+'options inherited from packages';
|
||||||
lisCOCommand = 'Command:';
|
lisCOCommand = 'Command:';
|
||||||
lisCOScanForFPCMessages = 'Scan for FPC messages';
|
lisCOScanForFPCMessages = 'Scan for FPC messages';
|
||||||
lisCOScanForMakeMessages = 'Scan for Make messages';
|
lisCOScanForMakeMessages = 'Scan for Make messages';
|
||||||
@ -1455,8 +1468,8 @@ resourcestring
|
|||||||
lisCodeToolsDefsCreateDefinesForFreePascalCompiler = 'Create Defines for '
|
lisCodeToolsDefsCreateDefinesForFreePascalCompiler = 'Create Defines for '
|
||||||
+'Free Pascal Compiler';
|
+'Free Pascal Compiler';
|
||||||
lisCodeToolsDefsThePathToTheFreePascalCompilerForExample = 'The '
|
lisCodeToolsDefsThePathToTheFreePascalCompilerForExample = 'The '
|
||||||
+'path to the free pascal compiler.%s For example %s/usr/bin/ppc386 -n%s '
|
+'path to the free pascal compiler.%s For example %s/usr/bin/%s -n%s '
|
||||||
+'or %s/usr/local/bin/fpc @/etc/11fpc.cfg%s.';
|
+'or %s/usr/local/bin/fpc @/etc/fpc.cfg%s.';
|
||||||
lisCodeToolsDefsCreateDefinesForFreePascalCVSSources = 'Create Defines for '
|
lisCodeToolsDefsCreateDefinesForFreePascalCVSSources = 'Create Defines for '
|
||||||
+'Free Pascal CVS Sources';
|
+'Free Pascal CVS Sources';
|
||||||
lisCodeToolsDefsTheFreePascalCVSSourceDir = 'The Free Pascal CVS source '
|
lisCodeToolsDefsTheFreePascalCVSSourceDir = 'The Free Pascal CVS source '
|
||||||
@ -2442,6 +2455,44 @@ resourcestring
|
|||||||
lisProcedureWithInterface = 'Procedure with interface';
|
lisProcedureWithInterface = 'Procedure with interface';
|
||||||
lisSubProcedure = 'Sub Procedure';
|
lisSubProcedure = 'Sub Procedure';
|
||||||
lisSubProcedureOnSameLevel = 'Sub Procedure on same level';
|
lisSubProcedureOnSameLevel = 'Sub Procedure on same level';
|
||||||
|
lisFreePascalCompilerNotFound = 'Free Pascal Compiler not found';
|
||||||
|
lisTheFreePascalCompilerFilenameWasNotFoundItIsRecomm = 'The Free Pascal '
|
||||||
|
+'compiler (filename: %s) was not found.%sIt is recommended that you '
|
||||||
|
+'install fpc.';
|
||||||
|
lisInvalidCompilerFilename = 'Invalid Compiler Filename';
|
||||||
|
lisTheCurrentCompilerFilenameIsNotAValidExecutablePlz = 'The current '
|
||||||
|
+'compiler filename %s%s%s%sis not a valid executable.%sPlz check '
|
||||||
|
+'Environment -> Environment Options -> Files';
|
||||||
|
lisFreePascalSourcesNotFound = 'Free Pascal Sources not found';
|
||||||
|
lisTheFreePascalSourceDirectoryWasNotFoundSomeCodeFun = 'The Free Pascal '
|
||||||
|
+'source directory was not found.%sSome code functions will not work.%sIt '
|
||||||
|
+'is recommended that you install it and set the path%sEnvironment -> '
|
||||||
|
+'Environment Options -> Files';
|
||||||
|
lisInvalidFreePascalSourceDirectory = 'Invalid Free Pascal source directory';
|
||||||
|
lisTheCurrentFreePascalSourceDirectoryDoesNotLookCorr2 = 'The current Free '
|
||||||
|
+'Pascal source directory %s%s%s%sdoes not look correct.%sCheck '
|
||||||
|
+'Environment -> Environment Options -> Files';
|
||||||
|
lisLazarusDirectoryNotFound = 'Lazarus directory not found';
|
||||||
|
lisTheCurrentLazarusDirectoryDoesNotLookCorrectWithou2 = 'The current '
|
||||||
|
+'Lazarus directory %s%s%s%sdoes not look correct.%sWithout it You will '
|
||||||
|
+'not be able to create LCL applications.%sCheck Environment -> '
|
||||||
|
+'Environment Options -> Files';
|
||||||
|
lisTheCurrentLazarusDirectoryDoesNotLookCorrectWithou = 'The current '
|
||||||
|
+'Lazarus directory %s%s%s%sdoes not look correct.%sWithout it You will '
|
||||||
|
+'not be able to create LCL applications.%sChoose Ok to choose the '
|
||||||
|
+'default %s%s%s.%sOtherwise check Environment -> Environment Options -> '
|
||||||
|
+'Files';
|
||||||
|
lisTheLazarusDirectoryWasNotFoundYouWillNotBeAbleToCr = 'The Lazarus '
|
||||||
|
+'directory was not found.%sYou will not be able to create LCL '
|
||||||
|
+'applications.%sPlz check Environment -> Environment Options -> Files';
|
||||||
|
lisTheCurrentFreePascalSourceDirectoryDoesNotLookCorr = 'The current Free '
|
||||||
|
+'Pascal source directory %s%s%s%sdoes not look correct.%sChoose Ok to '
|
||||||
|
+'choose the default %s%s%s.%sOtherwise check Environment -> Environment '
|
||||||
|
+'Options -> Files';
|
||||||
|
lisTheCurrentCompilerFilenameIsNotAValidExecutableCho = 'The current '
|
||||||
|
+'compiler filename %s%s%s%sis not a valid executable.%sChoose Ok to '
|
||||||
|
+'choose the default %s%s%s.%sOtherwise check Environment -> Environment '
|
||||||
|
+'Options -> Files';
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
end.
|
end.
|
||||||
|
@ -85,7 +85,8 @@ uses
|
|||||||
procedure GetDefaultCompilerFilenames(List: TStrings);
|
procedure GetDefaultCompilerFilenames(List: TStrings);
|
||||||
procedure GetDefaultMakeFilenames(List: TStrings);
|
procedure GetDefaultMakeFilenames(List: TStrings);
|
||||||
procedure GetDefaultTestBuildDirs(List: TStrings);
|
procedure GetDefaultTestBuildDirs(List: TStrings);
|
||||||
|
function GetDefaultCompilerFilename: string;
|
||||||
|
|
||||||
function GetDefaultLCLWidgetType: string;
|
function GetDefaultLCLWidgetType: string;
|
||||||
function GetDefaultTargetCPU: string;
|
function GetDefaultTargetCPU: string;
|
||||||
function GetDefaultTargetOS: string;
|
function GetDefaultTargetOS: string;
|
||||||
@ -111,6 +112,20 @@ begin
|
|||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function GetDefaultCompilerFilename: string;
|
||||||
|
begin
|
||||||
|
{$IFDEF CPUi386}
|
||||||
|
{$IFDEF windows}
|
||||||
|
Result:='ppc386.exe';
|
||||||
|
{$ELSE}
|
||||||
|
Result:='ppc386';
|
||||||
|
{$ENDIF}
|
||||||
|
{$ENDIF}
|
||||||
|
{$IFDEF CPUPowerPC}
|
||||||
|
Result:='ppcppc';
|
||||||
|
{$ENDIF}
|
||||||
|
end;
|
||||||
|
|
||||||
function CheckFPCSourceDir(const ADirectory: string): boolean;
|
function CheckFPCSourceDir(const ADirectory: string): boolean;
|
||||||
var
|
var
|
||||||
Dir: String;
|
Dir: String;
|
||||||
@ -157,6 +172,9 @@ end.
|
|||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.28 2004/08/13 12:28:01 mattias
|
||||||
|
replaced ppc386 with platform independent name
|
||||||
|
|
||||||
Revision 1.27 2004/08/06 07:06:09 mattias
|
Revision 1.27 2004/08/06 07:06:09 mattias
|
||||||
changed cpu target ppc to powerpc
|
changed cpu target ppc to powerpc
|
||||||
|
|
||||||
@ -218,7 +236,7 @@ end.
|
|||||||
MG: improved default make path for build lazarus
|
MG: improved default make path for build lazarus
|
||||||
|
|
||||||
Revision 1.7 2002/07/01 05:11:34 lazarus
|
Revision 1.7 2002/07/01 05:11:34 lazarus
|
||||||
MG: improved default path to lazarus and ppc386
|
MG: improved default path to lazarus and ppc386/ppcppc
|
||||||
|
|
||||||
Revision 1.6 2002/05/10 06:57:42 lazarus
|
Revision 1.6 2002/05/10 06:57:42 lazarus
|
||||||
MG: updated licenses
|
MG: updated licenses
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
MsgView.pp - compiler message view
|
MsgView.pp - compiler message view
|
||||||
----------------------------------
|
----------------------------------
|
||||||
TMessagesView is responsible for displaying the
|
TMessagesView is responsible for displaying the
|
||||||
PPC386 compiler messages.
|
fpc/make/codetools messages.
|
||||||
|
|
||||||
|
|
||||||
Initial Revision : Mon Apr 17th 2000
|
Initial Revision : Mon Apr 17th 2000
|
||||||
|
Loading…
Reference in New Issue
Block a user