Is there a way to set up projects so that object files and executables are not in documents?

Is there a way to set up projects so that object files and executables are not in documents?
Documents are backed up (very) regularly but backing up object and final files is wasteful (not to mention slow), plus I would prefer to not run programs in Documents (seems obscene these days).
With the XE series it looks like you should be able to do it but so far I have not managed - hopefully I am just not twisting my mind in an appropriate way.

Comments

  1. Russell Peters when you have your project open (or create a new one), go to Projects -> Options and in the "Delphi Compiler" section you will see two options: "Output directory" an "Unit output directory". First one points to a folder where your executable will go and it defaults to ".\$(Platform)\$(Config)" (meaning it will go to a Platform and Config specific folder, which by default is Win32 and Debug respectively). Second one points to a folder where your .dcu and .obj files will go and it also defaults to ".\$(Platform)\$(Config)". As a general practical rule, both folders should be relative to main project folder to avoid any compilation errors, especially when working in teams or when you use version control systems (like Subversion). I hope this helps.

    ReplyDelete
  2. I am not at the computer at the moment but will try on the morrow and note the error.

    ReplyDelete
  3. Confirmed it does work with absolute paths.
    Don't know what I was doing wrong last time but now I know - now to get the time to update projects.
    As a further help I set a new environment variable for each compiler & computer to specify destination root
        Dev   - E:\Dev\XE4
    and use
        $(Dev)\Test_exe\$(Target)\$(Config)
    and it is portable across all (would help if $TargetName could be used).

    ReplyDelete

Post a Comment