blob: abe3c214530a5202070b422e131603dc9558dfce [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",
Mark Salyzyn52bd37e2016-11-07 09:39:30 -080017 srcs: ["sockets_test.cpp"],
Dan Willemseneee8e7f2016-06-06 22:31:58 -070018
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",
Mark Salyzyn678194d2016-11-28 10:39:21 -080027 "test_str_parms.cpp",
28 "android_get_control_socket_test.cpp",
29 "android_get_control_file_test.cpp"
Dan Willemseneee8e7f2016-06-06 22:31:58 -070030 ],
31 },
32
33 not_windows: {
Mark Salyzyn52bd37e2016-11-07 09:39:30 -080034 srcs: [
35 "test_str_parms.cpp",
Mark Salyzyn52bd37e2016-11-07 09:39:30 -080036 ],
Dan Willemseneee8e7f2016-06-06 22:31:58 -070037 },
38 },
39
40 multilib: {
41 lib32: {
42 suffix: "32",
43 },
44 lib64: {
45 suffix: "64",
46 },
47 },
48}
49
50test_libraries = [
51 "libcutils",
52 "liblog",
53 "libbase",
54]
55
56cc_test {
57 name: "libcutils_test",
58 defaults: ["libcutils_test_default"],
59 host_supported: true,
60 shared_libs: test_libraries,
61}
62
63cc_test {
64 name: "libcutils_test_static",
65 defaults: ["libcutils_test_default"],
66 static_libs: ["libc"] + test_libraries,
67 stl: "libc++_static",
68
69 target: {
70 android: {
71 static_executable: true,
72 },
73 windows: {
74 host_ldlibs: ["-lws2_32"],
75
76 enabled: true,
77 },
78 },
79}