blob: 75973fcdea15b8e1311a6650e18a0debe4d0fdcb [file] [log] [blame]
Hridya Valsaraju171603e2017-03-07 20:25:08 -08001//
2// Copyright (C) 2017 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
Bob Badourb224b362021-02-12 20:13:01 -080016package {
17 // See: http://go/android-license-faq
18 // A large-scale-change added 'default_applicable_licenses' to import
19 // all of the 'license_kinds' from "hardware_interfaces_license"
20 // to get the below license kinds:
21 // SPDX-license-identifier-Apache-2.0
22 default_applicable_licenses: ["hardware_interfaces_license"],
23}
24
Steven Moreland26d0dcf2017-10-12 16:20:53 -070025cc_library {
Hridya Valsaraju8a708622017-03-06 14:10:42 -080026 name: "android.hardware.tests.msgq@1.0-impl",
Steven Moreland691a4552017-03-08 15:58:46 -080027 defaults: ["hidl_defaults"],
Hridya Valsaraju8a708622017-03-06 14:10:42 -080028 relative_install_path: "hw",
Hridya Valsaraju8a708622017-03-06 14:10:42 -080029 srcs: [
30 "TestMsgQ.cpp",
Devin Moore1b34d672020-07-08 09:31:08 -070031 "BenchmarkMsgQ.cpp",
Hridya Valsaraju8a708622017-03-06 14:10:42 -080032 ],
33 shared_libs: [
34 "libbase",
35 "libcutils",
36 "libfmq",
37 "libhidlbase",
Hridya Valsaraju8a708622017-03-06 14:10:42 -080038 "liblog",
39 "libutils",
Hridya Valsaraju8a708622017-03-06 14:10:42 -080040 ],
Steven Moreland26d0dcf2017-10-12 16:20:53 -070041
42 // These are static libs only for testing purposes and portability. Shared
43 // libs should be used on device.
44 static_libs: [
45 "android.hardware.tests.msgq@1.0",
Devin Moore1b34d672020-07-08 09:31:08 -070046 ],
Hridya Valsaraju8a708622017-03-06 14:10:42 -080047}
Hridya Valsaraju171603e2017-03-07 20:25:08 -080048
49cc_test {
50 name: "android.hardware.tests.msgq@1.0-service-benchmark",
Chih-Hung Hsieh3da5b012017-09-29 15:15:48 -070051 defaults: ["hidl_defaults"],
Hridya Valsaraju171603e2017-03-07 20:25:08 -080052 srcs: ["mq_benchmark_service.cpp"],
53 gtest: false,
54
55 shared_libs: [
56 "libbase",
57 "libcutils",
58 "libhidlbase",
Hridya Valsaraju171603e2017-03-07 20:25:08 -080059 "liblog",
60 "libutils",
Devin Moore1b34d672020-07-08 09:31:08 -070061 "android.hardware.tests.msgq@1.0",
Hridya Valsaraju171603e2017-03-07 20:25:08 -080062 ],
Keun Soo YIM68ae05d2018-11-27 14:04:42 -080063 test_suites: ["general-tests"],
Hridya Valsaraju171603e2017-03-07 20:25:08 -080064}
65
66cc_test {
67 name: "android.hardware.tests.msgq@1.0-service-test",
Chih-Hung Hsieh3da5b012017-09-29 15:15:48 -070068 defaults: ["hidl_defaults"],
Hridya Valsaraju171603e2017-03-07 20:25:08 -080069 srcs: ["mq_test_service.cpp"],
70 gtest: false,
71
72 shared_libs: [
73 "libbase",
74 "libcutils",
Steven Moreland26d0dcf2017-10-12 16:20:53 -070075 "libfmq",
Hridya Valsaraju171603e2017-03-07 20:25:08 -080076 "libhidlbase",
Hridya Valsaraju171603e2017-03-07 20:25:08 -080077 "liblog",
78 "libutils",
Devin Moore1b34d672020-07-08 09:31:08 -070079 "libbinder_ndk",
Hridya Valsaraju171603e2017-03-07 20:25:08 -080080 ],
Steven Moreland26d0dcf2017-10-12 16:20:53 -070081
Steven Morelandd4ed5202020-05-16 02:08:24 +000082 compile_multilib: "both",
83 multilib: {
84 lib32: {
85 suffix: "32",
86 },
87 lib64: {
88 suffix: "64",
89 },
90 },
Steven Moreland46e24872020-09-10 22:20:02 +000091 test_suites: [
92 "general-tests",
93 "vts",
94 ],
95 auto_gen_config: false,
Steven Morelandd4ed5202020-05-16 02:08:24 +000096
Steven Moreland26d0dcf2017-10-12 16:20:53 -070097 // Allow dlsym'ing self for statically linked passthrough implementations
98 ldflags: ["-rdynamic"],
99
100 // These are static libs only for testing purposes and portability. Shared
101 // libs should be used on device.
Devin Moore1b34d672020-07-08 09:31:08 -0700102 static_libs: [
Jiyong Park27f77fe2021-07-27 12:16:52 +0900103 "android.hardware.common-V2-ndk",
104 "android.hardware.common.fmq-V1-ndk",
Devin Moore1b34d672020-07-08 09:31:08 -0700105 "android.hardware.tests.msgq@1.0",
Jiyong Park27f77fe2021-07-27 12:16:52 +0900106 "android.fmq.test-ndk",
Devin Moore1b34d672020-07-08 09:31:08 -0700107 ],
108 whole_static_libs: [
109 "android.hardware.tests.msgq@1.0-impl",
110 "android.fmq.test-impl",
111 ],
Hridya Valsaraju171603e2017-03-07 20:25:08 -0800112}