diff options
| author | ruki <[email protected]> | 2018-09-02 22:12:32 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-09-02 22:12:32 +0800 |
| commit | 3b7cbb55f26f2beff05c0c803ee20d27712a15ba (patch) | |
| tree | d7dce23a9ddf04f0c33fd0293a1fb07a996028dc /xmake/modules/os/winver.lua | |
| parent | d54f54c0e7f90d8eade621f102d18938cd153f5b (diff) | |
fix wdk rule bug
Diffstat (limited to 'xmake/modules/os/winver.lua')
| -rw-r--r-- | xmake/modules/os/winver.lua | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/xmake/modules/os/winver.lua b/xmake/modules/os/winver.lua index 288f3a89f..e684ffa02 100644 --- a/xmake/modules/os/winver.lua +++ b/xmake/modules/os/winver.lua @@ -94,6 +94,32 @@ function target_version(name) return version(name) end +-- get subsystem version from name +function subsystem(name) + + -- ignore the subname with '_xxx' + name = (name or ""):split('_')[1] + + -- make defined values + local defvals = + { + nt4 = "4.00" + , win2k = "5.00" + , winxp = "5.01" + , ws03 = "5.02" + , win6 = "6.00" + , vista = "6.00" + , ws08 = "6.00" + , longhorn = "6.00" + , win7 = "6.01" + , win8 = "6.02" + , winblue = "6.03" + , win81 = "6.03" + , win10 = "10.00" + } + return defvals[name] or "10.00" +end + -- get windows system version -- -- $ xmake l os.winver |
