File: BUILD.bazel

package info (click to toggle)
android-cuttlefish 1.0.1-0~exp2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 7,192 kB
  • sloc: cpp: 39,149; sh: 2,523; javascript: 242; exp: 152; python: 125; makefile: 88
file content (63 lines) | stat: -rw-r--r-- 1,832 bytes parent folder | download
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
60
61
62
63
package(
    default_visibility = ["//visibility:public"],
)

# This file needs to change the signature of strerror_r exposed
# by a system header by defining a feature macro, which requires
# header modules to be disabled.
cc_library(
    name = "libbase_posix_strerror",
    srcs = [
        "posix_strerror_r.cpp",
    ],
    copts = ["-D_POSIX_C_SOURCE=200112"],
    features = ["-use_header_modules"],
    visibility = ["//visibility:private"],
)

cc_library(
    name = "libbase",
    srcs = [
        "file.cpp",
        "include/logging_splitters.h",
        "logging.cpp",
        "mapped_file.cpp",
        "parsebool.cpp",
        "stringprintf.cpp",
        "strings.cpp",
        "threads.cpp",
    ],
    hdrs = [
        "include/android-base/cmsg.h",
        "include/android-base/collections.h",
        "include/android-base/errno_restorer.h",
        "include/android-base/errors.h",
        "include/android-base/expected.h",
        "include/android-base/file.h",
        "include/android-base/format.h",
        "include/android-base/logging.h",
        "include/android-base/macros.h",
        "include/android-base/mapped_file.h",
        "include/android-base/off64_t.h",
        "include/android-base/parsebool.h",
        "include/android-base/parseint.h",
        "include/android-base/result.h",
        "include/android-base/scopeguard.h",
        "include/android-base/stringprintf.h",
        "include/android-base/strings.h",
        "include/android-base/threads.h",
        "include/android-base/unique_fd.h",
        "include/android-base/utf8.h",
    ],
    copts = [
        "-Wno-vla-cxx-extension",
        "-Wno-c99-designator",
        "-std=c++17",
    ],
    includes = ["include"],
    deps = [
        ":libbase_posix_strerror",
        "//android:log_header",
        "@fmt",
    ],
)