• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Description:
2#   C-style (a-la printf) logging library
3
4package(default_visibility = ["//visibility:public"])
5
6licenses(["notice"])
7
8exports_files(["LICENSE"])
9
10cc_library(
11    name = "clog",
12    srcs = [
13        "deps/clog/src/clog.c",
14    ],
15    hdrs = [
16        "deps/clog/include/clog.h",
17    ],
18    copts = select({
19        ":windows": [],
20        "//conditions:default": ["-Wno-unused-result"],
21    }),
22    linkopts = select({
23        ":android": ["-llog"],
24        "//conditions:default": [],
25    }),
26    linkstatic = True,
27    strip_include_prefix = "deps/clog/include",
28)
29
30config_setting(
31    name = "android",
32    values = {"crosstool_top": "//external:android/crosstool"},
33)
34
35config_setting(
36    name = "windows",
37    values = {"cpu": "x64_windows"},
38)
39