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", |
| 24 | "trace-dev_test.cpp", |
| 25 | ], |
| 26 | }, |
| 27 | |
| 28 | not_windows: { |
| 29 | srcs: ["test_str_parms.cpp"], |
| 30 | }, |
| 31 | }, |
| 32 | |
| 33 | multilib: { |
| 34 | lib32: { |
| 35 | suffix: "32", |
| 36 | }, |
| 37 | lib64: { |
| 38 | suffix: "64", |
| 39 | }, |
| 40 | }, |
| 41 | } |
| 42 | |
| 43 | test_libraries = [ |
| 44 | "libcutils", |
| 45 | "liblog", |
| 46 | "libbase", |
| 47 | ] |
| 48 | |
| 49 | cc_test { |
| 50 | name: "libcutils_test", |
| 51 | defaults: ["libcutils_test_default"], |
| 52 | host_supported: true, |
| 53 | shared_libs: test_libraries, |
| 54 | } |
| 55 | |
| 56 | cc_test { |
| 57 | name: "libcutils_test_static", |
| 58 | defaults: ["libcutils_test_default"], |
| 59 | static_libs: ["libc"] + test_libraries, |
| 60 | stl: "libc++_static", |
| 61 | |
| 62 | target: { |
| 63 | android: { |
| 64 | static_executable: true, |
| 65 | }, |
| 66 | windows: { |
| 67 | host_ldlibs: ["-lws2_32"], |
| 68 | |
| 69 | enabled: true, |
| 70 | }, |
| 71 | }, |
| 72 | } |