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

lm.arch = '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',
}