summaryrefslogtreecommitdiff
path: root/make.lua
blob: f1268d8a8e5a70d7c5555e853d4d9d551484e4f7 (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
local lm       = require 'luamake'

lm.target = 'x64'

if lm.plat == "macos" then
    lm.flags = {
        "-mmacosx-version-min=10.13",
    }
end

lm:import("3rd/bee.lua/make.lua", {
    EXE_RESOURCE = "../../make/lua-language-server.rc"
})

lm.rootdir = '3rd/'

lm:lua_dll 'lpeglabel' {
    sources = 'lpeglabel/*.c',
    visibility = 'default',
    defines = {
        'MAXRECLEVEL=1000',
    },
}

lm:build 'install' {
    '$luamake', 'lua', 'make/install.lua', lm.plat,
    deps = {
        'lua',
        'lpeglabel',
        'bee',
        'bootstrap',
    }
}

lm:build 'unittest' {
    '$luamake', 'lua', 'make/unittest.lua', lm.plat,
    deps = {
        'install',
        'test',
    }
}

lm:default {
    'install',
    'test',
    'unittest',
}