winamp/Src/external_dependencies/openmpt-trunk/include/premake/website/docs/targetextension.md

33 lines
683 B
Markdown
Raw Normal View History

2024-09-24 12:54:57 +00:00
Specifies the file extension for the compiled binary target.
```lua
targetextension ("ext")
```
By default, the project will use the system's normal naming conventions: .exe for Windows executables, .so for Linux shared libraries, and so on. The `targetextension` function allows you to change this default.
### Parameters ###
`ext` is the new file extension, including the leading dot.
### Applies To ###
Project configurations.
### Availability ###
Premake 4.0 or later.
### Examples ###
```lua
targetextension ".zmf"
```
### See Also ###
* [targetname](targetname.md)
* [targetdir](targetdir.md)
* [targetprefix](targetprefix.md)
* [targetsuffix](targetsuffix.md)