blob: f81943da4bac03ffc052c871ecadf37dc796da3b [file] [log] [blame]
Dan Willemsen2e1591b2016-07-12 17:20:18 -07001//
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
19cc_test {
20 name: "libutils_tests",
Colin Crossafa891e2017-02-23 17:49:23 -080021 host_supported: true,
Dan Willemsen2e1591b2016-07-12 17:20:18 -070022
23 srcs: [
Dan Willemsen2e1591b2016-07-12 17:20:18 -070024 "BitSet_test.cpp",
25 "Looper_test.cpp",
26 "LruCache_test.cpp",
Hans Boehm4a8276c2016-06-01 15:29:55 -070027 "RefBase_test.cpp",
Dan Willemsen2e1591b2016-07-12 17:20:18 -070028 "String8_test.cpp",
29 "StrongPointer_test.cpp",
Dan Willemsen2e1591b2016-07-12 17:20:18 -070030 "Unicode_test.cpp",
31 "Vector_test.cpp",
32 ],
33
Colin Crossafa891e2017-02-23 17:49:23 -080034 target: {
35 android: {
36 srcs: [
37 "BlobCache_test.cpp",
38 "SystemClock_test.cpp",
39 ],
40 shared_libs: [
41 "libz",
42 "liblog",
43 "libcutils",
44 "libutils",
45 ],
46 },
47 host: {
48 static_libs: [
49 "libutils",
50 "liblog",
51 ],
52 },
53 },
Dan Willemsen2e1591b2016-07-12 17:20:18 -070054
Colin Crossafa891e2017-02-23 17:49:23 -080055 cflags: [
56 "-Wall",
57 "-Wextra",
58 "-Werror",
Dan Willemsen2e1591b2016-07-12 17:20:18 -070059 ],
60}