delphidelphi-xe2

How to disable implicit building in packages? {$IMPLICITBUILD}


I'm working on a couple of custom packages (containing GUI components mostly) for a Delphi XE2 application. I need the $IMPLICITBUILD directive to be off. I've edited the package .BPL file manually to set {$IMPLICITBUILD OFF} but the Delphi IDE occasionally reverts the directive to {$IMPLICITBUILD ON}. I'm guessing manually editing the .BPL file is not the correct approach. How should I set $IMPLICITBUILD so that it stays off?

I've googled but can't find anything, nor can I see anything when poking around the Delphi IDE.


Solution

  • In the Project Options for the package, on the Description page, in Build Control section, select "Explicit rebuild".