Dan Willemsen | eee8e7f | 2016-06-06 22:31:58 -0700 | [diff] [blame] | 1 | // 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 | |
| 15 | cc_defaults { |
| 16 | name: "libcutils_test_default", |
| 17 | srcs: ["sockets_test.cpp"], |
| 18 | |
| 19 | target: { |
| 20 | android: { |
| 21 | srcs: [ |
| 22 | "MemsetTest.cpp", |
| 23 | "PropertiesTest.cpp", |
Greg Hackmann | ed0614c | 2016-08-03 10:41:54 -0700 | [diff] [blame^] | 24 | "sched_policy_test.cpp", |
Dan Willemsen | eee8e7f | 2016-06-06 22:31:58 -0700 | [diff] [blame] | 25 | "trace-dev_test.cpp", |
| 26 | ], |
| 27 | }, |
| 28 | |
| 29 | not_windows: { |
| 30 | srcs: ["test_str_parms.cpp"], |
| 31 | }, |
| 32 | }, |
| 33 | |
| 34 | multilib: { |
| 35 | lib32: { |
| 36 | suffix: "32", |
| 37 | }, |
| 38 | lib64: { |
| 39 | suffix: "64", |
| 40 | }, |
| 41 | }, |
| 42 | } |
| 43 | |
| 44 | test_libraries = [ |
| 45 | "libcutils", |
| 46 | "liblog", |
| 47 | "libbase", |
| 48 | ] |
| 49 | |
| 50 | cc_test { |
| 51 | name: "libcutils_test", |
| 52 | defaults: ["libcutils_test_default"], |
| 53 | host_supported: true, |
| 54 | shared_libs: test_libraries, |
| 55 | } |
| 56 | |
| 57 | cc_test { |
| 58 | name: "libcutils_test_static", |
| 59 | defaults: ["libcutils_test_default"], |
| 60 | static_libs: ["libc"] + test_libraries, |
| 61 | stl: "libc++_static", |
| 62 | |
| 63 | target: { |
| 64 | android: { |
| 65 | static_executable: true, |
| 66 | }, |
| 67 | windows: { |
| 68 | host_ldlibs: ["-lws2_32"], |
| 69 | |
| 70 | enabled: true, |
| 71 | }, |
| 72 | }, |
| 73 | } |