File: Android.bp

package info (click to toggle)
android-platform-system-tools-hidl 10.0.0%2Br36-3.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,936 kB
  • sloc: cpp: 21,933; yacc: 1,416; java: 1,239; lex: 496; sh: 360; python: 44; xml: 20; makefile: 12
file content (82 lines) | stat: -rw-r--r-- 2,478 bytes parent folder | download | duplicates (3)
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
cc_defaults {
    name: "hidl_test_client-defaults",
    defaults: ["hidl-gen-defaults"],

    shared_libs: [
        "android.hidl.memory@1.0",
        "android.hidl.memory.token@1.0",
        "android.hidl.token@1.0",
        "libbase",
        "libcutils",
        "libhidlbase",
        "libhidlmemory",
        "libhidltransport",
        "libhwbinder",
        "liblog",
        "libutils",
    ],

    // Allow dlsym'ing self for statically linked passthrough implementations
    ldflags: ["-rdynamic"],

    // These are static libs only for testing purposes and portability. Shared
    // libs should be used on device.
    static_libs: [
        "libfootest",
        "libhidl-gen-utils",
        "libpointertest",
        "android.hardware.tests.expression@1.0",
        "android.hardware.tests.foo@1.0",
        "android.hardware.tests.bar@1.0",
        "android.hardware.tests.baz@1.0",
        "android.hardware.tests.hash@1.0",
        "android.hardware.tests.inheritance@1.0",
        "android.hardware.tests.pointer@1.0",
        "android.hardware.tests.memory@1.0",
        "android.hardware.tests.multithread@1.0",
        "android.hardware.tests.trie@1.0",
        "android.hardware.tests.safeunion.cpp@1.0",
        "android.hardware.tests.safeunion@1.0",
    ],

    // impls should never be static, these are used only for testing purposes
    // and test portability since this test pairs with specific hal
    // implementations
    whole_static_libs: [
        "android.hardware.tests.foo@1.0-impl",
        "android.hardware.tests.bar@1.0-impl",
        "android.hardware.tests.baz@1.0-impl",
        "android.hardware.tests.hash@1.0-impl",
        "android.hardware.tests.inheritance@1.0-impl",
        "android.hardware.tests.pointer@1.0-impl",
        "android.hardware.tests.memory@1.0-impl",
        "android.hardware.tests.multithread@1.0-impl",
        "android.hardware.tests.trie@1.0-impl",
        "android.hardware.tests.safeunion.cpp@1.0-impl",
        "android.hardware.tests.safeunion@1.0-impl",
    ],

    group_static_libs: true,
}

cc_test {
    name: "hidl_test_client",
    defaults: ["hidl_test_client-defaults"],

    srcs: [
        "hidl_test_client.cpp",
        "FooCallback.cpp",
        "static_test.cpp"
    ],

    shared_libs: [
        "android.hidl.allocator@1.0",
    ],
}

cc_test {
    name: "hidl_test_servers",
    defaults: ["hidl_test_client-defaults"],
    srcs: ["hidl_test_servers.cpp"],
    gtest: false,
}