Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-04

include fies in project

6 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Schnell

Hi experts,

(How) is it possible to define an include file to be a project file, so that any (project and non-project) unit that includes it will be recompiled when the include file is modified ?

Thanks,
-Michael

Reply by email

Michael Van Canneyt
to Michael Schnell
Michael Schnell wrote 5 lines
Hi experts, (How) is it possible to define an include file to be a project file, so that any (project and non-project) unit that includes it will be recompiled when the include file is modified ?

The compiler always recompiles if it sees that an include file was changed ?

Michael.

Reply by email

Mattias Gaertner
to Michael Schnell: (How) is it possible to define an include file to be a project file, so that any (project…
Show quoted text 5 lines
Hi experts, (How) is it possible to define an include file to be a project file, so that any (project and non-project) unit that includes it will be recompiled when the include file is modified ?

Add the include file to the project. So the IDE checks for changes.

FPC checks include files automatically (contrary to Delphi).

Mattias

Reply by email

Michael Schnell
to Mattias Gaertner
Mattias Gaertner wrote
Add the include file to the project. So the IDE checks for changes.

Great ! Thanks.

FPC checks include files automatically (contrary to Delphi).

Even if the file that includes the modified file is not a project file (but the included one is) ?

-Michael

Reply by email

Michael Van Canneyt
to Michael Schnell
Michael Schnell wrote 8 lines
On 04/21/2010 09:41 AM, Mattias Gaertner wrote: > Add the include file to the project. So the IDE checks for changes. > Great ! Thanks. > FPC checks include files automatically (contrary to Delphi). > Even if the file that includes the modified file is not a project file (but the included one is) ?

If the include file is part of a unit that is needed by the compiler, the unit is recompiled.

Michael.

Reply by email