Uses libnativehelper_header_only library headers instead. Needed as libnativehelper is part of the runtime module and so will not be present in an unbundled build, instead its build targets will be provided as prebuilts. Bug: 134379140 Test: m checkbuild Change-Id: I8becbda3a202ddaed52eaf861ac94fe4b08807c2
69 lines
1.3 KiB
Plaintext
69 lines
1.3 KiB
Plaintext
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",
|
|
"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",
|
|
],
|
|
}
|