blob: d627fb99d8824677623f8b4179671a0acdccddd5 [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"],
}
java_binary_host {
name: "traceinjection",
manifest: "manifest.txt",
srcs: ["src/**/*.java"],
static_libs: [
"ow2-asm",
"ow2-asm-commons",
"ow2-asm-tree",
"ow2-asm-analysis",
"guava",
],
}
java_library_host {
name: "TraceInjectionTests-Uninjected",
srcs: ["test/**/*.java"],
static_libs: [
"junit",
],
}
java_genrule_host {
name: "TraceInjectionTests-Injected",
srcs: [":TraceInjectionTests-Uninjected"],
tools: ["traceinjection"],
cmd: "$(location traceinjection) " +
" --annotation \"com/android/traceinjection/Trace\"" +
" --start \"com/android/traceinjection/InjectionTests.traceStart\"" +
" --end \"com/android/traceinjection/InjectionTests.traceEnd\"" +
" -o $(out) " +
" -i $(in)",
out: ["TraceInjectionTests-Injected.jar"],
}
java_test_host {
name: "TraceInjectionTests",
static_libs: [
"TraceInjectionTests-Injected",
],
}