Android.bp 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. // Copyright (C) 2018 The Android Open Source Project
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. apex_defaults {
  15. name: "com.android.media-defaults",
  16. java_libs: ["updatable-media"],
  17. multilib: {
  18. first: {
  19. // Extractor process runs only with the primary ABI.
  20. native_shared_libs: [
  21. // Extractor plugins
  22. "libaacextractor",
  23. "libamrextractor",
  24. "libflacextractor",
  25. "libmidiextractor",
  26. "libmkvextractor",
  27. "libmp3extractor",
  28. "libmp4extractor",
  29. "libmpeg2extractor",
  30. "liboggextractor",
  31. "libwavextractor",
  32. ],
  33. },
  34. },
  35. prebuilts: [
  36. "mediaextractor.policy",
  37. ],
  38. key: "com.android.media.key",
  39. certificate: ":com.android.media.certificate",
  40. // Use a custom AndroidManifest.xml used for API targeting.
  41. androidManifest: ":com.android.media-androidManifest",
  42. }
  43. apex {
  44. name: "com.android.media",
  45. manifest: "manifest.json",
  46. defaults: ["com.android.media-defaults"],
  47. }
  48. filegroup {
  49. name: "com.android.media-androidManifest",
  50. srcs: ["AndroidManifest-media.xml"],
  51. }
  52. filegroup {
  53. name: "com.android.media.swcodec-androidManifest",
  54. srcs: ["AndroidManifest-swcodec.xml"],
  55. }
  56. apex_defaults {
  57. name: "com.android.media.swcodec-defaults",
  58. binaries: [
  59. "mediaswcodec",
  60. ],
  61. prebuilts: [
  62. "com.android.media.swcodec-mediaswcodec.rc",
  63. "com.android.media.swcodec-ld.config.txt",
  64. "mediaswcodec.policy",
  65. "mediaswcodec.xml",
  66. ],
  67. use_vendor: true,
  68. key: "com.android.media.swcodec.key",
  69. certificate: ":com.android.media.swcodec.certificate",
  70. // Use a custom AndroidManifest.xml used for API targeting.
  71. androidManifest: ":com.android.media.swcodec-androidManifest",
  72. }
  73. prebuilt_etc {
  74. name: "com.android.media.swcodec-mediaswcodec.rc",
  75. src: "mediaswcodec.rc",
  76. filename: "init.rc",
  77. installable: false,
  78. }
  79. prebuilt_etc {
  80. name: "com.android.media.swcodec-ld.config.txt",
  81. src: "ld.config.txt",
  82. filename: "ld.config.txt",
  83. installable: false,
  84. }
  85. apex {
  86. name: "com.android.media.swcodec",
  87. manifest: "manifest_codec.json",
  88. defaults: ["com.android.media.swcodec-defaults"],
  89. }
  90. apex_key {
  91. name: "com.android.media.key",
  92. public_key: "com.android.media.avbpubkey",
  93. private_key: "com.android.media.pem",
  94. }
  95. apex_key {
  96. name: "com.android.media.swcodec.key",
  97. public_key: "com.android.media.swcodec.avbpubkey",
  98. private_key: "com.android.media.swcodec.pem",
  99. }
  100. android_app_certificate {
  101. name: "com.android.media.certificate",
  102. certificate: "com.android.media",
  103. }
  104. android_app_certificate {
  105. name: "com.android.media.swcodec.certificate",
  106. certificate: "com.android.media.swcodec",
  107. }