summaryrefslogtreecommitdiff
path: root/libs/vr/libbufferhubqueue/tests/Android.bp
blob: 33a0d754c16973a811e90f651895d97333cd1c1b (plain)
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
64
65
66

package {
    // See: http://go/android-license-faq
    // A large-scale-change added 'default_applicable_licenses' to import
    // all of the 'license_kinds' from "frameworks_native_license"
    // to get the below license kinds:
    //   SPDX-license-identifier-Apache-2.0
    default_applicable_licenses: ["frameworks_native_license"],
}

header_libraries = [
    "libdvr_headers",
]

shared_libraries = [
    "libbase",
    "libbinder",
    "libbufferhubqueue",
    "libcutils",
    "libgui",
    "liblog",
    "libhardware",
    "libui",
    "libutils",
    "libnativewindow",
    "libpdx_default_transport",
]

static_libraries = [
    "libchrome",
    "libdvrcommon",
    "libperformance",
]

cc_test {
    srcs: ["buffer_hub_queue-test.cpp"],
    header_libs: header_libraries,
    static_libs: static_libraries,
    shared_libs: shared_libraries,
    cflags: [
        "-DLOG_TAG=\"buffer_hub_queue-test\"",
        "-DTRACE=0",
        "-O0",
        "-g",
        "-Wall",
        "-Werror",
        "-Wno-error=sign-compare", // to fix later
    ],
    name: "buffer_hub_queue-test",
}

cc_test {
    srcs: ["buffer_hub_queue_producer-test.cpp"],
    header_libs: header_libraries,
    static_libs: static_libraries,
    shared_libs: shared_libraries,
    cflags: [
        "-DLOG_TAG=\"buffer_hub_queue_producer-test\"",
        "-DTRACE=0",
        "-O0",
        "-g",
        "-Wall",
        "-Werror",
    ],
    name: "buffer_hub_queue_producer-test",
}