Delphi $(Platform)\$(Config) directories

Using FB 8.0.0.1937
I have a Delphi Action that is building a 3rd party commercial package.   This package has two configurations “Debug” & "Release"
I am trying to build each of these into my own output directories.

I am loading all the options from the Project file except "Directories"
I created a variable 
%BUILD_OUTPUT_DIR%
Set it’s default value to:
%LOCAL_BUILD_DIR%%PRODUCT_NAME%%PRODUCT_VERSION%$$(Platform)$$(Config)
Then marked it as a macro.

Then in the action I set “Output directory”, “Unit output directory”, “BPL output directory” and "DCP output directory"
to %BUILD_OUTPUT_DIR%

I run and it builds as expected but the output is in:
C:\VCL\Output\TRichview\LocalTest$(Platform)$(Config)

I don’t want to have the directories name $(Platform)$(Config)  I would rather if directories were expanded and created like this:
C:\VCL\Output\TRichview\LocalTest\Win32\release<br>
I am missing something to be able to do this?





Realized variable that $(PLATFORM) and $(CONFIG) don’t exist in finalbuilder.

So I created them.

Then added this global script

Sub SetConfigPlatform(Action)
Config = Action.ConfigName
select case Action.Platform
  case 0 Platform = “Win32”
  case 1 Platform = “Win64”
  case 2 Platform = "OSX"
end select
end sub


The add the following script to each delphi Action in the OnBeforeAction Script

SetConfigPlatform(Action)

Hi Robert

I will look into it, this may be an oversight in the migration to the new variables architecture in FB8. The delphi action does have code to provide those variables but it isn’t being called, need to figure out why.

This is fixed for the next update (probably early next week), as I suspected, the code was there to handle this, but never got hooked up in FB8.

I have a similar issue. When I change the “Platform” property i the property panel (or by script) the paths is not changed. But if I do the platform change in the action dialog, it works correct.