1package { 2 // See: http://go/android-license-faq 3 // A large-scale-change added 'default_applicable_licenses' to import 4 // all of the 'license_kinds' from "frameworks_base_license" 5 // to get the below license kinds: 6 // SPDX-license-identifier-Apache-2.0 7 default_applicable_licenses: ["frameworks_base_license"], 8} 9 10java_binary_host { 11 name: "traceinjection", 12 manifest: "manifest.txt", 13 srcs: ["src/**/*.java"], 14 static_libs: [ 15 "ow2-asm", 16 "ow2-asm-commons", 17 "ow2-asm-tree", 18 "ow2-asm-analysis", 19 "guava", 20 ], 21} 22 23java_library_host { 24 name: "TraceInjectionTests-Uninjected", 25 srcs: ["test/**/*.java"], 26 static_libs: [ 27 "junit", 28 ], 29} 30 31java_genrule_host { 32 name: "TraceInjectionTests-Injected", 33 srcs: [":TraceInjectionTests-Uninjected"], 34 tools: ["traceinjection"], 35 cmd: "$(location traceinjection) " + 36 " --annotation \"com/android/traceinjection/Trace\"" + 37 " --start \"com/android/traceinjection/InjectionTests.traceStart\"" + 38 " --end \"com/android/traceinjection/InjectionTests.traceEnd\"" + 39 " -o $(out) " + 40 " -i $(in)", 41 out: ["TraceInjectionTests-Injected.jar"], 42} 43 44java_test_host { 45 name: "TraceInjectionTests", 46 static_libs: [ 47 "TraceInjectionTests-Injected", 48 ], 49} 50