blob: 7b2ca9a652427fb44701517964e549fe4bdcc25e [file] [log] [blame]
cc_library {
name: "liblockagent",
host_supported: false,
srcs: ["agent.cpp"],
static_libs: [
"libbase_ndk",
"slicer_ndk_no_rtti",
],
shared_libs: [
"libz", // for slicer (using adler32).
"liblog",
],
sdk_version: "current",
stl: "c++_static",
header_libs: [
// Use ScopedUtfChars.
"libnativehelper_header_only",
"libopenjdkjvmti_headers",
],
compile_multilib: "both",
}
cc_binary_host {
name: "lockagenttest",
srcs: ["agent.cpp"],
static_libs: [
"libbase",
"liblog",
"libz",
"slicer",
],
header_libs: [
// Use ScopedUtfChars.
"libnativehelper_header_only",
"libopenjdkjvmti_headers",
],
}
java_library {
name: "lockagent",
srcs: ["java/**/*.java"],
dex_preopt: {
enabled: false,
},
optimize: {
enabled: false,
},
installable: true,
}
cc_binary {
name: "lockagent_crasher",
srcs: ["crasher.cpp"],
static_libs: ["libbase_ndk"],
shared_libs: ["liblog"],
sdk_version: "current",
stl: "c++_static",
compile_multilib: "first",
}
sh_binary {
name: "start_with_lockagent",
src: "start_with_lockagent.sh",
required: [
"liblockagent",
"lockagent",
"lockagent_crasher",
],
}