Am Donnerstag, den 30.11.2006, 23:44 +0100 schrieb Vincent Snijders:
> Marc Santhoff schreef:
> > Hi,
> >
> > I know this is a question regarding fpc and lazarus, but I decided to
> > post to this list:
> >
> > If one would want to run the complete sources of a project through a
> > preprocessor transparently when compiling in the lazarus IDE, would this
> > be possible with fpc and lazarus as they are now?
> >
> > Or will it take implementing some pipeline hooks or the like in one or
> > both of them?
> >
> > The goal in doing so would be using a specialized macro processor
> > replacing tags in the source code before feeding through fpc.
> >
>
> You could call the preprocessor in a before compilation command, see
> Project -> Compiler Options -> compilation tab.
Ah, yes, I remember. My first thought was to replace fpc with a batch
file, but I didn't try.
> The complete sources thing will be the tricky part. The compiler knows
> what the complete sources are and the IDE knows what is part of a
> project. But your preprocessor doesn't know (or maybe it does, if you
> pass it the lpi file).
So, as I wrote, if the preprocessing is located in the compiler it
should be possible. Lazarus calls fpc with the list of sources to
compile. This list has to be completed and every file that would get
compiled has to be pied through or it's name given to the preprocessor.
Marc
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives