mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 06:39:12 +02:00
make executable location is a environment option now.
git-svn-id: trunk@5716 -
This commit is contained in:
parent
cf925ed5a5
commit
12f8270c5b
20
Makefile
20
Makefile
@ -1,8 +1,8 @@
|
|||||||
#
|
#
|
||||||
# Don't edit, this file is generated by FPCMake Version 1.1 [2004/05/29]
|
# Don't edit, this file is generated by FPCMake Version 1.1 [2004/07/25]
|
||||||
#
|
#
|
||||||
default: all
|
default: all
|
||||||
MAKEFILETARGETS=linux go32v2 win32 os2 freebsd beos netbsd amiga atari sunos qnx netware openbsd wdosx palmos macos darwin emx watcom
|
MAKEFILETARGETS=linux go32v2 win32 os2 freebsd beos netbsd amiga atari sunos qnx netware openbsd wdosx palmos macos darwin emx watcom morphos
|
||||||
BSDs = freebsd netbsd openbsd darwin
|
BSDs = freebsd netbsd openbsd darwin
|
||||||
UNIXs = linux $(BSDs) sunos qnx
|
UNIXs = linux $(BSDs) sunos qnx
|
||||||
FORCE:
|
FORCE:
|
||||||
@ -545,6 +545,11 @@ EXEEXT=
|
|||||||
SHAREDLIBEXT=.library
|
SHAREDLIBEXT=.library
|
||||||
FPCMADE=fpcmade.amg
|
FPCMADE=fpcmade.amg
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(OS_TARGET),morphos)
|
||||||
|
EXEEXT=
|
||||||
|
SHAREDLIBEXT=.library
|
||||||
|
FPCMADE=fpcmade.mos
|
||||||
|
endif
|
||||||
ifeq ($(OS_TARGET),atari)
|
ifeq ($(OS_TARGET),atari)
|
||||||
EXEEXT=.ttp
|
EXEEXT=.ttp
|
||||||
FPCMADE=fpcmade.ata
|
FPCMADE=fpcmade.ata
|
||||||
@ -1369,6 +1374,17 @@ REQUIRE_PACKAGES_NETDB=1
|
|||||||
REQUIRE_PACKAGES_LIBASYNC=1
|
REQUIRE_PACKAGES_LIBASYNC=1
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(OS_TARGET),morphos)
|
||||||
|
ifeq ($(CPU_TARGET),powerpc)
|
||||||
|
REQUIRE_PACKAGES_RTL=1
|
||||||
|
REQUIRE_PACKAGES_PASZLIB=1
|
||||||
|
REQUIRE_PACKAGES_FCL=1
|
||||||
|
REQUIRE_PACKAGES_REGEXPR=1
|
||||||
|
REQUIRE_PACKAGES_PASJPEG=1
|
||||||
|
REQUIRE_PACKAGES_NETDB=1
|
||||||
|
REQUIRE_PACKAGES_LIBASYNC=1
|
||||||
|
endif
|
||||||
|
endif
|
||||||
ifdef REQUIRE_PACKAGES_RTL
|
ifdef REQUIRE_PACKAGES_RTL
|
||||||
PACKAGEDIR_RTL:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /rtl/$(OS_TARGET)/Makefile.fpc,$(PACKAGESDIR))))))
|
PACKAGEDIR_RTL:=$(firstword $(subst /Makefile.fpc,,$(strip $(wildcard $(addsuffix /rtl/$(OS_TARGET)/Makefile.fpc,$(PACKAGESDIR))))))
|
||||||
ifneq ($(PACKAGEDIR_RTL),)
|
ifneq ($(PACKAGEDIR_RTL),)
|
||||||
|
@ -112,7 +112,6 @@ type
|
|||||||
FItemLCL: TBuildLazarusItem;
|
FItemLCL: TBuildLazarusItem;
|
||||||
FItemPkgReg: TBuildLazarusItem;
|
FItemPkgReg: TBuildLazarusItem;
|
||||||
FItemSynEdit: TBuildLazarusItem;
|
FItemSynEdit: TBuildLazarusItem;
|
||||||
fMakeFilename: string;
|
|
||||||
fExtraOptions: string;
|
fExtraOptions: string;
|
||||||
FTargetDirectory: string;
|
FTargetDirectory: string;
|
||||||
fTargetOS: string;
|
fTargetOS: string;
|
||||||
@ -149,7 +148,7 @@ type
|
|||||||
property ItemIDE: TBuildLazarusItem read FItemIDE;
|
property ItemIDE: TBuildLazarusItem read FItemIDE;
|
||||||
property ItemExamples: TBuildLazarusItem read FItemExamples;
|
property ItemExamples: TBuildLazarusItem read FItemExamples;
|
||||||
property CleanAll: boolean read fCleanAll write fCleanAll;
|
property CleanAll: boolean read fCleanAll write fCleanAll;
|
||||||
property MakeFilename: string read fMakeFilename write fMakeFilename;
|
//property MakeFilename: string read fMakeFilename write fMakeFilename;
|
||||||
property ExtraOptions: string read fExtraOptions write fExtraOptions;
|
property ExtraOptions: string read fExtraOptions write fExtraOptions;
|
||||||
property TargetOS: string read fTargetOS write SetTargetOS;
|
property TargetOS: string read fTargetOS write SetTargetOS;
|
||||||
property LCLPlatform: TLCLPlatform read fLCLPlatform write fLCLPlatform;
|
property LCLPlatform: TLCLPlatform read fLCLPlatform write fLCLPlatform;
|
||||||
@ -212,7 +211,7 @@ function ShowConfigureBuildLazarusDlg(
|
|||||||
|
|
||||||
function BuildLazarus(Options: TBuildLazarusOptions;
|
function BuildLazarus(Options: TBuildLazarusOptions;
|
||||||
ExternalTools: TExternalToolList; Macros: TTransferMacroList;
|
ExternalTools: TExternalToolList; Macros: TTransferMacroList;
|
||||||
const PackageOptions, CompilerPath: string;
|
const PackageOptions, CompilerPath, MakePath: string;
|
||||||
Flags: TBuildLazarusFlags): TModalResult;
|
Flags: TBuildLazarusFlags): TModalResult;
|
||||||
function CreateBuildLazarusOptions(Options: TBuildLazarusOptions;
|
function CreateBuildLazarusOptions(Options: TBuildLazarusOptions;
|
||||||
ItemIndex: integer; Macros: TTransferMacroList;
|
ItemIndex: integer; Macros: TTransferMacroList;
|
||||||
@ -283,7 +282,7 @@ end;
|
|||||||
|
|
||||||
function BuildLazarus(Options: TBuildLazarusOptions;
|
function BuildLazarus(Options: TBuildLazarusOptions;
|
||||||
ExternalTools: TExternalToolList; Macros: TTransferMacroList;
|
ExternalTools: TExternalToolList; Macros: TTransferMacroList;
|
||||||
const PackageOptions, CompilerPath: string;
|
const PackageOptions, CompilerPath, MakePath: string;
|
||||||
Flags: TBuildLazarusFlags): TModalResult;
|
Flags: TBuildLazarusFlags): TModalResult;
|
||||||
var
|
var
|
||||||
Tool: TExternalToolOptions;
|
Tool: TExternalToolOptions;
|
||||||
@ -296,7 +295,7 @@ begin
|
|||||||
Tool:=TExternalToolOptions.Create;
|
Tool:=TExternalToolOptions.Create;
|
||||||
try
|
try
|
||||||
// setup external tool
|
// setup external tool
|
||||||
Tool.Filename:=Options.MakeFilename;
|
Tool.Filename:=MakePath;
|
||||||
Tool.EnvironmentOverrides.Values['LCL_PLATFORM']:=
|
Tool.EnvironmentOverrides.Values['LCL_PLATFORM']:=
|
||||||
LCLPlatformNames[Options.LCLPlatform];
|
LCLPlatformNames[Options.LCLPlatform];
|
||||||
Tool.EnvironmentOverrides.Values['LANG']:= 'en_US';
|
Tool.EnvironmentOverrides.Values['LANG']:= 'en_US';
|
||||||
@ -955,10 +954,9 @@ begin
|
|||||||
XMLConfig.SetDeleteValue(Path+'CleanAll/Value',fCleanAll,true);
|
XMLConfig.SetDeleteValue(Path+'CleanAll/Value',fCleanAll,true);
|
||||||
XMLConfig.SetDeleteValue(Path+'ExtraOptions/Value',fExtraOptions,'');
|
XMLConfig.SetDeleteValue(Path+'ExtraOptions/Value',fExtraOptions,'');
|
||||||
XMLConfig.SetDeleteValue(Path+'TargetOS/Value',TargetOS,'');
|
XMLConfig.SetDeleteValue(Path+'TargetOS/Value',TargetOS,'');
|
||||||
XMLConfig.SetDeleteValue(Path+'MakeFilename/Value',fMakeFilename,'');
|
|
||||||
XMLConfig.SetDeleteValue(Path+'LCLPlatform/Value',
|
XMLConfig.SetDeleteValue(Path+'LCLPlatform/Value',
|
||||||
LCLPlatformNames[fLCLPlatform],
|
LCLPlatformNames[fLCLPlatform],
|
||||||
LCLPlatformNames[lpGtk]);
|
GetDefaultLCLWidgetType);
|
||||||
XMLConfig.SetDeleteValue(Path+'TargetDirectory/Value',
|
XMLConfig.SetDeleteValue(Path+'TargetDirectory/Value',
|
||||||
FTargetDirectory,DefaultTargetDirectory);
|
FTargetDirectory,DefaultTargetDirectory);
|
||||||
XMLConfig.SetDeleteValue(Path+'WithStaticPackages/Value',FWithStaticPackages,
|
XMLConfig.SetDeleteValue(Path+'WithStaticPackages/Value',FWithStaticPackages,
|
||||||
@ -980,7 +978,6 @@ begin
|
|||||||
CleanAll:=Source.CleanAll;
|
CleanAll:=Source.CleanAll;
|
||||||
ExtraOptions:=Source.ExtraOptions;
|
ExtraOptions:=Source.ExtraOptions;
|
||||||
TargetOS:=Source.TargetOS;
|
TargetOS:=Source.TargetOS;
|
||||||
MakeFilename:=Source.MakeFilename;
|
|
||||||
LCLPlatform:=Source.LCLPlatform;
|
LCLPlatform:=Source.LCLPlatform;
|
||||||
TargetDirectory:=Source.TargetDirectory;
|
TargetDirectory:=Source.TargetDirectory;
|
||||||
WithStaticPackages:=Source.WithStaticPackages;
|
WithStaticPackages:=Source.WithStaticPackages;
|
||||||
@ -1045,9 +1042,8 @@ begin
|
|||||||
fCleanAll:=XMLConfig.GetValue(Path+'CleanAll/Value',true);
|
fCleanAll:=XMLConfig.GetValue(Path+'CleanAll/Value',true);
|
||||||
fExtraOptions:=XMLConfig.GetValue(Path+'ExtraOptions/Value','');
|
fExtraOptions:=XMLConfig.GetValue(Path+'ExtraOptions/Value','');
|
||||||
TargetOS:=XMLConfig.GetValue(Path+'TargetOS/Value','');
|
TargetOS:=XMLConfig.GetValue(Path+'TargetOS/Value','');
|
||||||
fMakeFilename:=XMLConfig.GetValue(Path+'MakeFilename/Value','');
|
|
||||||
fLCLPlatform:=StrToLCLPlatform(XMLConfig.GetValue(Path+'LCLPlatform/Value',
|
fLCLPlatform:=StrToLCLPlatform(XMLConfig.GetValue(Path+'LCLPlatform/Value',
|
||||||
LCLPlatformNames[lpGtk]));
|
GetDefaultLCLWidgetType));
|
||||||
FTargetDirectory:=AppendPathDelim(SetDirSeparators(
|
FTargetDirectory:=AppendPathDelim(SetDirSeparators(
|
||||||
XMLConfig.GetValue(Path+'TargetDirectory/Value',
|
XMLConfig.GetValue(Path+'TargetDirectory/Value',
|
||||||
DefaultTargetDirectory)));
|
DefaultTargetDirectory)));
|
||||||
@ -1111,11 +1107,10 @@ var
|
|||||||
i: Integer;
|
i: Integer;
|
||||||
begin
|
begin
|
||||||
fCleanAll:=true;
|
fCleanAll:=true;
|
||||||
fMakeFilename:='';
|
|
||||||
fExtraOptions:='';
|
fExtraOptions:='';
|
||||||
FTargetDirectory:=DefaultTargetDirectory;
|
FTargetDirectory:=DefaultTargetDirectory;
|
||||||
TargetOS:='';
|
TargetOS:='';
|
||||||
fLCLPlatform:=lpGtk;
|
fLCLPlatform:=StrToLCLPlatform(GetDefaultLCLWidgetType);
|
||||||
|
|
||||||
// auto install packages
|
// auto install packages
|
||||||
fStaticAutoInstallPackages.Clear;
|
fStaticAutoInstallPackages.Clear;
|
||||||
|
@ -215,7 +215,9 @@ type
|
|||||||
FCompilerFileHistory: TStringList;
|
FCompilerFileHistory: TStringList;
|
||||||
FFPCSourceDirectory: string;
|
FFPCSourceDirectory: string;
|
||||||
FFPCSourceDirHistory: TStringList;
|
FFPCSourceDirHistory: TStringList;
|
||||||
// TODO: store per debuggerclass options
|
FMakeFileName: string;
|
||||||
|
FMakeFileHistory: TStringList;
|
||||||
|
// TODO: store per debuggerclass options
|
||||||
// Maybe these should go to a new TDebuggerOptions class
|
// Maybe these should go to a new TDebuggerOptions class
|
||||||
FDebuggerClass: string;
|
FDebuggerClass: string;
|
||||||
FDebuggerFilename: string; // per debugger class
|
FDebuggerFilename: string; // per debugger class
|
||||||
@ -249,6 +251,7 @@ type
|
|||||||
fLanguage: TLazarusLanguage;
|
fLanguage: TLazarusLanguage;
|
||||||
|
|
||||||
procedure SetCompilerFilename(const AValue: string);
|
procedure SetCompilerFilename(const AValue: string);
|
||||||
|
procedure SetMakeFilename(const AValue: string);
|
||||||
procedure SetDebuggerFilename(const AValue: string);
|
procedure SetDebuggerFilename(const AValue: string);
|
||||||
procedure SetFPCSourceDirectory(const AValue: string);
|
procedure SetFPCSourceDirectory(const AValue: string);
|
||||||
procedure SetLazarusDirectory(const AValue: string);
|
procedure SetLazarusDirectory(const AValue: string);
|
||||||
@ -347,6 +350,10 @@ type
|
|||||||
write SetFPCSourceDirectory;
|
write SetFPCSourceDirectory;
|
||||||
property FPCSourceDirHistory: TStringList read FFPCSourceDirHistory
|
property FPCSourceDirHistory: TStringList read FFPCSourceDirHistory
|
||||||
write FFPCSourceDirHistory;
|
write FFPCSourceDirHistory;
|
||||||
|
property MakeFilename: string read FMakeFilename
|
||||||
|
write SetMakeFilename;
|
||||||
|
property MakeFileHistory: TStringList read FMakeFileHistory
|
||||||
|
write FMakeFileHistory;
|
||||||
property DebuggerClass: String read FDebuggerClass write FDebuggerClass;
|
property DebuggerClass: String read FDebuggerClass write FDebuggerClass;
|
||||||
property DebuggerFilename: string read FDebuggerFilename
|
property DebuggerFilename: string read FDebuggerFilename
|
||||||
write SetDebuggerFilename;
|
write SetDebuggerFilename;
|
||||||
@ -509,6 +516,9 @@ type
|
|||||||
FPCSourceDirGroupBox: TGroupBox;
|
FPCSourceDirGroupBox: TGroupBox;
|
||||||
FPCSourceDirComboBox: TComboBox;
|
FPCSourceDirComboBox: TComboBox;
|
||||||
FPCSourceDirButton: TButton;
|
FPCSourceDirButton: TButton;
|
||||||
|
MakePathGroupBox: TGroupBox;
|
||||||
|
MakePathComboBox: TComboBox;
|
||||||
|
MakePathButton: TButton;
|
||||||
TestBuildDirGroupBox: TGroupBox;
|
TestBuildDirGroupBox: TGroupBox;
|
||||||
TestBuildDirComboBox: TComboBox;
|
TestBuildDirComboBox: TComboBox;
|
||||||
TestBuildDirButton: TButton;
|
TestBuildDirButton: TButton;
|
||||||
@ -547,6 +557,7 @@ type
|
|||||||
procedure BakTypeRadioGroupClick(Sender: TObject);
|
procedure BakTypeRadioGroupClick(Sender: TObject);
|
||||||
procedure CompilerPathGroupBoxResize(Sender: TObject);
|
procedure CompilerPathGroupBoxResize(Sender: TObject);
|
||||||
procedure FPCSourceDirGroupBoxResize(Sender: TObject);
|
procedure FPCSourceDirGroupBoxResize(Sender: TObject);
|
||||||
|
procedure MakePathGroupBoxResize(Sender: TObject);
|
||||||
procedure FilesButtonClick(Sender: TObject);
|
procedure FilesButtonClick(Sender: TObject);
|
||||||
procedure DirectoriesButtonClick(Sender: TObject);
|
procedure DirectoriesButtonClick(Sender: TObject);
|
||||||
procedure FormEditMiscGroupBoxResize(Sender: TObject);
|
procedure FormEditMiscGroupBoxResize(Sender: TObject);
|
||||||
@ -579,6 +590,7 @@ type
|
|||||||
FOldLazarusDir: string;
|
FOldLazarusDir: string;
|
||||||
FOldCompilerFilename: string;
|
FOldCompilerFilename: string;
|
||||||
FOldFPCSourceDir: string;
|
FOldFPCSourceDir: string;
|
||||||
|
FOldMakeFilename: string;
|
||||||
FOldTestDir: string;
|
FOldTestDir: string;
|
||||||
procedure SetCategoryPage(const AValue: TEnvOptsDialogPage);
|
procedure SetCategoryPage(const AValue: TEnvOptsDialogPage);
|
||||||
procedure SetupFilesPage(Page: integer);
|
procedure SetupFilesPage(Page: integer);
|
||||||
@ -844,6 +856,8 @@ begin
|
|||||||
FCompilerFileHistory:=TStringList.Create;
|
FCompilerFileHistory:=TStringList.Create;
|
||||||
FPCSourceDirectory:='';
|
FPCSourceDirectory:='';
|
||||||
FFPCSourceDirHistory:=TStringList.Create;
|
FFPCSourceDirHistory:=TStringList.Create;
|
||||||
|
MakeFilename:='';
|
||||||
|
FMakeFileHistory:=TStringList.Create;
|
||||||
DebuggerFilename:='';
|
DebuggerFilename:='';
|
||||||
FDebuggerFileHistory:=TStringList.Create;
|
FDebuggerFileHistory:=TStringList.Create;
|
||||||
TestBuildDirectory:=GetDefaultTestBuildDirectory;
|
TestBuildDirectory:=GetDefaultTestBuildDirectory;
|
||||||
@ -891,6 +905,7 @@ begin
|
|||||||
FLazarusDirsHistory.Free;
|
FLazarusDirsHistory.Free;
|
||||||
FCompilerFileHistory.Free;
|
FCompilerFileHistory.Free;
|
||||||
FFPCSourceDirHistory.Free;
|
FFPCSourceDirHistory.Free;
|
||||||
|
FMakeFileHistory.Free;
|
||||||
FDebuggerFileHistory.Free;
|
FDebuggerFileHistory.Free;
|
||||||
FTestBuildDirHistory.Free;
|
FTestBuildDirHistory.Free;
|
||||||
if IDEOptionDefs.IDEDialogLayoutList=FIDEDialogLayoutList then
|
if IDEOptionDefs.IDEDialogLayoutList=FIDEDialogLayoutList then
|
||||||
@ -1079,7 +1094,13 @@ begin
|
|||||||
if FFPCSourceDirHistory.Count=0 then begin
|
if FFPCSourceDirHistory.Count=0 then begin
|
||||||
|
|
||||||
end;
|
end;
|
||||||
|
MakeFilename:=TrimFilename(XMLConfig.GetValue(
|
||||||
|
Path+'MakeFilename/Value',FMakeFilename));
|
||||||
|
LoadRecentList(XMLConfig,FMakeFileHistory,
|
||||||
|
Path+'MakeFilename/History/');
|
||||||
|
if FMakeFileHistory.Count=0 then
|
||||||
|
GetDefaultMakeFilenames(FMakeFileHistory);
|
||||||
|
|
||||||
TestBuildDirectory:=XMLConfig.GetValue(
|
TestBuildDirectory:=XMLConfig.GetValue(
|
||||||
Path+'TestBuildDirectory/Value',FTestBuildDirectory);
|
Path+'TestBuildDirectory/Value',FTestBuildDirectory);
|
||||||
LoadRecentList(XMLConfig,FTestBuildDirHistory,
|
LoadRecentList(XMLConfig,FTestBuildDirHistory,
|
||||||
@ -1284,6 +1305,10 @@ begin
|
|||||||
Path+'FPCSourceDirectory/Value',FFPCSourceDirectory);
|
Path+'FPCSourceDirectory/Value',FFPCSourceDirectory);
|
||||||
SaveRecentList(XMLConfig,FFPCSourceDirHistory,
|
SaveRecentList(XMLConfig,FFPCSourceDirHistory,
|
||||||
Path+'FPCSourceDirectory/History/');
|
Path+'FPCSourceDirectory/History/');
|
||||||
|
XMLConfig.SetDeleteValue(
|
||||||
|
Path+'MakeFilename/Value',FMakeFilename,'');
|
||||||
|
SaveRecentList(XMLConfig,FMakeFileHistory,
|
||||||
|
Path+'MakeFilename/History/');
|
||||||
XMLConfig.SetValue(
|
XMLConfig.SetValue(
|
||||||
Path+'TestBuildDirectory/Value',FTestBuildDirectory);
|
Path+'TestBuildDirectory/Value',FTestBuildDirectory);
|
||||||
SaveRecentList(XMLConfig,FTestBuildDirHistory,
|
SaveRecentList(XMLConfig,FTestBuildDirHistory,
|
||||||
@ -1481,6 +1506,12 @@ begin
|
|||||||
FCompilerFilename:=TrimFilename(AValue);
|
FCompilerFilename:=TrimFilename(AValue);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TEnvironmentOptions.SetMakeFilename(const AValue: string);
|
||||||
|
begin
|
||||||
|
if FMakeFilename=AValue then exit;
|
||||||
|
FMakeFilename:=TrimFilename(AValue);
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TEnvironmentOptions.SetDebuggerFilename(const AValue: string);
|
procedure TEnvironmentOptions.SetDebuggerFilename(const AValue: string);
|
||||||
var
|
var
|
||||||
SpacePos: Integer;
|
SpacePos: Integer;
|
||||||
@ -2205,6 +2236,33 @@ begin
|
|||||||
OnClick:=@DirectoriesButtonClick;
|
OnClick:=@DirectoriesButtonClick;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
MakePathGroupBox:=TGroupBox.Create(Self);
|
||||||
|
with MakePathGroupBox do begin
|
||||||
|
Name:='MakePathGroupBox';
|
||||||
|
Parent:=NoteBook.Page[Page];
|
||||||
|
Caption:=dlgMakePath;
|
||||||
|
OnResize:=@MakePathGroupBoxResize;
|
||||||
|
end;
|
||||||
|
|
||||||
|
MakePathComboBox:=TComboBox.Create(Self);
|
||||||
|
with MakePathComboBox do begin
|
||||||
|
Name:='MakePathComboBox';
|
||||||
|
Parent:=MakePathGroupBox;
|
||||||
|
with Items do begin
|
||||||
|
BeginUpdate;
|
||||||
|
Add('/usr/bin/make');
|
||||||
|
EndUpdate;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
|
MakePathButton:=TButton.Create(Self);
|
||||||
|
with MakePathButton do begin
|
||||||
|
Name:='MakePathButton';
|
||||||
|
Parent:=MakePathGroupBox;
|
||||||
|
Caption:='...';
|
||||||
|
OnClick:=@FilesButtonClick;
|
||||||
|
end;
|
||||||
|
|
||||||
TestBuildDirGroupBox:=TGroupBox.Create(Self);
|
TestBuildDirGroupBox:=TGroupBox.Create(Self);
|
||||||
with TestBuildDirGroupBox do begin
|
with TestBuildDirGroupBox do begin
|
||||||
Name:='TestBuildDirGroupBox';
|
Name:='TestBuildDirGroupBox';
|
||||||
@ -2929,6 +2987,10 @@ begin
|
|||||||
SetBounds(x,y,w,h);
|
SetBounds(x,y,w,h);
|
||||||
inc(y,h+SpaceH);
|
inc(y,h+SpaceH);
|
||||||
|
|
||||||
|
with MakePathGroupBox do
|
||||||
|
SetBounds(x,y,w,h);
|
||||||
|
inc(y,h+SpaceH);
|
||||||
|
|
||||||
with TestBuildDirGroupBox do
|
with TestBuildDirGroupBox do
|
||||||
SetBounds(x,y,w,h);
|
SetBounds(x,y,w,h);
|
||||||
inc(y,h+SpaceH);
|
inc(y,h+SpaceH);
|
||||||
@ -3070,6 +3132,18 @@ begin
|
|||||||
SetBounds(x+1,0,w-2-x-1,FPCSourceDirComboBox.Height);
|
SetBounds(x+1,0,w-2-x-1,FPCSourceDirComboBox.Height);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TEnvironmentOptionsDialog.MakePathGroupBoxResize(Sender: TObject);
|
||||||
|
var
|
||||||
|
x: Integer;
|
||||||
|
w: Integer;
|
||||||
|
begin
|
||||||
|
w:=MakePathGroupBox.ClientWidth;
|
||||||
|
x:=w-25;
|
||||||
|
with MakePathComboBox do
|
||||||
|
SetBounds(2,0,x-1-2,Height);
|
||||||
|
with MakePathButton do
|
||||||
|
SetBounds(x+1,0,w-2-x-1,MakePathComboBox.Height);end;
|
||||||
|
|
||||||
procedure TEnvironmentOptionsDialog.FilesButtonClick(Sender: TObject);
|
procedure TEnvironmentOptionsDialog.FilesButtonClick(Sender: TObject);
|
||||||
var
|
var
|
||||||
OpenDialog: TOpenDialog;
|
OpenDialog: TOpenDialog;
|
||||||
@ -3080,16 +3154,29 @@ begin
|
|||||||
InputHistories.ApplyFileDialogSettings(OpenDialog);
|
InputHistories.ApplyFileDialogSettings(OpenDialog);
|
||||||
OpenDialog.Options:=OpenDialog.Options+[ofPathMustExist];
|
OpenDialog.Options:=OpenDialog.Options+[ofPathMustExist];
|
||||||
// set title
|
// set title
|
||||||
OpenDialog.Title:=lisChooseCompilerPath;
|
if Sender=CompilerPathButton then
|
||||||
|
OpenDialog.Title:=lisChooseCompilerPath
|
||||||
|
else if Sender=MakePathButton then
|
||||||
|
OpenDialog.Title:=lisChooseMakePath
|
||||||
|
else
|
||||||
|
exit;
|
||||||
|
|
||||||
if OpenDialog.Execute then begin
|
if OpenDialog.Execute then begin
|
||||||
AFilename:=CleanAndExpandFilename(OpenDialog.Filename);
|
AFilename:=CleanAndExpandFilename(OpenDialog.Filename);
|
||||||
|
|
||||||
// check compiler filename
|
if Sender=CompilerPathButton then begin
|
||||||
SetComboBoxText(CompilerPathComboBox,AFilename);
|
// check compiler filename
|
||||||
CheckExecutable(FOldCompilerFilename,CompilerPathComboBox.Text,
|
SetComboBoxText(CompilerPathComboBox,AFilename);
|
||||||
lisEnvOptDlgInvalidCompilerFilename,
|
CheckExecutable(FOldCompilerFilename,CompilerPathComboBox.Text,
|
||||||
lisEnvOptDlgInvalidCompilerFilenameMsg);
|
lisEnvOptDlgInvalidCompilerFilename,
|
||||||
|
lisEnvOptDlgInvalidCompilerFilenameMsg);
|
||||||
|
end else if Sender=MakePathButton then begin
|
||||||
|
//check make filename
|
||||||
|
SetComboBoxText(MakePathComboBox,AFilename);
|
||||||
|
CheckExecutable(FOldMakeFilename,MakePathComboBox.Text,
|
||||||
|
lisEnvOptDlgInvalidMakeFilename,
|
||||||
|
lisEnvOptDlgInvalidMakeFilenameMsg);
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
InputHistories.StoreFileDialogSettings(OpenDialog);
|
InputHistories.StoreFileDialogSettings(OpenDialog);
|
||||||
finally
|
finally
|
||||||
@ -3607,6 +3694,9 @@ begin
|
|||||||
FPCSourceDirComboBox.Items.Assign(FPCSourceDirHistory);
|
FPCSourceDirComboBox.Items.Assign(FPCSourceDirHistory);
|
||||||
FOldFPCSourceDir:=FPCSourceDirectory;
|
FOldFPCSourceDir:=FPCSourceDirectory;
|
||||||
SetComboBoxText(FPCSourceDirComboBox,FPCSourceDirectory,MaxComboBoxCount);
|
SetComboBoxText(FPCSourceDirComboBox,FPCSourceDirectory,MaxComboBoxCount);
|
||||||
|
MakePathComboBox.Items.Assign(MakeFileHistory);
|
||||||
|
FOldMakeFilename:=MakeFilename;
|
||||||
|
SetComboBoxText(MakePathComboBox,MakeFilename,MaxComboBoxCount);
|
||||||
TestBuildDirComboBox.Items.Assign(TestBuildDirHistory);
|
TestBuildDirComboBox.Items.Assign(TestBuildDirHistory);
|
||||||
FOldTestDir:=TestBuildDirectory;
|
FOldTestDir:=TestBuildDirectory;
|
||||||
SetComboBoxText(TestBuildDirComboBox,TestBuildDirectory,MaxComboBoxCount);
|
SetComboBoxText(TestBuildDirComboBox,TestBuildDirectory,MaxComboBoxCount);
|
||||||
@ -3732,6 +3822,8 @@ begin
|
|||||||
CompilerFileHistory.Assign(CompilerPathComboBox.Items);
|
CompilerFileHistory.Assign(CompilerPathComboBox.Items);
|
||||||
FPCSourceDirectory:=FPCSourceDirComboBox.Text;
|
FPCSourceDirectory:=FPCSourceDirComboBox.Text;
|
||||||
FPCSourceDirHistory.Assign(FPCSourceDirComboBox.Items);
|
FPCSourceDirHistory.Assign(FPCSourceDirComboBox.Items);
|
||||||
|
MakeFilename:=MakePathComboBox.Text;
|
||||||
|
MakeFileHistory.Assign(MakePathComboBox.Items);
|
||||||
TestBuildDirHistory.Assign(TestBuildDirComboBox.Items);
|
TestBuildDirHistory.Assign(TestBuildDirComboBox.Items);
|
||||||
TestBuildDirectory:=TestBuildDirComboBox.Text;
|
TestBuildDirectory:=TestBuildDirComboBox.Text;
|
||||||
|
|
||||||
@ -3947,14 +4039,18 @@ end;
|
|||||||
function TEnvironmentOptionsDialog.CheckValues: boolean;
|
function TEnvironmentOptionsDialog.CheckValues: boolean;
|
||||||
begin
|
begin
|
||||||
Result:=false;
|
Result:=false;
|
||||||
|
// check lazarus directory
|
||||||
|
if not CheckLazarusDir then exit;
|
||||||
// check compiler filename
|
// check compiler filename
|
||||||
if not CheckExecutable(FOldCompilerFilename,CompilerPathComboBox.Text,
|
if not CheckExecutable(FOldCompilerFilename,CompilerPathComboBox.Text,
|
||||||
lisEnvOptDlgInvalidCompilerFilename,lisEnvOptDlgInvalidCompilerFilenameMsg)
|
lisEnvOptDlgInvalidCompilerFilename,lisEnvOptDlgInvalidCompilerFilenameMsg)
|
||||||
then exit;
|
then exit;
|
||||||
// check lazarus directory
|
|
||||||
if not CheckLazarusDir then exit;
|
|
||||||
// check fpc source directory
|
// check fpc source directory
|
||||||
if not IsFPCSourceDir then exit;
|
if not IsFPCSourceDir then exit;
|
||||||
|
// check make filename
|
||||||
|
if not CheckExecutable(FOldMakeFilename,MakePathComboBox.Text,
|
||||||
|
lisEnvOptDlgInvalidMakeFilename,lisEnvOptDlgInvalidMakeFilenameMsg)
|
||||||
|
then exit;
|
||||||
// check test directory
|
// check test directory
|
||||||
if not CheckTestDir then exit;
|
if not CheckTestDir then exit;
|
||||||
|
|
||||||
|
@ -174,6 +174,11 @@ begin
|
|||||||
List.Add('/opt/fpc/ppc386');
|
List.Add('/opt/fpc/ppc386');
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure GetDefaultMakeFilenames(List: TStrings);
|
||||||
|
begin
|
||||||
|
List.Add('/usr/bin/make');
|
||||||
|
end;
|
||||||
|
|
||||||
procedure GetDefaultTestBuildDirs(List: TStrings);
|
procedure GetDefaultTestBuildDirs(List: TStrings);
|
||||||
begin
|
begin
|
||||||
List.Add('/tmp/');
|
List.Add('/tmp/');
|
||||||
|
@ -163,6 +163,11 @@ begin
|
|||||||
List.Add('c:\pp\bin\win32\ppc386.exe');
|
List.Add('c:\pp\bin\win32\ppc386.exe');
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure GetDefaultMakeFilenames(List: TStrings);
|
||||||
|
begin
|
||||||
|
List.Add('c:\pp\bin\win32\make.exe');
|
||||||
|
end;
|
||||||
|
|
||||||
procedure GetDefaultTestBuildDirs(List: TStrings);
|
procedure GetDefaultTestBuildDirs(List: TStrings);
|
||||||
begin
|
begin
|
||||||
List.Add('c:\tmp\');
|
List.Add('c:\tmp\');
|
||||||
@ -187,6 +192,9 @@ end;
|
|||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.21 2004/07/30 15:34:09 vincents
|
||||||
|
make executable location is a environment option now.
|
||||||
|
|
||||||
Revision 1.20 2003/12/21 13:58:06 mattias
|
Revision 1.20 2003/12/21 13:58:06 mattias
|
||||||
renamed DirectoryExists to DirPathExists to reduce ambigiousity
|
renamed DirectoryExists to DirPathExists to reduce ambigiousity
|
||||||
|
|
||||||
|
@ -471,6 +471,7 @@ resourcestring
|
|||||||
lisChooseLazarusSourceDirectory = 'Choose Lazarus Directory';
|
lisChooseLazarusSourceDirectory = 'Choose Lazarus Directory';
|
||||||
lisChooseCompilerPath = 'Choose compiler filename (ppc386)';
|
lisChooseCompilerPath = 'Choose compiler filename (ppc386)';
|
||||||
lisChooseFPCSourceDir = 'Choose FPC source directory';
|
lisChooseFPCSourceDir = 'Choose FPC source directory';
|
||||||
|
lisChooseMakePath = 'Choose make path';
|
||||||
lisChooseDebuggerPath = 'Choose debugger filename';
|
lisChooseDebuggerPath = 'Choose debugger filename';
|
||||||
lisChooseTestBuildDir = 'Choose the directory for tests';
|
lisChooseTestBuildDir = 'Choose the directory for tests';
|
||||||
|
|
||||||
@ -624,6 +625,7 @@ resourcestring
|
|||||||
dlgLazarusDir = 'Lazarus directory (default for all projects)';
|
dlgLazarusDir = 'Lazarus directory (default for all projects)';
|
||||||
dlgFpcPath = 'Compiler path (ppc386)';
|
dlgFpcPath = 'Compiler path (ppc386)';
|
||||||
dlgFpcSrcPath = 'FPC source directory';
|
dlgFpcSrcPath = 'FPC source directory';
|
||||||
|
dlgMakePath = 'Make path';
|
||||||
dlgDebugType = 'Debugger type and path';
|
dlgDebugType = 'Debugger type and path';
|
||||||
dlgTestPrjDir = 'Directory for building test projects';
|
dlgTestPrjDir = 'Directory for building test projects';
|
||||||
dlgQShowGrid = 'Show grid';
|
dlgQShowGrid = 'Show grid';
|
||||||
@ -668,6 +670,9 @@ resourcestring
|
|||||||
lisEnvOptDlgInvalidCompilerFilename = 'Invalid compiler filename';
|
lisEnvOptDlgInvalidCompilerFilename = 'Invalid compiler filename';
|
||||||
lisEnvOptDlgInvalidCompilerFilenameMsg =
|
lisEnvOptDlgInvalidCompilerFilenameMsg =
|
||||||
'The compiler file "%s" is not an executable.';
|
'The compiler file "%s" is not an executable.';
|
||||||
|
lisEnvOptDlgInvalidMakeFilename = 'Invalid make filename';
|
||||||
|
lisEnvOptDlgInvalidMakeFilenameMsg =
|
||||||
|
'The make file "%s" is not an executable.';
|
||||||
lisEnvOptDlgInvalidDebuggerFilename = 'Invalid debugger filename';
|
lisEnvOptDlgInvalidDebuggerFilename = 'Invalid debugger filename';
|
||||||
lisEnvOptDlgInvalidDebuggerFilenameMsg =
|
lisEnvOptDlgInvalidDebuggerFilenameMsg =
|
||||||
'The debugger file "%s" is not an executable.';
|
'The debugger file "%s" is not an executable.';
|
||||||
|
@ -83,6 +83,7 @@ uses
|
|||||||
function GetDefaultCompiledUnitExt(FPCVersion, FPCRelease: integer): string;
|
function GetDefaultCompiledUnitExt(FPCVersion, FPCRelease: integer): string;
|
||||||
|
|
||||||
procedure GetDefaultCompilerFilenames(List: TStrings);
|
procedure GetDefaultCompilerFilenames(List: TStrings);
|
||||||
|
procedure GetDefaultMakeFilenames(List: TStrings);
|
||||||
procedure GetDefaultTestBuildDirs(List: TStrings);
|
procedure GetDefaultTestBuildDirs(List: TStrings);
|
||||||
|
|
||||||
function GetDefaultLCLWidgetType: string;
|
function GetDefaultLCLWidgetType: string;
|
||||||
@ -156,6 +157,9 @@ end.
|
|||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.26 2004/07/30 15:38:16 vincents
|
||||||
|
make executable location is a environment option now.
|
||||||
|
|
||||||
Revision 1.25 2004/07/25 12:59:49 mattias
|
Revision 1.25 2004/07/25 12:59:49 mattias
|
||||||
added codetools defines and lazconf support for powerpc
|
added codetools defines and lazconf support for powerpc
|
||||||
|
|
||||||
|
@ -5979,7 +5979,7 @@ begin
|
|||||||
FRunProcess.Options:= [poNewConsole]
|
FRunProcess.Options:= [poNewConsole]
|
||||||
else
|
else
|
||||||
FRunProcess.Options:= [poNoConsole];
|
FRunProcess.Options:= [poNoConsole];
|
||||||
FRunProcess.ShowWindow := swoNone;
|
FRunProcess.ShowWindow := swoShowNormal;
|
||||||
except
|
except
|
||||||
on e: Exception do
|
on e: Exception do
|
||||||
MessageDlg(Format(lisErrorInitializingProgramSErrorS,
|
MessageDlg(Format(lisErrorInitializingProgramSErrorS,
|
||||||
@ -6113,6 +6113,7 @@ begin
|
|||||||
Result:=BuildLazarus(MiscellaneousOptions.BuildLazOpts,
|
Result:=BuildLazarus(MiscellaneousOptions.BuildLazOpts,
|
||||||
EnvironmentOptions.ExternalTools,MacroList,
|
EnvironmentOptions.ExternalTools,MacroList,
|
||||||
'',EnvironmentOptions.CompilerFilename,
|
'',EnvironmentOptions.CompilerFilename,
|
||||||
|
EnvironmentOptions.MakeFilename,
|
||||||
Flags+[blfWithoutLinkingIDE]);
|
Flags+[blfWithoutLinkingIDE]);
|
||||||
if Result<>mrOk then exit;
|
if Result<>mrOk then exit;
|
||||||
|
|
||||||
@ -6159,6 +6160,7 @@ begin
|
|||||||
Result:=BuildLazarus(MiscellaneousOptions.BuildLazOpts,
|
Result:=BuildLazarus(MiscellaneousOptions.BuildLazOpts,
|
||||||
EnvironmentOptions.ExternalTools,MacroList,
|
EnvironmentOptions.ExternalTools,MacroList,
|
||||||
PkgOptions,EnvironmentOptions.CompilerFilename,
|
PkgOptions,EnvironmentOptions.CompilerFilename,
|
||||||
|
EnvironmentOptions.MakeFilename,
|
||||||
IDEBuildFlags+[blfUseMakeIDECfg,blfDontClean]);
|
IDEBuildFlags+[blfUseMakeIDECfg,blfDontClean]);
|
||||||
if Result<>mrOk then exit;
|
if Result<>mrOk then exit;
|
||||||
finally
|
finally
|
||||||
@ -10486,6 +10488,9 @@ end.
|
|||||||
|
|
||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.740 2004/07/30 15:38:16 vincents
|
||||||
|
make executable location is a environment option now.
|
||||||
|
|
||||||
Revision 1.739 2004/07/25 22:43:18 mattias
|
Revision 1.739 2004/07/25 22:43:18 mattias
|
||||||
added IDE cmd line option --skip-last-project
|
added IDE cmd line option --skip-last-project
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user