Dan Willemsen | 2e1591b | 2016-07-12 17:20:18 -0700 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2014 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 | // Build the unit tests. |
| 18 | |
| 19 | cc_test { |
| 20 | name: "libutils_tests", |
Colin Cross | 155c983 | 2017-02-23 17:49:23 -0800 | [diff] [blame] | 21 | host_supported: true, |
Dan Willemsen | 2e1591b | 2016-07-12 17:20:18 -0700 | [diff] [blame] | 22 | |
| 23 | srcs: [ |
Dan Willemsen | 2e1591b | 2016-07-12 17:20:18 -0700 | [diff] [blame] | 24 | "BitSet_test.cpp", |
Dan Willemsen | 2e1591b | 2016-07-12 17:20:18 -0700 | [diff] [blame] | 25 | "LruCache_test.cpp", |
Dan Willemsen | 2e1591b | 2016-07-12 17:20:18 -0700 | [diff] [blame] | 26 | "String8_test.cpp", |
| 27 | "StrongPointer_test.cpp", |
Dan Willemsen | 2e1591b | 2016-07-12 17:20:18 -0700 | [diff] [blame] | 28 | "Unicode_test.cpp", |
| 29 | "Vector_test.cpp", |
| 30 | ], |
| 31 | |
Colin Cross | 155c983 | 2017-02-23 17:49:23 -0800 | [diff] [blame] | 32 | target: { |
| 33 | android: { |
| 34 | srcs: [ |
| 35 | "BlobCache_test.cpp", |
| 36 | "Looper_test.cpp", |
| 37 | "RefBase_test.cpp", |
| 38 | "SystemClock_test.cpp", |
| 39 | ], |
| 40 | shared_libs: [ |
| 41 | "libz", |
| 42 | "liblog", |
| 43 | "libcutils", |
| 44 | "libutils", |
| 45 | ], |
| 46 | }, |
| 47 | linux: { |
| 48 | srcs: [ |
| 49 | "Looper_test.cpp", |
| 50 | "RefBase_test.cpp", |
| 51 | ], |
| 52 | }, |
| 53 | host: { |
| 54 | static_libs: [ |
| 55 | "libutils", |
| 56 | "liblog", |
| 57 | ], |
| 58 | }, |
| 59 | }, |
Dan Willemsen | 2e1591b | 2016-07-12 17:20:18 -0700 | [diff] [blame] | 60 | |
Colin Cross | 155c983 | 2017-02-23 17:49:23 -0800 | [diff] [blame] | 61 | cflags: [ |
| 62 | "-Wall", |
| 63 | "-Wextra", |
| 64 | "-Werror", |
Dan Willemsen | 2e1591b | 2016-07-12 17:20:18 -0700 | [diff] [blame] | 65 | ], |
| 66 | } |