aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/lua/ya.make
blob: 942562d2db125003def4f5a1e6744ec06eaa3a06 (plain) (blame)
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
LIBRARY()

LICENSE(MIT)

LICENSE_TEXTS(.yandex_meta/licenses.list.txt)

VERSION(5.2.0)

PROVIDES(lua)

NO_COMPILER_WARNINGS()

IF (OS_LINUX)
    CFLAGS(-DLUA_USE_LINUX)
ELSEIF (OS_FREEBSD)
    CFLAGS(-DLUA_USE_LINUX)
ELSEIF (OS_DARWIN)
    CFLAGS(-DLUA_USE_MACOSX)
ELSEIF (OS_WINDOWS)
    CFLAGS(-DLUA_WIN)
ELSE()
    CFLAGS(
        -DLUA_USE_POSIX
        -DLUA_USE_DLOPEN
    )
ENDIF()

ADDINCL(contrib/libs/lua/lua-5.2.0/src)

SRCDIR(contrib/libs/lua/lua-5.2.0/src)

ARCHIVE(
    NAME common.inc
    common/stdlib.lua
    common/json.lua
)

PEERDIR(
    library/cpp/archive
)

SRCS(
    lib.cpp
)

END()