In Unity, the excellent post processor makes it very easy to, say, add a build flag
public class BuildPostProcessor { public