Recent

Author Topic: Package build modes feature  (Read 1166 times)

denis.totoliciu

  • Jr. Member
  • **
  • Posts: 53
Package build modes feature
« on: October 02, 2019, 06:43:02 am »
Hello there,

What do you think about having build modes for Lazarus packages?
Searched the forum with "package build mode" words, but didn't find talks on the subject.

Thaddy

  • Hero Member
  • *****
  • Posts: 14204
  • Probably until I exterminate Putin.
Re: Package build modes feature
« Reply #1 on: October 02, 2019, 07:17:59 am »
Leave package out: the build modes are the same as for a program. Lazarus can generate both debug and release mode packages.
Specialize a type, not a var.

denis.totoliciu

  • Jr. Member
  • **
  • Posts: 53
Re: Package build modes feature
« Reply #2 on: October 02, 2019, 07:53:23 am »
Maybe having build modes, the package can output .o files with and without debug symbols in separate directories.

Thaddy

  • Hero Member
  • *****
  • Posts: 14204
  • Probably until I exterminate Putin.
Re: Package build modes feature
« Reply #3 on: October 02, 2019, 08:26:34 am »
That is already the case...
Specialize a type, not a var.

denis.totoliciu

  • Jr. Member
  • **
  • Posts: 53
Re: Package build modes feature
« Reply #4 on: October 02, 2019, 08:42:53 am »
Say if a .lpk is opened in Lazarus, how can that package be individually compiled in such a way to determine the IDE to put binaries with debug symbols in the <package>\lib\debug directory, while those without debug symbols in <package>\lib\release directory, without manually changing the Unit output directory option after each compilation of the package?


Thaddy

  • Hero Member
  • *****
  • Posts: 14204
  • Probably until I exterminate Putin.
Re: Package build modes feature
« Reply #5 on: October 02, 2019, 09:08:18 am »
Simply make sure you have generated debug and release modes, see screenshots:
You will see that the modes have different paths.
« Last Edit: October 02, 2019, 09:10:01 am by Thaddy »
Specialize a type, not a var.

denis.totoliciu

  • Jr. Member
  • **
  • Posts: 53
Re: Package build modes feature
« Reply #6 on: October 02, 2019, 09:47:26 am »
Thank you for the explanation!

 

TinyPortal © 2005-2018