blob: 39d1b1c2defdb680c858b2bbbe13ca9ded011617 [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: [
"asm-9.2",
"asm-commons-9.2",
"asm-tree-9.2",
"asm-analysis-9.2",
"guava-21.0",
],
}
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",
],
}