[Lazarus] Compile project release with LCL custom optimization
Graeme Geldenhuys
graeme at geldenhuys.co.uk
Sat Apr 13 21:30:17 CEST 2013
On 2013-04-13 20:05, Zaher Dirkey wrote:
> Not worked for me, i Added $(ProjectOpts) to custom options in SynEdit
> package (same with my packages but i will take SynEdit as example)
> What i have I Have 2 build mode (Debug, Release)....
I use lots of build modes too... like I said, the Lazarus Package idea
was more problems than anything else. Now I just define all source paths
as needed.
And in IDE's like Maximus or MSEide, it makes such configurations dead
simple. See the last image of the page below.
http://fpgui.sourceforge.net/screenshots_apps.shtml
By default there are six build modes. For source paths I use macros like
${fpgui}, ${tiopf} etc... Macro values can be toggled by a single click
to say which Macro Group you want to use (eg: one group for Windows, one
for Linux, etc). Also in Maximus, all build modes have keyboard
shortcuts. I normally use mode 'M - Make' for development with debug
info, 'B - Build' for releases, and 1-4 for various other things.
Unfortunately the screenshot doesn't use compiler defines in that
configuration, but my projects use many. Simply click which build mode
they belong - as easy as that.
Regards,
- Graeme -
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/
More information about the Lazarus
mailing list