-
-
Notifications
You must be signed in to change notification settings - Fork 617
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2254 from tritao/desktop-system-tags
Adds `desktop` system tag to desktop systems.
- Loading branch information
Showing
5 changed files
with
67 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
Returns the list of tags corresponding to a system. | ||
|
||
There are tags specific to each operating system (see [system()](system.md) for a complete list of identifiers.), | ||
and meta tags like `posix`, `darwin`, `desktop` and `mobile` tags. | ||
|
||
### Tags ### | ||
|
||
| OS | Tags | | ||
|----------|-----------------------------------------| | ||
| aix | aix, posix, desktop | | ||
| android | android, mobile | | ||
| bsd | bsd, posix, desktop | | ||
| haiku | haiku, posix, desktop | | ||
| ios | ios, darwin, posix, mobile | | ||
| linux | linux, posix, desktop | | ||
| macosx | macosx, darwin, posix, desktop | | ||
| solaris | solaris, posix, desktop | | ||
| uwp | uwp, windows, desktop | | ||
| windows | windows, win32, desktop | | ||
|
||
### Examples ### | ||
|
||
```lua | ||
print("iOS system tags: " .. table.concat(os.getSystemTags("ios"), ", ")) | ||
-- iOS system tags: ios, darwin, posix, mobile | ||
``` | ||
|
||
### See Also ### | ||
[os.istarget](os.istarget.md) | ||
[os.target](os.target.md) | ||
|
||
### Availability ### | ||
|
||
Premake 5.0.0 alpha 12 or later. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Checks the target operating system against a particular identifier or tag. | ||
See [os.getSystemTags](os.getSystemTags.md) for documentation about OS tags. | ||
|
||
### Examples ### | ||
```lua | ||
print("Android: " .. os.istarget("android")) | ||
print("Mobile: " .. os.istarget("mobile")) | ||
print("Desktop: " .. os.istarget("desktop")) | ||
``` | ||
|
||
### See Also ### | ||
[os.target](os.target.md) | ||
[os.getSystemTags](os.getSystemTags.md) | ||
|
||
### Availability ### | ||
|
||
Premake 5.0.0 alpha 12 or later. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters