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