config 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. # vim: filetype=yaml sw=2
  2. filename: '[% project %]-[% c("version") %]-[% c("var/build_id") %].tar.gz'
  3. # Remember to update the Cargo vendor archive, when updating
  4. version: 93.1.0
  5. git_hash: ae2bb5ae89f9818230bbc003819fc7b9775aae26
  6. git_url: https://github.com/mozilla/application-services
  7. git_submodule: 1
  8. container:
  9. use_container: 1
  10. var:
  11. # This should be updated when the list of gradle dependencies is changed.
  12. gradle_dependencies_version: 9
  13. gradle_version: 6.7.1
  14. glean_parser: 4.0.0
  15. input_files:
  16. - project: container-image
  17. pkg_type: build
  18. - project: '[% c("var/compiler") %]'
  19. name: '[% c("var/compiler") %]'
  20. pkg_type: build
  21. - project: gradle
  22. name: gradle
  23. pkg_type: build
  24. - project: rust
  25. name: rust
  26. pkg_type: build
  27. - project: uniffi-rs
  28. name: uniffi-rs
  29. pkg_type: build
  30. - project: nss
  31. name: nss-armv7
  32. pkg_type: build
  33. target_prepend:
  34. - android-armv7
  35. - project: nss
  36. name: nss-aarch64
  37. pkg_type: build
  38. target_prepend:
  39. - android-aarch64
  40. - project: nss
  41. name: nss-x86
  42. pkg_type: build
  43. target_prepend:
  44. - android-x86
  45. - project: nss
  46. name: nss-x86_64
  47. pkg_type: build
  48. target_prepend:
  49. - android-x86_64
  50. - project: nss
  51. name: nss-linux-x86_64
  52. pkg_type: build
  53. target_prepend:
  54. - nss-linux-x86_64
  55. - project: sqlcipher
  56. name: sqlcipher-armv7
  57. pkg_type: build
  58. target_prepend:
  59. - android-armv7
  60. - project: sqlcipher
  61. name: sqlcipher-aarch64
  62. pkg_type: build
  63. target_prepend:
  64. - android-aarch64
  65. - project: sqlcipher
  66. name: sqlcipher-x86
  67. pkg_type: build
  68. target_prepend:
  69. - android-x86
  70. - project: sqlcipher
  71. name: sqlcipher-x86_64
  72. pkg_type: build
  73. target_prepend:
  74. - android-x86_64
  75. - project: sqlcipher
  76. name: sqlcipher-linux-x86_64
  77. pkg_type: build
  78. target_prepend:
  79. - sqlcipher-linux-x86_64
  80. - nss-linux-x86_64
  81. - filename: 'gradle-dependencies-[% c("var/gradle_dependencies_version") %]'
  82. name: gradle-dependencies
  83. exec: '[% INCLUDE "fetch-gradle-dependencies" %]'
  84. enable: '[% !c("var/fetch_gradle_dependencies") %]'
  85. - URL: '[% pc("glean", "var/glean_wheels_url/" _ c("var/glean_parser"), { error_if_undef => 1 }) %]'
  86. name: glean-wheels
  87. sha256sum: '[% pc("glean", "var/glean_wheels_sha256sum/" _ c("var/glean_parser"), { error_if_undef => 1 }) %]'
  88. enable: '[% !c("var/fetch_gradle_dependencies") %]'
  89. # Use `make cargo_vendor-application-services` to re-generate the vendor tarball
  90. - name: cargo_vendor
  91. URL: https://people.torproject.org/~pierov/mirrors/sources/application-services-vendor-[% c('version') %].tar.xz
  92. sha256sum: cc426afe8cc3602f223213a93d3c1dffc156793b68b9c8a89f41715068d533fb
  93. - filename: no-git.patch
  94. - filename: mavenLocal.patch
  95. enable: '[% !c("var/fetch_gradle_dependencies") %]'
  96. - filename: gen_gradle_deps_file.sh
  97. enable: '[% c("var/fetch_gradle_dependencies") %]'
  98. # Delete when this patch is included upstream
  99. - filename: bug40485.patch
  100. steps:
  101. list_toolchain_updates:
  102. git_hash: 'v[% c("version") %]'
  103. input_files: []
  104. container:
  105. use_container: 0
  106. var:
  107. get_android_components_version: |
  108. #!/bin/bash
  109. read -d '' p << 'EOF' || true
  110. if (m/^\\s*android_components_version\\s=\\s'([^']*)'/) {
  111. print $1;
  112. exit;
  113. }
  114. EOF
  115. perl -ne "$p" < build.gradle
  116. android_components_version: '[% exec(c("var/get_android_components_version")) %]'
  117. glean_version: '[% pc("android-components", "var/glean_version", { git_hash => "v" _ c("var/android_components_version") }) %]'
  118. input_files:
  119. - name: glean
  120. project: glean
  121. pkg_type: src
  122. get_gradle_dependencies_list:
  123. filename: 'gradle-dependencies-list-[% c("version") %].txt'
  124. get_gradle_dependencies_list: '[% INCLUDE build %]'
  125. var:
  126. fetch_gradle_dependencies: 1
  127. cargo_vendor:
  128. filename: '[% project %]-vendor-[% c("version") %].tar.xz'
  129. input_files:
  130. - project: container-image
  131. pkg_type: build
  132. - project: rust
  133. name: rust
  134. pkg_type: build