File: Android.bp

package info (click to toggle)
android-platform-system-extras 8.1.0%2Br23-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 12,020 kB
  • sloc: cpp: 38,496; ansic: 16,188; python: 4,363; sh: 4,026; java: 584; xml: 367; asm: 169; makefile: 20
file content (47 lines) | stat: -rw-r--r-- 918 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
// Build the unit tests.

perfprofd_test_cppflags = [
    "-Wall",
    "-Wno-sign-compare",
    "-Wno-unused-parameter",
    "-Werror",
]

//
// Static library with mockup utilities layer (called by unit test).
//
cc_library_static {
    name: "libperfprofdmockutils",
    clang: true,

    include_dirs: ["system/extras/perfprofd"],
    cppflags: perfprofd_test_cppflags,
    srcs: ["perfprofdmockutils.cc"],
}

//
// Unit test for perfprofd
//
cc_test {
    name: "perfprofd_test",
    test_suites: ["device-tests"],
    clang: true,

    stl: "libc++",
    static_libs: [
        "libperfprofdcore",
        "libperfprofdmockutils",
        "libbase",
    ],
    shared_libs: [
        "libprotobuf-cpp-lite",
        "liblog",
        "libcutils",
    ],
    srcs: ["perfprofd_test.cc"],
    cppflags: perfprofd_test_cppflags,
    data: [
        "canned.perf.data",
        "callchain.canned.perf.data",
    ],
}