config 5.3 KB

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