There are several directives for managing the binary file name {$EXT string} , {$LIBPREFIX 'string'} , {$LIBSUFFIX 'string'} , {$LIBVERSION 'string'} (btw, the compiler has nothing with generating binary output code , this is done using the linker). None of them are dynamic, so you need to write the necessary values โโimmediately before creating the project (a good job for the OpenToolAPI wizard in the IDE).
Another possibility is post-build activity, which extracts the version number (for example: VERSION_INFO) from the PE binary file and renames the file accordingly
source share