[Lazarus] How do you configure separate output directories for projects in same directory.

Frank Church vfclists at gmail.com
Tue Apr 5 12:50:04 CEST 2011


On 5 April 2011 00:29, Mattias Gaertner <nc-gaertnma at netcologne.de> wrote:

> On Mon, 4 Apr 2011 20:59:21 +0100
> Frank Church <vfclists at gmail.com> wrote:
>
> > I am creating 2 projects from the same source files with LCL Widget Type
> > win32/win64 and the other with LCL WidgetType NoGUI.
> >
> > The win32/win64 version contains both Forms GUI and DataModules for
> running
> > on Windows, and the NoGUI version contains the DataModules and is
> targetted
> > mainly at on Linux, although it can run on Windows as well.
> >
> > All the project and source files are in the same directory. Is there some
> > way to configure the output directories and unit search paths of the
> > projects separately so that the different units created do not overwrite
> > each other, when I switch from one to the other, althouugh with the
> project
> > and source files in the same directory?
>
> You can use macros.
> For example set the "unit output directory" to
> "units/$(TargetOS)-$(LCLWidgetType)".
> Set the "Target file name" to "YourProjectName".
>
>
Thanks to all for your advice.

Is there a macro for the Target File Name so that the unit output directory
can be something like $(TargetFileName)/units ?


> See
> http://wiki.lazarus.freepascal.org/IDE_Window:_Compiler_Options#Paths
>
>
> Mattias
>
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>



-- 
Frank Church

=======================
http://devblog.brahmancreations.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110405/5c3dc07b/attachment-0003.html>


More information about the Lazarus mailing list