Use custom module for versioned font files

The prebuilt_versioned_font module includes font files based on build
flags. With this custom module, we can refer the build flags directly
instead of propagating buildflags from mk file to bp file with randomly
generated namespaces.

This module has two mandatory properties, versionFlag and
defaultVersion.
The versionFlag is a build flag used for versioning.
The defaultVersion is a default version string used for environment that
does not have build flags, e.g. SDK builds.

For example,

prebuilt_versioned_font {
  name: "NotoSans.ttf",
  versionFlag: "RELEASE_PACKAGE_NOTO_SANS",
  defaultVersion: "1.000",
}

then, if RELEASE_PACKAGE_NOTO_SANS is 2.000, the font file located in

{root}/font/2.000/NotoSans.ttf

is loaded. The directory name and file name can be configured with
optional fontFile property and fontFile property.

Bug: N/A
Test: m and manually confirmed the versioned font files are included.
Merged-In: I2d09de745cb28f50196ffe8857ca9578f2eb6ee1
Change-Id: I2d09de745cb28f50196ffe8857ca9578f2eb6ee1
5 files changed
tree: 15f1279e87c0d0e797a85e2051d9367d31870372
  1. emoji-compat/
  2. emoji-compat-flatbuffers/
  3. notonaskharabic/
  4. notonaskharabicui/
  5. notosansadlam/
  6. notosansanatolianhieroglyphs/
  7. notosansarmenian/
  8. notosansavestan/
  9. notosansbalinese/
  10. notosansbamum/
  11. notosansbassavah/
  12. notosansbatak/
  13. notosansbengali/
  14. notosansbengaliui/
  15. notosansbhaiksuki/
  16. notosansbrahmi/
  17. notosansbuginese/
  18. notosansbuhid/
  19. notosanscanadianaboriginal/
  20. notosanscarian/
  21. notosanschakma/
  22. notosanscham/
  23. notosanscherokee/
  24. notosanscjk/
  25. notosanscoptic/
  26. notosanscuneiform/
  27. notosanscypriot/
  28. notosansdeseret/
  29. notosansdevanagari/
  30. notosansdevanagariui/
  31. notosansegyptianhieroglyphs/
  32. notosanselbasan/
  33. notosansethiopic/
  34. notosansgeorgian/
  35. notosansglagolitic/
  36. notosansgothic/
  37. notosansgrantha/
  38. notosansgujarati/
  39. notosansgujaratiui/
  40. notosansgunjalagondi/
  41. notosansgurmukhi/
  42. notosansgurmukhiui/
  43. notosanshanifirohingya/
  44. notosanshanunoo/
  45. notosanshatran/
  46. notosanshebrew/
  47. notosansimperialaramaic/
  48. notosansinscriptionalpahlavi/
  49. notosansinscriptionalparthian/
  50. notosansjavanese/
  51. notosanskaithi/
  52. notosanskannada/
  53. notosanskannadaui/
  54. notosanskayahli/
  55. notosanskharoshthi/
  56. notosanskhmer/
  57. notosanskhmerui/
  58. notosanskhojki/
  59. notosanslao/
  60. notosanslaoui/
  61. notosanslepcha/
  62. notosanslimbu/
  63. notosanslineara/
  64. notosanslinearb/
  65. notosanslisu/
  66. notosanslycian/
  67. notosanslydian/
  68. notosansmalayalam/
  69. notosansmalayalamui/
  70. notosansmandaic/
  71. notosansmanichaean/
  72. notosansmarchen/
  73. notosansmasaramgondi/
  74. notosansmedefaidrin/
  75. notosansmeeteimayek/
  76. notosansmeroitic/
  77. notosansmiao/
  78. notosansmodi/
  79. notosansmongolian/
  80. notosansmro/
  81. notosansmultani/
  82. notosansmyanmar/
  83. notosansmyanmarui/
  84. notosansnabataean/
  85. notosansnewa/
  86. notosansnewtailue/
  87. notosansnko_todelist/
  88. notosansogham/
  89. notosansolchiki/
  90. notosansolditalic/
  91. notosansoldnortharabian/
  92. notosansoldpermic/
  93. notosansoldpersian/
  94. notosansoldsoutharabian/
  95. notosansoldturkic/
  96. notosansoriya/
  97. notosansoriyaui/
  98. notosansosage/
  99. notosansosmanya/
  100. notosanspahawhhmong/
  101. notosanspalmyrene/
  102. notosanspaucinhau/
  103. notosansphagspa/
  104. notosansphoenician/
  105. notosansrejang/
  106. notosansrunic/
  107. notosanssamaritan/
  108. notosanssaurashtra/
  109. notosanssharada/
  110. notosansshavian/
  111. notosanssinhala/
  112. notosanssinhalaui/
  113. notosanssorasompeng/
  114. notosanssoyombo/
  115. notosanssundanese/
  116. notosanssylotinagri/
  117. notosanssymbols/
  118. notosanssyriac/
  119. notosanstagalog/
  120. notosanstagbanwa/
  121. notosanstaile/
  122. notosanstaitham/
  123. notosanstaiviet/
  124. notosanstakri/
  125. notosanstamil/
  126. notosanstamilui/
  127. notosanstelugu/
  128. notosansteluguui/
  129. notosansthaana/
  130. notosansthai/
  131. notosansthaiui/
  132. notosanstifinagh/
  133. notosansugaritic/
  134. notosansvai/
  135. notosanswancho/
  136. notosanswarangciti/
  137. notosansyi/
  138. notoserif/
  139. notoserifahom/
  140. notoserifarmenian/
  141. notoserifbengali/
  142. notoserifcjk/
  143. notoserifdevanagari/
  144. notoserifdogra/
  145. notoserifethiopic/
  146. notoserifgeorgian/
  147. notoserifgujarati/
  148. notoserifgurmukhi/
  149. notoserifhebrew/
  150. notoserifhentaigana/
  151. notoserifkannada/
  152. notoserifkhmer/
  153. notoseriflao/
  154. notoserifmalayalam/
  155. notoserifmyanmar/
  156. notoserifnyiakengpuachuehmong/
  157. notoserifsinhala/
  158. notoseriftamil/
  159. notoseriftelugu/
  160. notoserifthai/
  161. notoseriftibetan/
  162. notoserifyezidi/
  163. scripts/
  164. .gitignore
  165. Android.bp
  166. CleanSpec.mk
  167. fonts.mk
  168. METADATA
  169. noto-fonts.go
  170. OWNERS
  171. README.android
  172. TEST_MAPPING