BUILD 972 字节
Newer Older
S
storypku 已提交
1 2
load("@rules_cc//cc:defs.bzl", "cc_library")

X
Xiangquan Xiao 已提交
3 4
package(default_visibility = ["//visibility:public"])

5 6 7
cc_library(
    name = "libtorch",
    deps = select({
8
        "//tools/platform:use_gpu": [
9
            "@libtorch_gpu",
10 11
        ],
        "//conditions:default": [
12
            "@libtorch_cpu",
13 14 15 16
        ],
    }),
)

17 18 19
# systemlibs
# TODO(infra): all the system libs should have its own section

20
# libncurses5-dev
X
Xiangquan Xiao 已提交
21
cc_library(
X
Xiangquan Xiao 已提交
22 23
    name = "ncurses",
    linkopts = ["-lncurses"],
X
Xiangquan Xiao 已提交
24
)
X
Xiangquan Xiao 已提交
25

26
# libsqlite3-dev
27 28 29 30 31
cc_library(
    name = "sqlite3",
    linkopts = ["-lsqlite3"],
)

32
# uuid-dev
X
Xiangquan Xiao 已提交
33 34 35
cc_library(
    name = "uuid",
    linkopts = ["-luuid"],
X
Xiangquan Xiao 已提交
36
)
37 38 39 40 41 42 43 44

# atlas-cblas
cc_library(
    name = "cblas",
    linkopts = [
        "-lcblas",
    ],
)
45 46 47 48 49 50 51

cc_library(
    name = "zlib",
    linkopts = [
        "-lz",
    ],
)
52 53 54 55 56 57 58 59 60 61 62 63 64 65

cc_library(
    name = "console_bridge",
    linkopts = [
        "-lconsole_bridge",
    ],
)

cc_library(
    name = "glvnd",
    linkopts = [
        "-lGL",
    ],
)