A prelinkevent directive declares a command to be run as a pre-link step. It can be specialised by build configuration.
prelinkevent { "description" "command" } prelinkevent(configuration) { "description" "command" }