On 2017-02-12 18:25, fredvs wrote: > Yes, of course it could be a solution but I would prefer something inside > the code.
AggPas (also included with fpGUI) has a build system where relative paths can be defined as code comments in the top of the program unit. Relative paths are relative to the program unit. The build system then finds that info and builds the correct FPC (or Delphi) command line parameters to build the project. AggPas uses this system for all the 20+ demos it includes. Fred, you are welcome to take a look at that too. AggPas inside fpGUI is located at <fpgui>/src/corelib/render/software/agg-demos/ Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal