Android.bp 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. //
  2. // Copyright (C) 2008 The Android Open Source Project
  3. //
  4. // Licensed under the Apache License, Version 2.0 (the "License");
  5. // you may not use this file except in compliance with the License.
  6. // You may obtain a copy of the License at
  7. //
  8. // http://www.apache.org/licenses/LICENSE-2.0
  9. //
  10. // Unless required by applicable law or agreed to in writing, software
  11. // distributed under the License is distributed on an "AS IS" BASIS,
  12. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. // See the License for the specific language governing permissions and
  14. // limitations under the License.
  15. //
  16. // Build the android.test.runner library
  17. // =====================================
  18. java_sdk_library {
  19. name: "android.test.runner",
  20. srcs: ["src/**/*.java"],
  21. errorprone: {
  22. javacflags: ["-Xep:DepAnn:ERROR"],
  23. },
  24. libs: [
  25. "android.test.base",
  26. "android.test.mock",
  27. ],
  28. stub_only_libs: [
  29. "android.test.base",
  30. "android.test.mock",
  31. ],
  32. api_packages: [
  33. "android.test",
  34. "android.test.suitebuilder",
  35. "junit.runner",
  36. "junit.textui",
  37. ],
  38. compile_dex: true
  39. }
  40. // Build the android.test.runner-minus-junit library
  41. // =================================================
  42. // This is only intended for inclusion in the android.test.legacy static
  43. // library and must not be used elsewhere.
  44. java_library {
  45. name: "android.test.runner-minus-junit",
  46. srcs: ["src/android/**/*.java"],
  47. sdk_version: "current",
  48. libs: [
  49. "android.test.base_static",
  50. "android.test.mock",
  51. "junit",
  52. ],
  53. }
  54. // Build the repackaged.android.test.runner library
  55. // ================================================
  56. java_library_static {
  57. name: "repackaged.android.test.runner",
  58. srcs: ["src/**/*.java"],
  59. exclude_srcs: [
  60. "src/android/test/ActivityUnitTestCase.java",
  61. "src/android/test/ApplicationTestCase.java",
  62. "src/android/test/IsolatedContext.java",
  63. "src/android/test/ProviderTestCase.java",
  64. "src/android/test/ProviderTestCase2.java",
  65. "src/android/test/RenamingDelegatingContext.java",
  66. "src/android/test/ServiceTestCase.java",
  67. ],
  68. sdk_version: "current",
  69. libs: [
  70. "android.test.base_static",
  71. ],
  72. jarjar_rules: "jarjar-rules.txt",
  73. // Pin java_version until jarjar is certified to support later versions. http://b/72703434
  74. java_version: "1.8",
  75. }