-
Notifications
You must be signed in to change notification settings - Fork 6
/
BUILD.bazel
59 lines (51 loc) · 1.21 KB
/
BUILD.bazel
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
49
50
51
52
53
54
55
56
57
58
59
# //BUILD.bazel
# Copyright 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
load("//bazel:rules.bzl", "krnlmon_cc_library")
package(default_visibility = ["//visibility:public"])
load("//bazel:rules.bzl", "krnlmon_cc_library")
load("//bazel:sde.bzl", "TARGET_SDE_LIBS", "TARGET_TDI")
cc_shared_library(
name = "krnlmon",
user_link_flags = [
"-lpthread",
"-lnl-3",
],
deps = [
"//switchapi",
"//switchlink",
"//switchlink/sai",
"//switchsai",
"//switchsde",
],
)
krnlmon_cc_library(
name = "krnlmon_main",
srcs = ["krnlmon_main.cc"],
hdrs = ["krnlmon_main.h"],
deps = [
"//switchlink:switchlink_main",
"@com_google_absl//absl/synchronization",
],
)
krnlmon_cc_library(
name = "krnlmon_options",
srcs = ["krnlmon_options.h"],
)
cc_binary(
name = "dummy_krnlmon",
srcs = [
"dummy_main.cc",
":krnlmon",
],
linkopts = [
"-lbsd",
],
deps = [
":krnlmon_main",
"@com_google_absl//absl/synchronization",
"@target_utils//:judy",
"@target_utils//:tommyds",
"@target_utils//:xxhash",
] + TARGET_SDE_LIBS + TARGET_TDI,
)