1package { 2 default_applicable_licenses: ["Android-Apache-2.0"], 3} 4 5cc_defaults { 6 name: "slicer_defaults", 7 srcs: [ 8 "bytecode_encoder.cc", 9 "code_ir.cc", 10 "common.cc", 11 "control_flow_graph.cc", 12 "debuginfo_encoder.cc", 13 "dex_bytecode.cc", 14 "dex_format.cc", 15 "dex_ir.cc", 16 "dex_ir_builder.cc", 17 "dex_utf8.cc", 18 "instrumentation.cc", 19 "reader.cc", 20 "tryblocks_encoder.cc", 21 "writer.cc", 22 ], 23 export_include_dirs: ["export"], 24 device_supported: true, 25 shared_libs: ["libz"], 26 cflags: [ 27 "-Wall", 28 "-Werror", 29 // TODO Remove these flags: b/65298177 30 "-Wno-sign-compare", 31 "-Wno-unused-parameter", 32 "-Wno-shift-count-overflow", 33 "-Wno-missing-braces", 34 ], 35} 36 37cc_library_static { 38 name: "slicer_ndk", 39 defaults: [ 40 "slicer_defaults", 41 ], 42 host_supported: false, 43 sdk_version: "current", 44 stl: "libc++_static", 45 rtti: true, 46} 47 48cc_library { 49 name: "slicer", 50 defaults: [ 51 "slicer_defaults", 52 ], 53 host_supported: true, 54 rtti: true, 55} 56 57cc_library_static { 58 name: "slicer_ndk_no_rtti", 59 defaults: [ 60 "slicer_defaults", 61 ], 62 host_supported: false, 63 sdk_version: "current", 64 stl: "libc++_static", 65} 66 67cc_library { 68 name: "slicer_no_rtti", 69 defaults: [ 70 "slicer_defaults", 71 ], 72 host_supported: true, 73} 74