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 16package { 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 25cc_library { 26 name: "android.hardware.tests.msgq@1.0-impl", 27 defaults: ["hidl_defaults"], 28 relative_install_path: "hw", 29 srcs: [ 30 "TestMsgQ.cpp", 31 "BenchmarkMsgQ.cpp", 32 ], 33 shared_libs: [ 34 "libbase", 35 "libcutils", 36 "libfmq", 37 "libhidlbase", 38 "liblog", 39 "libutils", 40 ], 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", 46 ], 47} 48 49cc_test { 50 name: "android.hardware.tests.msgq@1.0-service-benchmark", 51 defaults: ["hidl_defaults"], 52 srcs: ["mq_benchmark_service.cpp"], 53 gtest: false, 54 55 shared_libs: [ 56 "libbase", 57 "libcutils", 58 "libhidlbase", 59 "liblog", 60 "libutils", 61 "android.hardware.tests.msgq@1.0", 62 ], 63 test_suites: ["general-tests"], 64} 65 66cc_test { 67 name: "android.hardware.tests.msgq@1.0-service-test", 68 defaults: ["hidl_defaults"], 69 srcs: ["mq_test_service.cpp"], 70 gtest: false, 71 72 shared_libs: [ 73 "libbase", 74 "libcutils", 75 "libfmq", 76 "libhidlbase", 77 "liblog", 78 "libutils", 79 "libbinder_ndk", 80 ], 81 82 compile_multilib: "both", 83 multilib: { 84 lib32: { 85 suffix: "32", 86 }, 87 lib64: { 88 suffix: "64", 89 }, 90 }, 91 test_suites: [ 92 "general-tests", 93 "vts", 94 ], 95 auto_gen_config: false, 96 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. 102 static_libs: [ 103 "android.hardware.common-V2-ndk_platform", 104 "android.hardware.common.fmq-V1-ndk_platform", 105 "android.hardware.tests.msgq@1.0", 106 "android.fmq.test-ndk_platform", 107 ], 108 whole_static_libs: [ 109 "android.hardware.tests.msgq@1.0-impl", 110 "android.fmq.test-impl", 111 ], 112} 113