Home | History | Annotate | Download | only in oatdump
      1 //
      2 // Copyright (C) 2011 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 cc_defaults {
     18     name: "oatdump-defaults",
     19     defaults: ["art_defaults"],
     20     host_supported: true,
     21     srcs: ["oatdump.cc"],
     22     target: {
     23         android: {
     24             shared_libs: ["libcutils"],
     25         },
     26     },
     27     include_dirs: ["art/cmdline"],
     28 }
     29 
     30 art_cc_binary {
     31     name: "oatdump",
     32     defaults: ["oatdump-defaults"],
     33     shared_libs: [
     34         "libart",
     35         "libart-compiler",
     36         "libart-disassembler",
     37         "libbase",
     38     ],
     39 }
     40 
     41 art_cc_binary {
     42     name: "oatdumpd",
     43     defaults: [
     44         "art_debug_defaults",
     45         "oatdump-defaults",
     46     ],
     47     shared_libs: [
     48         "libartd",
     49         "libartd-compiler",
     50         "libartd-disassembler",
     51         "libbase",
     52     ],
     53 }
     54 
     55 art_cc_binary {
     56     name: "oatdumps",
     57     device_supported: false,
     58     static_executable: true,
     59     defaults: ["oatdump-defaults"],
     60     target: {
     61         darwin: {
     62             enabled: false,
     63         },
     64     },
     65     ldflags: [
     66         // We need this because GC stress mode makes use of
     67         // _Unwind_GetIP and _Unwind_Backtrace and the symbols are also
     68         // defined in libgcc_eh.a(unwind-dw2.o)
     69         // TODO: Having this is not ideal as it might obscure errors.
     70         // Try to get rid of it.
     71         "-z muldefs",
     72     ],
     73     static_libs: [
     74         "libart",
     75         "libart-compiler",
     76         "libart-disassembler",
     77         "libvixl-arm",
     78         "libvixl-arm64",
     79     ] + art_static_dependencies,
     80 }
     81 
     82 art_cc_binary {
     83     name: "oatdumpds",
     84     device_supported: false,
     85     static_executable: true,
     86     defaults: [
     87         "art_debug_defaults",
     88         "oatdump-defaults",
     89     ],
     90     target: {
     91         darwin: {
     92             enabled: false,
     93         },
     94     },
     95     ldflags: [
     96         // We need this because GC stress mode makes use of
     97         // _Unwind_GetIP and _Unwind_Backtrace and the symbols are also
     98         // defined in libgcc_eh.a(unwind-dw2.o)
     99         // TODO: Having this is not ideal as it might obscure errors.
    100         // Try to get rid of it.
    101         "-z muldefs",
    102     ],
    103     static_libs: [
    104         "libartd",
    105         "libartd-compiler",
    106         "libartd-disassembler",
    107         "libvixld-arm",
    108         "libvixld-arm64",
    109     ] + art_static_dependencies,
    110 }
    111 
    112 art_cc_test {
    113     name: "art_oatdump_tests",
    114     defaults: [
    115         "art_gtest_defaults",
    116     ],
    117     srcs: ["oatdump_test.cc"],
    118 }
    119