This repository has been archived on 2022-12-23. You can view files and clone it, but cannot push or open issues or pull requests.
fuck-premake-old2/website/docs/prebuildcommands.md
starkos e9525eec34 Deprecate configuration()
`configuration()` will not be supported in Premake6. Marking it deprecated now so everyone has a chance to phase it out. Closes #1708.
2021-09-17 06:47:03 -04:00

676 B

Specifies shell commands to run before each build.

prebuildcommands { "commands" }

Parameters

commands is one or more shell commands. These commands will be passed to the shell exactly as entered, including path separators and the like.

Applies To

Project configurations.

Availability

Premake 4.4 or later.

Examples

filter { "system:windows" }
   prebuildcommands { "copy default.config bin\\project.config" }

filter { "not system:windows" }
   prebuildcommands { "cp default.config bin/project.config" }

See Also