1package(default_visibility = ["//visibility:public"])
2
3cc_library(
4    name = "lua_library",
5    srcs =
6        glob(
7            [
8                "**/*.c",
9                "**/*.h",
10            ],
11            exclude = [
12                "**/lauxlib.h",
13                "**/lua.h",
14                "**/lua.hpp",
15                "**/luaconf.h",
16                "**/lualib.h",
17                "**/lua.c",
18                "**/luac.c",
19            ],
20        ),
21    hdrs = glob([
22        "**/lauxlib.h",
23        "**/lua.h",
24        "**/lua.hpp",
25        "**/luaconf.h",
26        "**/lualib.h",
27    ]),
28    copts = [
29        "-w",
30        "-fPIC",
31    ],
32    defines = ["LUA_USE_LINUX"],
33    includes = ["src"],
34    linkopts = [
35        "-lm",
36        "-ldl",
37    ],
38)
39