blob: cabe1398903e31c5973feb2cd8f4257fa14b5fbd [file] [log] [blame]
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "frameworks_base_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["frameworks_base_license"],
}
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",
],
}