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

lm:import '3rd/bee.lua/make.lua'

lm.arch = 'x64'
lm.rootdir = '3rd/'

lm:shared_library 'lni' {
    deps = 'lua54',
    sources = {
        'lni/src/main.cpp',
    }
}

lm:shared_library 'lpeglabel' {
    deps = 'lua54',
    sources = 'lpeglabel/*.c',
    ldflags = '/EXPORT:luaopen_lpeglabel'
}

lm:executable 'rcedit' {
    sources = 'rcedit/src/*.cc',
    defines = {
        '_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING'
    },
    flags = {
        '/wd4477',
        '/wd4244',
        '/wd4267',
    }
}

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

lm:default {
    'install'
}