BUILD.gn 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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_group("hamcrest_java") {
  6. testonly = true
  7. deps = [
  8. ":hamcrest_core_java",
  9. ":hamcrest_library_java",
  10. ]
  11. }
  12. java_prebuilt("hamcrest_core_java") {
  13. supports_android = true
  14. testonly = true
  15. jar_path = "lib/hamcrest-core.jar"
  16. proguard_configs = [ "//third_party/hamcrest/proguard.flags" ]
  17. }
  18. java_prebuilt("hamcrest_integration_java") {
  19. # Need this to avoid error because jar_excluded_patterns do not exist.
  20. enable_bytecode_checks = false
  21. supports_android = true
  22. testonly = true
  23. jar_path = "lib/hamcrest-integration.jar"
  24. proguard_configs = [ "//third_party/hamcrest/proguard.flags" ]
  25. deps = [ ":hamcrest_library_java" ]
  26. jar_excluded_patterns = [
  27. "org/hamcrest/integration/JMock1Adapter*",
  28. "org/hamcrest/integration/EasyMock2Adapter*",
  29. ]
  30. }
  31. java_prebuilt("hamcrest_library_java") {
  32. supports_android = true
  33. testonly = true
  34. jar_path = "lib/hamcrest-library.jar"
  35. proguard_configs = [ "//third_party/hamcrest/proguard.flags" ]
  36. deps = [ ":hamcrest_core_java" ]
  37. }