PDA

View Full Version : How to add file to the project based on condition or variable value?


alexzfirm
07-16-2007, 06:53 PM
I have one project that is used to build 5 different installers.

I have 5 different help files (with different names). I need to have only 1 per build. How can I add (or remove) files from the project based on variable value or some other condition?

Related to this
http://www.indigorose.com/forums/showthread.php?p=105336#post105336

Thank you

Lorne
07-17-2007, 10:43 AM
You might be able to use a build variable for this. (Build > Settings > Variables tab.)

Build variables are essentially preprocessor definitions that get replaced when the project is compiled.

alexzfirm
07-17-2007, 01:23 PM
Thank you that worked. The filename containing variable shows in red in the file list but still compiles and installs just fine.