> On May 11, 2020, at 6:41 PM, Mattias Gaertner via fpc-pascal
> <[email protected]> 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
_______________________________________________
fpc-pascal maillist - [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal