Colin Cross | fe6064a | 2016-08-30 13:49:26 -0700 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2013 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_binary { |
| 18 | name: "dalvikvm", |
| 19 | host_supported: true, |
| 20 | compile_multilib: "both", |
| 21 | |
| 22 | srcs: ["dalvikvm.cc"], |
| 23 | cflags: [ |
| 24 | "-Wall", |
| 25 | "-Werror", |
| 26 | "-Wextra", |
| 27 | ], |
| 28 | include_dirs: ["art/runtime"], |
| 29 | shared_libs: [ |
| 30 | "libnativehelper", |
| 31 | ], |
| 32 | whole_static_libs: ["libsigchain"], |
| 33 | target: { |
| 34 | host: { |
| 35 | host_ldlibs: [ |
| 36 | "-ldl", |
| 37 | "-lpthread", |
| 38 | ], |
| 39 | }, |
| 40 | android: { |
| 41 | shared_libs: [ |
| 42 | "libdl", |
| 43 | "liblog", |
| 44 | ], |
| 45 | ldflags: ["-Wl,--export-dynamic"], |
| 46 | }, |
| 47 | linux: { |
| 48 | ldflags: ["-Wl,--export-dynamic"], |
| 49 | }, |
| 50 | }, |
| 51 | |
| 52 | multilib: { |
| 53 | lib32: { |
| 54 | suffix: "32", |
| 55 | }, |
| 56 | lib64: { |
| 57 | suffix: "64", |
| 58 | }, |
| 59 | }, |
| 60 | |
| 61 | // Create symlink for the primary version target. |
| 62 | symlink_preferred_arch: true, |
| 63 | } |