Colin Cross | 6b22aa5 | 2016-09-12 14:35:39 -0700 | [diff] [blame^] | 1 | // |
| 2 | // Copyright (C) 2016 The Android Open Source Project |
| 3 | // |
| 4 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | // you may not use this file except in compliance with the License. |
| 6 | // You may obtain a copy of the License at |
| 7 | // |
| 8 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | // |
| 10 | // Unless required by applicable law or agreed to in writing, software |
| 11 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | // See the License for the specific language governing permissions and |
| 14 | // limitations under the License. |
| 15 | // |
| 16 | |
| 17 | art_cc_defaults { |
| 18 | name: "libart-gtest-defaults", |
| 19 | host_supported: true, |
| 20 | defaults: [ |
| 21 | "art_defaults", |
| 22 | "art_debug_defaults", |
| 23 | ], |
| 24 | shared_libs: [ |
| 25 | "libartd", |
| 26 | "libartd-compiler", |
| 27 | ], |
| 28 | static_libs: [ |
| 29 | "libgtest", |
| 30 | ], |
| 31 | target: { |
| 32 | android32: { |
| 33 | cflags: ["-DART_TARGET_NATIVETEST_DIR=/data/nativetest32/art"], |
| 34 | }, |
| 35 | android64: { |
| 36 | cflags: ["-DART_TARGET_NATIVETEST_DIR=/data/nativetest64/art"], |
| 37 | }, |
| 38 | android: { |
| 39 | cflags: [ |
| 40 | // gtest issue |
| 41 | "-Wno-used-but-marked-unused", |
| 42 | "-Wno-deprecated", |
| 43 | "-Wno-missing-noreturn", |
| 44 | ], |
| 45 | }, |
| 46 | linux: { |
| 47 | cflags: [ |
| 48 | // gtest issue |
| 49 | "-Wno-used-but-marked-unused", |
| 50 | "-Wno-deprecated", |
| 51 | "-Wno-missing-noreturn", |
| 52 | ], |
| 53 | }, |
| 54 | }, |
| 55 | } |
| 56 | |
| 57 | art_cc_library { |
| 58 | name: "libart-gtest", |
| 59 | host_supported: true, |
| 60 | whole_static_libs: [ |
| 61 | "libart-compiler-gtest", |
| 62 | "libart-runtime-gtest", |
| 63 | "libgtest", |
| 64 | ], |
| 65 | shared_libs: [ |
| 66 | "libartd", |
| 67 | "libartd-compiler", |
| 68 | ], |
| 69 | target: { |
| 70 | android: { |
| 71 | shared_libs: [ |
| 72 | "libdl", |
| 73 | ], |
| 74 | }, |
| 75 | host: { |
| 76 | host_ldlibs: [ |
| 77 | "-ldl", |
| 78 | "-lpthread", |
| 79 | ], |
| 80 | }, |
| 81 | }, |
| 82 | } |