e9525eec34
`configuration()` will not be supported in Premake6. Marking it deprecated now so everyone has a chance to phase it out. Closes #1708.
33 lines
676 B
Markdown
33 lines
676 B
Markdown
Specifies shell commands to run before each build.
|
|
|
|
```lua
|
|
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 ###
|
|
|
|
```lua
|
|
filter { "system:windows" }
|
|
prebuildcommands { "copy default.config bin\\project.config" }
|
|
|
|
filter { "not system:windows" }
|
|
prebuildcommands { "cp default.config bin/project.config" }
|
|
```
|
|
|
|
### See Also ###
|
|
|
|
* [postbuildcommands](postbuildcommands.md)
|
|
* [prelinkcommands](prelinkcommands.md)
|