• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1cc_defaults {
2    name: "hidl_test_client-defaults",
3    defaults: ["hidl-gen-defaults"],
4
5    shared_libs: [
6        "android.hidl.memory@1.0",
7        "android.hidl.memory.token@1.0",
8        "android.hidl.token@1.0",
9        "libbase",
10        "libcutils",
11        "libhidlbase",
12        "libhidlmemory",
13        "liblog",
14        "libutils",
15    ],
16
17    // Allow dlsym'ing self for statically linked passthrough implementations
18    ldflags: ["-rdynamic"],
19
20    // These are static libs only for testing purposes and portability. Shared
21    // libs should be used on device.
22    static_libs: [
23        "libfootest",
24        "libhidl-gen-utils",
25        "android.hardware.tests.expression@1.0",
26        "android.hardware.tests.foo@1.0",
27        "android.hardware.tests.bar@1.0",
28        "android.hardware.tests.baz@1.0",
29        "android.hardware.tests.hash@1.0",
30        "android.hardware.tests.inheritance@1.0",
31        "android.hardware.tests.memory@1.0",
32        "android.hardware.tests.multithread@1.0",
33        "android.hardware.tests.trie@1.0",
34        "android.hardware.tests.safeunion.cpp@1.0",
35        "android.hardware.tests.safeunion@1.0",
36    ],
37
38    // impls should never be static, these are used only for testing purposes
39    // and test portability since this test pairs with specific hal
40    // implementations
41    whole_static_libs: [
42        "android.hardware.tests.foo@1.0-impl",
43        "android.hardware.tests.bar@1.0-impl",
44        "android.hardware.tests.baz@1.0-impl",
45        "android.hardware.tests.hash@1.0-impl",
46        "android.hardware.tests.inheritance@1.0-impl",
47        "android.hardware.tests.memory@1.0-impl",
48        "android.hardware.tests.multithread@1.0-impl",
49        "android.hardware.tests.trie@1.0-impl",
50        "android.hardware.tests.safeunion.cpp@1.0-impl",
51        "android.hardware.tests.safeunion@1.0-impl",
52    ],
53
54    group_static_libs: true,
55}
56
57cc_test {
58    name: "hidl_test_client",
59    defaults: ["hidl_test_client-defaults"],
60
61    srcs: [
62        "hidl_test_client.cpp",
63        "FooCallback.cpp",
64        "static_test.cpp"
65    ],
66
67    shared_libs: [
68        "android.hidl.allocator@1.0",
69    ],
70}
71
72cc_test {
73    name: "hidl_test_servers",
74    defaults: ["hidl_test_client-defaults"],
75    srcs: ["hidl_test_servers.cpp"],
76    gtest: false,
77}
78