BUILD.gn 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # Copyright 2016 The Chromium Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. import("//build/config/android/rules.gni")
  5. java_prebuilt("byte_buddy_java") {
  6. testonly = true
  7. supports_android = true
  8. enable_bytecode_checks = false
  9. jar_path = "lib/byte-buddy.jar"
  10. }
  11. java_prebuilt("byte_buddy_agent_java") {
  12. testonly = true
  13. supports_android = true
  14. enable_bytecode_checks = false
  15. jar_path = "lib/byte-buddy-agent.jar"
  16. }
  17. # The current version of //third_party/byte_buddy relies on an older
  18. # version of dx.
  19. java_prebuilt("dx_25_0_2_java") {
  20. testonly = true
  21. supports_android = true
  22. requires_android = true
  23. no_build_hooks = true
  24. jar_path = "android_sdk_build_tools_25_0_2/build-tools/25.0.2/lib/dx.jar"
  25. }
  26. android_java_prebuilt("byte_buddy_android_java") {
  27. testonly = true
  28. enable_bytecode_checks = false
  29. deps = [ ":dx_25_0_2_java" ]
  30. proguard_configs = [ "//third_party/byte_buddy/proguard.flags" ]
  31. jar_path = "lib/byte-buddy-android.jar"
  32. }