Shannon Matthews
Shannon Matthews

Reputation: 10368

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.

Upvotes: 5

Views: 1582

Answers (2)

IceCold
IceCold

Reputation: 21154

You can set the implicit/implicit mode in Project’s Options. Be aware that instead of “Implicit” they use “Rebuild as needed”.

enter image description here

Upvotes: 1

Ondrej Kelle
Ondrej Kelle

Reputation: 37211

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

Upvotes: 8

Related Questions