Recent

Author Topic: Don't add new unit to base program file  (Read 2619 times)

Eugene Loza

  • Hero Member
  • *****
  • Posts: 673
    • My games in Pascal
Don't add new unit to base program file
« on: October 22, 2016, 10:49:29 am »
Hi all! I couldn't find an option to turn-off automatic addition of a new unit to USES section in main program file.

I.e. I use:
launcher.lpr
mainunit.pas -> launcher.lpr
(a relatively complex tree of many different units) -> mainunit
And I want to keep launcher as clean as possible. But every time I create a new unit I have to manually remove it from the launcher...

(I've looked through the forum and saw people were asking for this feature since 2009, but I'd personally like to turn it off just for me :))
My FOSS games in FreePascal&CastleGameEngine: https://decoherence.itch.io/ (Sources: https://gitlab.com/EugeneLoza)

Zoran

  • Hero Member
  • *****
  • Posts: 1830
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: Don't add new unit to base program file
« Reply #1 on: October 22, 2016, 11:17:46 am »
Main Menu -> Project -> Project Options... -> Miscellaneous -> Main unit has Uses section containing all units of project

Eugene Loza

  • Hero Member
  • *****
  • Posts: 673
    • My games in Pascal
Re: Don't add new unit to base program file
« Reply #2 on: October 22, 2016, 11:21:14 am »
Thanks a lot!!!!!
I was looking for this function in "Editor options"...
« Last Edit: October 22, 2016, 11:23:19 am by Eugene Loza »
My FOSS games in FreePascal&CastleGameEngine: https://decoherence.itch.io/ (Sources: https://gitlab.com/EugeneLoza)

 

TinyPortal © 2005-2018