Re: Should Delphi be able to export projects to FPC?
- From: Graeme Geldenhuys <graemeg@xxxxxxxxxxxxxxxx>
- Date: Tue, 22 Jul 2008 13:42:58 +0200
Farshad wrote:
Until recent versions of FPC/Lazarus IDE the -Xs option wasn't working properly and you had to run the strip manually which was not a good thing.
It's true that the -Xs option didn't always work, but in that case you could have configured Lazarus to run the strip command automatically after a Build or Compile (options also available in Compiler Options dialog).
The weakness is that Lazarus doesn't offer a way to distinctly separate RELEASE and DEBUG builds. Which I beleive must be implemented in future releases.
That has been suggested. But with all open source projects - features get added much quicker when the requests are accompanied with a patch. :-)
Once you app is complete and tested and ready for shipping, THEN ONLY do you remove/disable debug information and create a stripped down executable.
Yes, but wouldn't it be better to simply switch it from DEBUG mode to RELEASE instead of manually adjusting some switches that you may not remember always.
Or do what I did - in the mean time, while Lazarus IDE doesn't have Release or Debug project modes. I'm not afraid of the command line. :) So I created a build script to accomplish that. Depending on the parameter passed to the build script it will generate a Release or Debug build. FPC can read compiler options from external config files. The script decides which one to use.
eg:
fpc @releasebuild.cfg <projectfile>
fpc @debugbuild.cfg <projectfile>
For me, this was quicker that customising the IDE and creating a new project options dialog.
Regards,
- Graeme -
_______________________________________________________
fpGUI - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/
.
- References:
- Should Delphi be able to export projects to FPC?
- From: Gil
- Re: Should Delphi be able to export projects to FPC?
- From: TJC Support
- Re: Should Delphi be able to export projects to FPC?
- From: Donald Shimoda
- Re: Should Delphi be able to export projects to FPC?
- From: Tom Corey
- Re: Should Delphi be able to export projects to FPC?
- From: Donald Shimoda
- Re: Should Delphi be able to export projects to FPC?
- From: Man T
- Re: Should Delphi be able to export projects to FPC?
- From: Graeme Geldenhuys
- Re: Should Delphi be able to export projects to FPC?
- From: Francisco Ruiz
- Re: Should Delphi be able to export projects to FPC?
- From: Graeme Geldenhuys
- Re: Should Delphi be able to export projects to FPC?
- From: L
- Re: Should Delphi be able to export projects to FPC?
- From: Donald Shimoda
- Re: Should Delphi be able to export projects to FPC?
- From: yannis
- Re: Should Delphi be able to export projects to FPC?
- From: Graeme Geldenhuys
- Re: Should Delphi be able to export projects to FPC?
- From: Francisco Ruiz
- Re: Should Delphi be able to export projects to FPC?
- From: Farshad
- Re: Should Delphi be able to export projects to FPC?
- From: Graeme Geldenhuys
- Re: Should Delphi be able to export projects to FPC?
- From: Farshad
- Should Delphi be able to export projects to FPC?
- Prev by Date: Re: Delphi 2009 - CG tip everything on ( only ) Unicode ?
- Next by Date: Re: Should Delphi be able to export projects to FPC?
- Previous by thread: Re: Should Delphi be able to export projects to FPC?
- Next by thread: Re: Should Delphi be able to export projects to FPC?
- Index(es):
Relevant Pages
|