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

33 lines
676 B
Markdown
Raw Normal View History

2021-03-11 20:29:22 +00:00
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" }
2021-03-11 20:29:22 +00:00
prebuildcommands { "copy default.config bin\\project.config" }
filter { "not system:windows" }
2021-03-11 20:29:22 +00:00
prebuildcommands { "cp default.config bin/project.config" }
```
### See Also ###
* [postbuildcommands](postbuildcommands.md)
* [prelinkcommands](prelinkcommands.md)