summaryrefslogtreecommitdiff
path: root/xmake/modules/detect/sdks/matlab.lua
blob: 50d50f9f40d7fb25591a0c6130cd40c763c72d3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
--!A cross-platform build utility based on Lua
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
--     http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
--
-- Copyright (C) 2015-present, Xmake Open Source Community.
--
-- @author      WubiCookie
-- @file        matlab.lua
--

-- get matlab versions
function versions()

    -- see https://www.mathworks.com/products/compiler/matlab-runtime.html
    return
    {
        ["9.12"]  = "R2022a"
    ,   ["9.11"]  = "R2021b"
    ,   ["9.10"]  = "R2021a"
    ,   ["9.9"]   = "R2020b"
    ,   ["9.8"]   = "R2020a"
    ,   ["9.7"]   = "R2019b"
    ,   ["9.6"]   = "R2019a"
    ,   ["9.5"]   = "R2018b"
    ,   ["9.4"]   = "R2018a"
    ,   ["9.3"]   = "R2017b"
    ,   ["9.2"]   = "R2017a"
    ,   ["9.1"]   = "R2016b"
    ,   ["9.0.1"] = "R2016a"
    ,   ["9.0"]   = "R2015b"
    ,   ["8.5.1"] = "R2015aSP1"
    ,   ["8.5"]   = "R2015a"
    ,   ["8.4"]   = "R2014b"
    ,   ["8.3"]   = "R2014a"
    ,   ["8.2"]   = "R2013b"
    ,   ["8.1"]   = "R2013a"
    ,   ["8.0"]   = "R2012b"
    ,   ["7.17"]  = "R2012a"
    }
end

-- get matlab versions names
function versions_names()

    return
    {
        r2022a    = "9.12"
    ,   r2021b    = "9.11"
    ,   r2021a    = "9.10"
    ,   r2020b    = "9.9"
    ,   r2020a    = "9.8"
    ,   r2019b    = "9.7"
    ,   r2019a    = "9.6"
    ,   r2018b    = "9.5"
    ,   r2018a    = "9.4"
    ,   r2017b    = "9.3"
    ,   r2017a    = "9.2"
    ,   r2016b    = "9.1"
    ,   r2016a    = "9.0.1"
    ,   r2015b    = "9.0"
    ,   r2015asp1 = "8.5.1"
    ,   r2015a    = "8.5"
    ,   r2014b    = "8.4"
    ,   r2014a    = "8.3"
    ,   r2013b    = "8.2"
    ,   r2013a    = "8.1"
    ,   r2012b    = "8.0"
    ,   r2012a    = "7.17"
    }
end