blob: 06d0e284e9e0a6306e3c35480187680d52cd6355 [file] [log] [blame]
Dan Willemseneee8e7f2016-06-06 22:31:58 -07001// Copyright (C) 2014 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15cc_defaults {
16 name: "libcutils_test_default",
17 srcs: ["sockets_test.cpp"],
18
19 target: {
20 android: {
21 srcs: [
Connor O'Briena963ae82016-09-12 15:52:04 -070022 "AshmemTest.cpp",
Dan Willemseneee8e7f2016-06-06 22:31:58 -070023 "MemsetTest.cpp",
24 "PropertiesTest.cpp",
Greg Hackmanned0614c2016-08-03 10:41:54 -070025 "sched_policy_test.cpp",
Dan Willemseneee8e7f2016-06-06 22:31:58 -070026 "trace-dev_test.cpp",
27 ],
28 },
29
30 not_windows: {
31 srcs: ["test_str_parms.cpp"],
32 },
33 },
34
35 multilib: {
36 lib32: {
37 suffix: "32",
38 },
39 lib64: {
40 suffix: "64",
41 },
42 },
43}
44
45test_libraries = [
46 "libcutils",
47 "liblog",
48 "libbase",
49]
50
51cc_test {
52 name: "libcutils_test",
53 defaults: ["libcutils_test_default"],
54 host_supported: true,
55 shared_libs: test_libraries,
56}
57
58cc_test {
59 name: "libcutils_test_static",
60 defaults: ["libcutils_test_default"],
61 static_libs: ["libc"] + test_libraries,
62 stl: "libc++_static",
63
64 target: {
65 android: {
66 static_executable: true,
67 },
68 windows: {
69 host_ldlibs: ["-lws2_32"],
70
71 enabled: true,
72 },
73 },
74}