[fpc-pascal] Code tools search paths
Ryan Joseph
genericptr at gmail.com
Mon May 11 15:02:13 CEST 2020
> On May 11, 2020, at 6:41 PM, Mattias Gaertner via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
>
> This creates a node for directory Path. Path should be your program
> directory.
>
>
>> UnitPathTemplate := TDefineTemplate.Create('???','???',
>> UnitPathMacroName,
>> UnitPathMacro+';'+ExpandFileName(Path),
>> da_Define
>> );
>> DirectoryTemplate.AddChild(UnitPathTemplate);
>
> This expands the UnitPath of directory Path with Path.
> Maybe you meant
> UnitPathMacro+';'+ExpandFileName(SomeUnitPath),
I wanted this to behave like the compiler normally does, that is you supply paths to the units with -Fu and includes with -Fi. What is the way to achieve that here?
For example in my test project I have the directory that contains the program and another direction to test units in other directories so I basically just want:
pp /path/to/test.pas -Fu/path/to/other_units
Pretty simple but I don't seem to be going about it correctly.
Regards,
Ryan Joseph
More information about the fpc-pascal
mailing list