config 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. # vim: filetype=yaml sw=2
  2. version: '[% c("abbrev") %]'
  3. filename: 'firefox-[% c("version") %]-[% c("var/osname") %]-[% c("var/build_id") %]'
  4. git_hash: 'tor-browser-[% c("var/firefox_version") %]-[% c("var/torbrowser_branch") %]-1-build2'
  5. tag_gpg_id: 1
  6. git_url: https://git.torproject.org/tor-browser.git
  7. git_submodule: 1
  8. gpg_keyring: torbutton.gpg
  9. var:
  10. firefox_platform_version: 68.5.0
  11. firefox_version: '[% c("var/firefox_platform_version") %]esr'
  12. torbrowser_branch: 9.0
  13. torbrowser_update_channel: alpha
  14. branding_directory: '[% IF c("var/android") %]mobile/android[% ELSE %]browser[% END %]/branding/alpha'
  15. copyright_year: '[% exec("git show -s --format=%ci").remove("-.*") %]'
  16. deps:
  17. - build-essential
  18. - unzip
  19. - zip
  20. - autoconf2.13
  21. - yasm
  22. # We are building our own version of Python 3.6, which is required
  23. # for the build. However mach still requires Python 2.7, so we
  24. # install this version using the package.
  25. - python
  26. - pkg-config
  27. container:
  28. use_container: 1
  29. # this should be updated when the list of gradle dependencies is changed
  30. gradle_dependencies_version: 6
  31. # used by projects/firefox-locale-bundle
  32. l10n-changesets.json: '[% exec("cat mobile/locales/l10n-changesets.json") %]'
  33. steps:
  34. src-tarballs:
  35. filename: 'src-[% project %]-[% c("version") %].tar.xz'
  36. version: '[% c("git_hash") %]'
  37. input_files: []
  38. var:
  39. container:
  40. use_container: 0
  41. targets:
  42. nightly:
  43. version: '[% c("abbrev") %]'
  44. targets:
  45. release:
  46. var:
  47. torbrowser_update_channel: release
  48. branding_directory: '[% IF c("var/android") %]mobile/android[% ELSE %]browser[% END %]/branding/official'
  49. nightly:
  50. git_hash: 'tor-browser-[% c("var/firefox_version") %]-[% c("var/torbrowser_branch") %]-3'
  51. tag_gpg_id: 0
  52. var:
  53. torbrowser_update_channel: default
  54. branding_directory: '[% IF c("var/android") %]mobile/android[% ELSE %]browser[% END %]/branding/nightly'
  55. android:
  56. var:
  57. arch_deps:
  58. - openjdk-8-jdk
  59. linux:
  60. var:
  61. post_pkginst: |
  62. # Firefox ESR68 needs Yasm >= 1.2.0 which Debian Wheezy ships in backports.
  63. echo 'deb http://archive.debian.org/debian/ wheezy-backports main' >> /etc/apt/sources.list
  64. export DEBIAN_FRONTEND=noninteractive
  65. apt-get update
  66. apt-get install -t wheezy-backports -y yasm
  67. linux-x86_64:
  68. var:
  69. martools_filename: mar-tools-linux64.zip
  70. arch_deps:
  71. - libgtk2.0-dev
  72. - libgtk-3-dev
  73. - libdbus-glib-1-dev
  74. - libxt-dev
  75. - hardening-wrapper
  76. # To pass configure since ESR 31.
  77. - libpulse-dev
  78. # To pass configure since ESR 52
  79. - libx11-xcb-dev
  80. linux-i686:
  81. var:
  82. martools_filename: mar-tools-linux32.zip
  83. sort_deps: 0
  84. arch_deps:
  85. - libgtk2.0-dev:i386
  86. - libgtk-3-dev:i386
  87. - libdbus-glib-1-dev:i386
  88. - libxt-dev:i386
  89. - hardening-wrapper
  90. # To pass configure since ESR 31.
  91. - libpulse-dev:i386
  92. # To pass configure since ESR 52
  93. - libx11-xcb-dev:i386
  94. linux-arm64:
  95. var:
  96. arch_deps:
  97. - libgtk2.0-dev
  98. - libgtk-3-dev
  99. - libdbus-glib-1-dev
  100. - libxt-dev
  101. #- hardening-wrapper
  102. # To pass configure since ESR 31.
  103. - libpulse-dev
  104. # To pass configure since ESR 52
  105. - libx11-xcb-dev
  106. # We built GCC but not the libmpc2, thus we need to install it
  107. #- libmpc3
  108. martools_filename: mar-tools-linux-arm64.zip
  109. linux-armhf:
  110. var:
  111. martools_filename: mar-tools-linux-armhf.zip
  112. arch_deps:
  113. - libgtk2.0-dev
  114. - libgtk-3-dev
  115. - libdbus-glib-1-dev
  116. - libxt-dev
  117. - hardening-wrapper
  118. # To pass configure since ESR 31.
  119. - libpulse-dev
  120. # To pass configure since ESR 52
  121. - libx11-xcb-dev
  122. osx-x86_64:
  123. var:
  124. martools_filename: mar-tools-mac64.zip
  125. arch_deps:
  126. - rsync
  127. windows:
  128. var:
  129. arch_deps:
  130. - wine
  131. pre_pkginst: |
  132. [% IF c("var/windows-i686") -%]
  133. # We need this to install wine32
  134. dpkg --add-architecture i386
  135. [% END -%]
  136. echo 'deb http://ftp.debian.org/debian stretch-backports main' >> /etc/apt/sources.list
  137. post_pkginst: |
  138. # We need to have at least 3.0.3 which Mozilla is using in the
  139. # mingw-w64/clang build process
  140. apt-get -y -t stretch-backports install wine[% IF c("var/windows-i686") %]32[% END %]
  141. compiler: mingw-w64-clang
  142. windows-i686:
  143. var:
  144. martools_filename: mar-tools-win32.zip
  145. windows-x86_64:
  146. var:
  147. martools_filename: mar-tools-win64.zip
  148. input_files:
  149. - project: container-image
  150. - name: '[% c("var/compiler") %]'
  151. project: '[% c("var/compiler") %]'
  152. - filename: get-moz-build-date
  153. - filename: 'mozconfig-[% c("var/osname") %]'
  154. name: mozconfig
  155. - project: binutils
  156. name: binutils
  157. enable: '[% c("var/linux") || c("var/android") %]'
  158. - filename: fix-info-plist.py
  159. enable: '[% c("var/osx") %]'
  160. - filename: nsis-uninstall.patch
  161. enable: '[% c("var/windows") %]'
  162. - filename: 1526653.patch
  163. enable: '[% c("var/linux-armhf") %]'
  164. - project: rust
  165. name: rust
  166. - project: cbindgen
  167. name: cbindgen
  168. - project: node
  169. name: node
  170. - project: nasm
  171. name: nasm
  172. - project: python
  173. name: python
  174. - project: clang
  175. name: clang
  176. - project: fxc2
  177. name: fxc2
  178. enable: '[% c("var/windows") %]'
  179. - name: mingw-w64
  180. project: mingw-w64
  181. enable: '[% c("var/windows") %]'
  182. - filename: abicheck.cc
  183. enable: '[% c("var/linux") %]'
  184. - filename: start-firefox
  185. enable: '[% c("var/linux") %]'
  186. - project: tor-launcher
  187. name: tor-launcher
  188. enable: '[% ! c("var/android") %]'
  189. - filename: 'gradle-dependencies-[% c("var/gradle_dependencies_version") %]'
  190. name: gradle-dependencies
  191. exec: '[% INCLUDE "fetch-gradle-dependencies" %]'
  192. enable: '[% c("var/android") %]'
  193. - project: tor-android-service
  194. name: tor-android-service
  195. enable: '[% c("var/android") %]'
  196. - project: tor-onion-proxy-library
  197. name: topl
  198. enable: '[% c("var/android") %]'
  199. - project: firefox-locale-bundle
  200. name: firefox-locale-bundle
  201. enable: '[% c("var/android") %]'
  202. - project: tba-translation
  203. name: tba-translation
  204. enable: '[% c("var/android") %]'