Hi,
I have a number of Build Delphi Actions in our build script and all of them have the option to “Use conditionals from project settings file” set.
This has been the correct behavior so far but now I would like to add some conditionals to those from the project file.
So if the project file sets conditionals FOO and BAR I would like to add BAZ so the poject is built with FOO;BAR;BAZ set.
Is there an easy way to this?
Regards,
Christoph
I believe you can use the OnBeforeCompile script event. This will have all the conditionals loaded into the action. You can also then change the conditionals value as you see fit and it will be used for the compile.
if (Action.Conditionals === “FOO;BAR” | Action.Conditionals === “BAR;FOO”)
Action.Conditionals = Action.Conditionals + “;BAZ”
The above should be close to what you are looking to use in the script event of the action.