[lazarus] Design question to everyone

Marco van de Voort marcov at stack.nl
Wed Feb 6 19:12:02 EST 2002


> Where should I put the search path for Sources?
> 
> Don't mix up Source Path with Unit Path.
> The unit path is used by the compiler to search for .pp/.pas/.ppu/.ppw files.
> For example an LCL program needs $(LazarusDir)/lcl/units to find the compiled .ppu/.ppw files. The lcl sources are in the $(LazarusDir)/lcl directory, but you will probably never add this path to the unit path.
> But 'Find Declaration' needs this path to find the sources. That's why the codetools distinguish between Unit Path and Source Path. The Source Path is an extended Unit Path.
> 
> So, the source path is needed by the codetools, not by the compiler. Hence, it should not be added to the compiler options. Eventually there will be one or two dialogs for all the codetool options. Logically, it should be added there.
> But I'm not sure, if a user expects this option to be there. Perhaps most users think, that a search path for pascal sources belongs to the search paths in the compiler options.
> 
> Where should I place the Source Path?


Don't know, but it could also be used for the debugger, which also _needs_
sources, not .ppu's.






More information about the Lazarus mailing list