publish changes
This commit is contained in:
parent
afc5064a7b
commit
ac2c6ac843
1605 changed files with 3354 additions and 3354 deletions
|
@ -19,7 +19,7 @@ If you are planning to make changes or contribute to Premake, working directly a
|
|||
Once the core source code has been cloned, you can bootstrap your first Premake executable:
|
||||
|
||||
```bash
|
||||
nmake -f Bootstrap.mak windows # for Windows
|
||||
nmake -f Bootstrap.mak arch # for Windows
|
||||
make -f Bootstrap.mak osx # for Mac OS X
|
||||
make -f Bootstrap.mak linux # Linux and similar Posix systems
|
||||
```
|
||||
|
@ -28,7 +28,7 @@ If your system or toolset is not fully supported by the bootstrap Makefile, you
|
|||
|
||||
```bash
|
||||
call "%VS140COMNTOOLS%\..\..\VC\vcvarsall.bat" # Sets up the necessary environment variables for nmake to run
|
||||
nmake -f Bootstrap.mak MSDEV=vs2015 windows # For Windows with Visual Studio 2015.
|
||||
nmake -f Bootstrap.mak MSDEV=vs2015 arch # For Windows with Visual Studio 2015.
|
||||
```
|
||||
|
||||
On other platforms, if the bootstrap fails to build, you will need to have a working Premake executable on your system. The easiest way to get one is by [downloading prebuilt binary package](/download). If a binary is not available for your system, or if you would prefer to build one yourself, grab the latest source code package from that same site and follow the steps in **Using a Source Code Package**, above.
|
||||
|
|
|
@ -18,7 +18,7 @@ The available sources for keywords. Keywords are not case-sensitive.
|
|||
|
||||
* **Command line options**.
|
||||
|
||||
* **System names** such as **windows**, **macosx**, or **xbox360**.
|
||||
* **System names** such as **arch**, **macosx**, or **xbox360**.
|
||||
|
||||
* **Architectures** such as **x32** or **x64**.
|
||||
|
||||
|
@ -111,7 +111,7 @@ configuration "linux or macosx"
|
|||
You can also use **not** to apply the settings to all environments where the identifier is not set.
|
||||
|
||||
```lua
|
||||
configuration "not windows"
|
||||
configuration "not arch"
|
||||
defines { "NOT_WINDOWS" }
|
||||
```
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ exceptionhandling ("value")
|
|||
| Default | Use the toolset's default setting for exceptions. |
|
||||
| On | Turn on exceptions. |
|
||||
| Off | Turn off exceptions. |
|
||||
| SEH | Turn on exceptions and use [structured exception handling](https://msdn.microsoft.com/en-us/library/windows/desktop/ms680657(v=vs.85).aspx) when available. |
|
||||
| SEH | Turn on exceptions and use [structured exception handling](https://msdn.microsoft.com/en-us/library/arch/desktop/ms680657(v=vs.85).aspx) when available. |
|
||||
|
||||
|
||||
### Applies To ###
|
||||
|
|
|
@ -38,7 +38,7 @@ Add files for specific systems; might not work with all exporters.
|
|||
|
||||
```lua
|
||||
filter "system:Windows"
|
||||
files { "src/windows/*.h", "src/windows/*.cpp" }
|
||||
files { "src/arch/*.h", "src/arch/*.cpp" }
|
||||
|
||||
filter "system:MacOSX"
|
||||
files { "src/mac/*.h", "src/mac/*.cpp" }
|
||||
|
|
|
@ -121,14 +121,14 @@ filter "files:**.png"
|
|||
You can also use **not** to apply the settings to all environments where the identifier is not set.
|
||||
|
||||
```lua
|
||||
filter "system:not windows"
|
||||
filter "system:not arch"
|
||||
defines { "NOT_WINDOWS" }
|
||||
```
|
||||
|
||||
You can combine different prefixes within a single keyword.
|
||||
|
||||
```lua
|
||||
filter "system:windows or language:C#"
|
||||
filter "system:arch or language:C#"
|
||||
```
|
||||
|
||||
Finally, you can reset the filter and remove all active keywords by passing the function an empty table.
|
||||
|
|
|
@ -15,7 +15,7 @@ result = iif(condition, trueval, falseval)
|
|||
## Examples ##
|
||||
|
||||
```lua
|
||||
result = iif(os.is("windows"), "is windows", "is not windows")
|
||||
result = iif(os.is("arch"), "is arch", "is not arch")
|
||||
```
|
||||
|
||||
Note that all expressions are evaluated before the condition is checked; the following expression can not be implemented with an immediate if because it may try to concatenate a string value.
|
||||
|
|
|
@ -31,7 +31,7 @@ Premake 4.0 or later.
|
|||
Link against some system libraries.
|
||||
|
||||
```lua
|
||||
filter { "system:windows" }
|
||||
filter { "system:arch" }
|
||||
links { "user32", "gdi32" }
|
||||
|
||||
filter { "system:linux" }
|
||||
|
|
|
@ -24,7 +24,7 @@ Premake 4.0 or later.
|
|||
### Examples ###
|
||||
|
||||
```lua
|
||||
if os.get() == "windows" then
|
||||
if os.get() == "arch" then
|
||||
-- do something Windows-specific
|
||||
end
|
||||
```
|
||||
|
|
|
@ -21,7 +21,7 @@ Premake 5.0.0 alpha 12 or later.
|
|||
### Examples ###
|
||||
|
||||
```lua
|
||||
if os.host() == "windows" then
|
||||
if os.host() == "arch" then
|
||||
-- do something Windows-specific
|
||||
end
|
||||
```
|
||||
|
|
|
@ -8,7 +8,7 @@ cmd = os.translateCommands("cmd", map)
|
|||
|
||||
`cmd` is the command line to be translated. May be a single string or an array of strings.
|
||||
|
||||
`map` is either an [OS identifier](system.md) (e.g. "windows") to use one of Premake's built-in token mappings, or a table containing a custom mapping. If omitted, the currently targeted OS identifier will be used.
|
||||
`map` is either an [OS identifier](system.md) (e.g. "arch") to use one of Premake's built-in token mappings, or a table containing a custom mapping. If omitted, the currently targeted OS identifier will be used.
|
||||
|
||||
|
||||
### Return Value ###
|
||||
|
@ -27,7 +27,7 @@ Premake 5.0 or later.
|
|||
cmd = os.translateCommands("{COPY} file1.txt file2.txt")
|
||||
|
||||
-- translate for a specific OS
|
||||
cmd = os.translateCommands("{COPY} file1.txt file2.txt", "windows")
|
||||
cmd = os.translateCommands("{COPY} file1.txt file2.txt", "arch")
|
||||
|
||||
-- translate using a custom map
|
||||
cmd = os.translateCommands("{COPY} file1.txt file2.txt", {
|
||||
|
|
|
@ -19,10 +19,10 @@ Premake 4.4 or later.
|
|||
### Examples ###
|
||||
|
||||
```lua
|
||||
filter { "system:windows" }
|
||||
filter { "system:arch" }
|
||||
postbuildcommands { "copy default.config bin\\project.config" }
|
||||
|
||||
filter { "not system:windows" }
|
||||
filter { "not system:arch" }
|
||||
postbuildcommands { "cp default.config bin/project.config" }
|
||||
```
|
||||
|
||||
|
|
|
@ -19,10 +19,10 @@ Premake 4.4 or later.
|
|||
### Examples ###
|
||||
|
||||
```lua
|
||||
filter { "system:windows" }
|
||||
filter { "system:arch" }
|
||||
prebuildcommands { "copy default.config bin\\project.config" }
|
||||
|
||||
filter { "not system:windows" }
|
||||
filter { "not system:arch" }
|
||||
prebuildcommands { "cp default.config bin/project.config" }
|
||||
```
|
||||
|
||||
|
|
|
@ -19,10 +19,10 @@ Premake 4.4 or later.
|
|||
### Examples ###
|
||||
|
||||
```lua
|
||||
filter { "system:windows" }
|
||||
filter { "system:arch" }
|
||||
prelinkcommands { "copy default.config bin\\project.config" }
|
||||
|
||||
filter { "not system:windows" }
|
||||
filter { "not system:arch" }
|
||||
prelinkcommands { "cp default.config bin/project.config" }
|
||||
```
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ If no system is specified, Premake will identify and target the current operatin
|
|||
* macosx
|
||||
* solaris
|
||||
* wii
|
||||
* windows
|
||||
* arch
|
||||
* xbox360
|
||||
|
||||
### Applies To ###
|
||||
|
@ -36,7 +36,7 @@ workspace "MyWorkspace"
|
|||
system { "Windows", "Unix", "Mac" }
|
||||
|
||||
filter "system:Windows"
|
||||
system "windows"
|
||||
system "arch"
|
||||
|
||||
filter "system:Unix"
|
||||
system "linux"
|
||||
|
|
|
@ -13,7 +13,7 @@ If no toolset is specified for a configuration, the system or IDE default will b
|
|||
| **Toolset identifier** | **Description** |
|
||||
|------------|---------------------------------------------------------------|
|
||||
| `clang` | [Clang](http://clang.llvm.org) |
|
||||
| `dmd` | [Reference D Compiler](https://dlang.org/dmd-windows.html) |
|
||||
| `dmd` | [Reference D Compiler](https://dlang.org/dmd-arch.html) |
|
||||
| `dotnet` | The system's default C# compiler |
|
||||
| `gcc` | [GNU Compiler Collection](https://gcc.gnu.org) |
|
||||
| `gdc` | [GNU Compiler Collection D Compiler](https://gdcproject.org/) |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue