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", |
Mark Salyzyn | 52bd37e | 2016-11-07 09:39:30 -0800 | [diff] [blame^] | 17 | srcs: ["sockets_test.cpp"], |
Dan Willemsen | eee8e7f | 2016-06-06 22:31:58 -0700 | [diff] [blame] | 18 | |
| 19 | target: { |
| 20 | android: { |
| 21 | srcs: [ |
Connor O'Brien | a963ae8 | 2016-09-12 15:52:04 -0700 | [diff] [blame] | 22 | "AshmemTest.cpp", |
Dan Willemsen | eee8e7f | 2016-06-06 22:31:58 -0700 | [diff] [blame] | 23 | "MemsetTest.cpp", |
| 24 | "PropertiesTest.cpp", |
Greg Hackmann | ed0614c | 2016-08-03 10:41:54 -0700 | [diff] [blame] | 25 | "sched_policy_test.cpp", |
Dan Willemsen | eee8e7f | 2016-06-06 22:31:58 -0700 | [diff] [blame] | 26 | "trace-dev_test.cpp", |
| 27 | ], |
| 28 | }, |
| 29 | |
| 30 | not_windows: { |
Mark Salyzyn | 52bd37e | 2016-11-07 09:39:30 -0800 | [diff] [blame^] | 31 | srcs: [ |
| 32 | "test_str_parms.cpp", |
| 33 | "android_get_control_socket_test.cpp", |
| 34 | "android_get_control_file_test.cpp" |
| 35 | ], |
Dan Willemsen | eee8e7f | 2016-06-06 22:31:58 -0700 | [diff] [blame] | 36 | }, |
| 37 | }, |
| 38 | |
| 39 | multilib: { |
| 40 | lib32: { |
| 41 | suffix: "32", |
| 42 | }, |
| 43 | lib64: { |
| 44 | suffix: "64", |
| 45 | }, |
| 46 | }, |
| 47 | } |
| 48 | |
| 49 | test_libraries = [ |
| 50 | "libcutils", |
| 51 | "liblog", |
| 52 | "libbase", |
| 53 | ] |
| 54 | |
| 55 | cc_test { |
| 56 | name: "libcutils_test", |
| 57 | defaults: ["libcutils_test_default"], |
| 58 | host_supported: true, |
| 59 | shared_libs: test_libraries, |
| 60 | } |
| 61 | |
| 62 | cc_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 | } |