From 205972e34c5f018df89fd9e034166bb70c2559ac Mon Sep 17 00:00:00 2001 From: juha Date: Sun, 20 Nov 2011 14:46:42 +0000 Subject: [PATCH] IDE: Add a "Normal IDE" build profile as default when installing clean. git-svn-id: trunk@33643 - --- ide/buildprofilemanager.pas | 13 +++++++++++-- ide/lazarusidestrconsts.pas | 1 + 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ide/buildprofilemanager.pas b/ide/buildprofilemanager.pas index 1d5ba6ce3d..a0ed319df8 100644 --- a/ide/buildprofilemanager.pas +++ b/ide/buildprofilemanager.pas @@ -354,6 +354,16 @@ var begin Platfrm:=GetDefaultLCLWidgetType; + // Build Normal IDE + Profile:=TBuildLazarusProfile.Create(Self, lisLazBuildNormalIDE); + with Profile, fOwnerCnt do begin + fTargetPlatform:=Platfrm; + fIdeBuildMode:=bmBuild; + fUpdateRevisionInc:=True; + end; + // Return this one as default. Needed when building packages without saved profiles. + Result:=Add(Profile); + // Build Debug IDE Profile:=TBuildLazarusProfile.Create(Self, lisLazBuildDebugIDE); with Profile, fOwnerCnt do begin @@ -367,8 +377,7 @@ begin fOptions.Add('-gw -gl -godwarfsets -gh -gt -Co -Cr -Ci -Sa'); {$ENDIF} end; - // Return this one as default. Needed when building packages without saved profiles. - Result:=Add(Profile); + Add(Profile); // Build Optimised IDE Profile:=TBuildLazarusProfile.Create(Self, lisLazBuildOptimizedIDE); diff --git a/ide/lazarusidestrconsts.pas b/ide/lazarusidestrconsts.pas index 6f47e64155..ef61203112 100644 --- a/ide/lazarusidestrconsts.pas +++ b/ide/lazarusidestrconsts.pas @@ -2874,6 +2874,7 @@ resourcestring lisLazBuildErrorWritingFile = 'Error writing file'; lisLazBuildUnableToWriteFile = 'Unable to write file "%s":%s'; lisLazBuildIDEwithoutPackages = 'IDE without Packages'; + lisLazBuildNormalIDE = 'Normal IDE'; lisLazBuildDebugIDE = 'Debug IDE'; lisLazBuildOptimizedIDE = 'Optimized IDE'; lisLazCleanUpBuildAll = 'Clean Up + Build all';