Hridya Valsaraju | 171603e | 2017-03-07 20:25:08 -0800 | [diff] [blame] | 1 | // |
| 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 Badour | b224b36 | 2021-02-12 20:13:01 -0800 | [diff] [blame] | 16 | package { |
| 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 Moreland | 26d0dcf | 2017-10-12 16:20:53 -0700 | [diff] [blame] | 25 | cc_library { |
Hridya Valsaraju | 8a70862 | 2017-03-06 14:10:42 -0800 | [diff] [blame] | 26 | name: "android.hardware.tests.msgq@1.0-impl", |
Steven Moreland | 691a455 | 2017-03-08 15:58:46 -0800 | [diff] [blame] | 27 | defaults: ["hidl_defaults"], |
Hridya Valsaraju | 8a70862 | 2017-03-06 14:10:42 -0800 | [diff] [blame] | 28 | relative_install_path: "hw", |
Hridya Valsaraju | 8a70862 | 2017-03-06 14:10:42 -0800 | [diff] [blame] | 29 | srcs: [ |
| 30 | "TestMsgQ.cpp", |
Devin Moore | 1b34d67 | 2020-07-08 09:31:08 -0700 | [diff] [blame] | 31 | "BenchmarkMsgQ.cpp", |
Hridya Valsaraju | 8a70862 | 2017-03-06 14:10:42 -0800 | [diff] [blame] | 32 | ], |
| 33 | shared_libs: [ |
| 34 | "libbase", |
| 35 | "libcutils", |
| 36 | "libfmq", |
| 37 | "libhidlbase", |
Hridya Valsaraju | 8a70862 | 2017-03-06 14:10:42 -0800 | [diff] [blame] | 38 | "liblog", |
| 39 | "libutils", |
Hridya Valsaraju | 8a70862 | 2017-03-06 14:10:42 -0800 | [diff] [blame] | 40 | ], |
Steven Moreland | 26d0dcf | 2017-10-12 16:20:53 -0700 | [diff] [blame] | 41 | |
| 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 Moore | 1b34d67 | 2020-07-08 09:31:08 -0700 | [diff] [blame] | 46 | ], |
Hridya Valsaraju | 8a70862 | 2017-03-06 14:10:42 -0800 | [diff] [blame] | 47 | } |
Hridya Valsaraju | 171603e | 2017-03-07 20:25:08 -0800 | [diff] [blame] | 48 | |
| 49 | cc_test { |
| 50 | name: "android.hardware.tests.msgq@1.0-service-benchmark", |
Chih-Hung Hsieh | 3da5b01 | 2017-09-29 15:15:48 -0700 | [diff] [blame] | 51 | defaults: ["hidl_defaults"], |
Hridya Valsaraju | 171603e | 2017-03-07 20:25:08 -0800 | [diff] [blame] | 52 | srcs: ["mq_benchmark_service.cpp"], |
| 53 | gtest: false, |
| 54 | |
| 55 | shared_libs: [ |
| 56 | "libbase", |
| 57 | "libcutils", |
| 58 | "libhidlbase", |
Hridya Valsaraju | 171603e | 2017-03-07 20:25:08 -0800 | [diff] [blame] | 59 | "liblog", |
| 60 | "libutils", |
Devin Moore | 1b34d67 | 2020-07-08 09:31:08 -0700 | [diff] [blame] | 61 | "android.hardware.tests.msgq@1.0", |
Hridya Valsaraju | 171603e | 2017-03-07 20:25:08 -0800 | [diff] [blame] | 62 | ], |
Keun Soo YIM | 68ae05d | 2018-11-27 14:04:42 -0800 | [diff] [blame] | 63 | test_suites: ["general-tests"], |
Hridya Valsaraju | 171603e | 2017-03-07 20:25:08 -0800 | [diff] [blame] | 64 | } |
| 65 | |
| 66 | cc_test { |
| 67 | name: "android.hardware.tests.msgq@1.0-service-test", |
Chih-Hung Hsieh | 3da5b01 | 2017-09-29 15:15:48 -0700 | [diff] [blame] | 68 | defaults: ["hidl_defaults"], |
Hridya Valsaraju | 171603e | 2017-03-07 20:25:08 -0800 | [diff] [blame] | 69 | srcs: ["mq_test_service.cpp"], |
| 70 | gtest: false, |
| 71 | |
| 72 | shared_libs: [ |
| 73 | "libbase", |
| 74 | "libcutils", |
Steven Moreland | 26d0dcf | 2017-10-12 16:20:53 -0700 | [diff] [blame] | 75 | "libfmq", |
Hridya Valsaraju | 171603e | 2017-03-07 20:25:08 -0800 | [diff] [blame] | 76 | "libhidlbase", |
Hridya Valsaraju | 171603e | 2017-03-07 20:25:08 -0800 | [diff] [blame] | 77 | "liblog", |
| 78 | "libutils", |
Devin Moore | 1b34d67 | 2020-07-08 09:31:08 -0700 | [diff] [blame] | 79 | "libbinder_ndk", |
Hridya Valsaraju | 171603e | 2017-03-07 20:25:08 -0800 | [diff] [blame] | 80 | ], |
Steven Moreland | 26d0dcf | 2017-10-12 16:20:53 -0700 | [diff] [blame] | 81 | |
Steven Moreland | d4ed520 | 2020-05-16 02:08:24 +0000 | [diff] [blame] | 82 | compile_multilib: "both", |
| 83 | multilib: { |
| 84 | lib32: { |
| 85 | suffix: "32", |
| 86 | }, |
| 87 | lib64: { |
| 88 | suffix: "64", |
| 89 | }, |
| 90 | }, |
Steven Moreland | 46e2487 | 2020-09-10 22:20:02 +0000 | [diff] [blame] | 91 | test_suites: [ |
| 92 | "general-tests", |
| 93 | "vts", |
| 94 | ], |
| 95 | auto_gen_config: false, |
Steven Moreland | d4ed520 | 2020-05-16 02:08:24 +0000 | [diff] [blame] | 96 | |
Steven Moreland | 26d0dcf | 2017-10-12 16:20:53 -0700 | [diff] [blame] | 97 | // 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 Moore | 1b34d67 | 2020-07-08 09:31:08 -0700 | [diff] [blame] | 102 | static_libs: [ |
Jiyong Park | 27f77fe | 2021-07-27 12:16:52 +0900 | [diff] [blame] | 103 | "android.hardware.common-V2-ndk", |
| 104 | "android.hardware.common.fmq-V1-ndk", |
Devin Moore | 1b34d67 | 2020-07-08 09:31:08 -0700 | [diff] [blame] | 105 | "android.hardware.tests.msgq@1.0", |
Jiyong Park | 27f77fe | 2021-07-27 12:16:52 +0900 | [diff] [blame] | 106 | "android.fmq.test-ndk", |
Devin Moore | 1b34d67 | 2020-07-08 09:31:08 -0700 | [diff] [blame] | 107 | ], |
| 108 | whole_static_libs: [ |
| 109 | "android.hardware.tests.msgq@1.0-impl", |
| 110 | "android.fmq.test-impl", |
| 111 | ], |
Hridya Valsaraju | 171603e | 2017-03-07 20:25:08 -0800 | [diff] [blame] | 112 | } |