| 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 | 0b034d9 | 2016-10-27 08:04:48 -0700 | [diff] [blame] | 17 | srcs: ["sockets_test.cpp", "files_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: { | 
|  | 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 |  | 
|  | 45 | test_libraries = [ | 
|  | 46 | "libcutils", | 
|  | 47 | "liblog", | 
|  | 48 | "libbase", | 
|  | 49 | ] | 
|  | 50 |  | 
|  | 51 | cc_test { | 
|  | 52 | name: "libcutils_test", | 
|  | 53 | defaults: ["libcutils_test_default"], | 
|  | 54 | host_supported: true, | 
|  | 55 | shared_libs: test_libraries, | 
|  | 56 | } | 
|  | 57 |  | 
|  | 58 | cc_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 | } |