Steven Moreland | 23537f0 | 2017-10-12 16:20:27 -0700 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2016 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 | // |
| 16 | |
| 17 | cc_test { |
| 18 | name: "mq_test_client", |
| 19 | srcs: ["msgq_test_client.cpp"], |
| 20 | |
| 21 | cflags: [ |
| 22 | "-Wall", |
| 23 | "-Werror", |
| 24 | ], |
| 25 | |
| 26 | shared_libs: [ |
| 27 | "libbase", |
| 28 | "libcutils", |
| 29 | "libfmq", |
| 30 | "libhidlbase", |
Steven Moreland | 23537f0 | 2017-10-12 16:20:27 -0700 | [diff] [blame] | 31 | "liblog", |
| 32 | "libutils", |
| 33 | ], |
| 34 | |
| 35 | // Allow dlsym'ing self for statically linked passthrough implementations |
| 36 | ldflags: ["-rdynamic"], |
| 37 | |
| 38 | // These are static libs only for testing purposes and portability. Shared |
| 39 | // libs should be used on device. |
| 40 | static_libs: ["android.hardware.tests.msgq@1.0"], |
| 41 | whole_static_libs: ["android.hardware.tests.msgq@1.0-impl"], |
| 42 | } |
| 43 | |
| 44 | cc_test { |
| 45 | name: "mq_test", |
| 46 | |
| 47 | srcs: ["mq_test.cpp"], |
| 48 | shared_libs: [ |
| 49 | "libbase", |
| 50 | "libcutils", |
| 51 | "libfmq", |
| 52 | "libhidlbase", |
Steven Moreland | 23537f0 | 2017-10-12 16:20:27 -0700 | [diff] [blame] | 53 | "liblog", |
| 54 | "libutils", |
| 55 | ], |
| 56 | |
| 57 | cflags: [ |
| 58 | "-Wall", |
| 59 | "-Werror", |
| 60 | ], |
| 61 | } |
Dan Willemsen | 57103f7 | 2020-03-07 21:22:49 -0800 | [diff] [blame] | 62 | |
| 63 | vts_config { |
| 64 | name: "VtsFmqUnitTests", |
| 65 | } |