config 4.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. # vim: filetype=yaml sw=2
  2. filename: '[% project %]-[% c("version") %]-[% c("var/build_id") %].tar.gz'
  3. version: '[% c("var/version_28") %]+[% c("var/version_29") %]+[% c("var/version_30") %]+[% c("var/version_31") %]'
  4. var:
  5. version_31: 31.0.0
  6. version_30: 30.0.2
  7. version_29: 29.0.2
  8. version_28: 28.0.3
  9. container:
  10. use_container: 1
  11. deps:
  12. - unzip
  13. - python3
  14. setup: |
  15. mkdir -p /var/tmp/dist
  16. tar -C /var/tmp/dist -xf $rootdir/[% c("compiler_tarfile") %]
  17. export ANDROID_HOME=/var/tmp/dist/[% project %]/android-sdk-linux
  18. # By default we use the old NDK which is the one GeckoView is using.
  19. # However, we can overwrite that per project if needed (e.g.
  20. # application-services is currently on a newer NDK).
  21. export ANDROID_NDK_HOME=$ANDROID_HOME/ndk/android-ndk-r[% c("var/android_ndk_version") %][% c("var/android_ndk_revision") %]
  22. export ANDROID_NDK_ROOT=$ANDROID_NDK_HOME
  23. export ANDROID_NDK_API_VERSION=[% c("var/android_ndk_version") %][% c('var/android_ndk_revision') %]
  24. export NDK_HOST_TAG=linux-x86_64
  25. export GRADLE_HOME=/var/tmp/dist/[% project %]/gradle
  26. export GRADLE_USER_HOME=$GRADLE_HOME
  27. export PATH=$PATH:$ANDROID_HOME/build-tools/[% c("var/version_31") %]:$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin:$GRADLE_HOME/gradle/bin
  28. mkdir -p "$GRADLE_HOME"
  29. google_repo: https://dl.google.com/android/repository
  30. android_api_level: 31
  31. android_platform_revision: 01
  32. android_release_dir: android-12
  33. android_api_level_30: 30
  34. android_platform_revision_30: 03
  35. android_release_dir_30: android-11
  36. android_api_level_29: 29
  37. android_platform_revision_29: 04
  38. android_release_dir_29: android-10
  39. android_release_dir_28: android-9
  40. android_ndk_version: 21
  41. android_ndk_revision: d
  42. android_ndk_version_build: 21.3.6528147
  43. # XXX: In commit 83fffa1198c3cbeffec45028971896876e2133a5 mozilla
  44. # replaced sdk-tools with commandlinetools. We try to do the same here,
  45. # but it seems sdk-tools is still being used in the build, so we can't
  46. # remove sdk-tools yet.
  47. sdk_tools_version: 4333796
  48. commandlinetools_version: 7583922
  49. commandlinetools_version_string: 5.0
  50. input_files:
  51. - project: container-image
  52. - URL: '[% c("var/google_repo") %]/build-tools_r31-linux.zip'
  53. name: build_tools
  54. sha256sum: f90c22f5562638a2e00762e1711eebd55e7f0a05232b65200d387307d057bfe8
  55. - URL: '[% c("var/google_repo") %]/build-tools_r[% c("var/version_30") %]-linux.zip'
  56. name: build_tools_30
  57. sha256sum: 565af786dc0cc1941002174fb945122eabd080b222cd4c7c3d9a2ae0fabf5dc4
  58. - URL: '[% c("var/google_repo") %]/build-tools_r[% c("var/version_29") %]-linux.zip'
  59. name: build_tools_29
  60. sha256sum: 1e9393cbfd4a4b82e30e7f55ab38db4a5a3259db93d5821c63597bc74522fa08
  61. - URL: '[% c("var/google_repo") %]/build-tools_r[% c("var/version_28") %]-linux.zip'
  62. name: build_tools_28
  63. sha256sum: 7954956a40633c88f693d638cbc23f68e9e2499dc7a4b7dfdaf6a3e91387749a
  64. - URL: '[% c("var/google_repo") %]/platform-[% c("var/android_api_level_29") %]_r[% c("var/android_platform_revision_29") %].zip'
  65. name: platform_29
  66. sha256sum: c9eaf2ce4e8fa6f5a8036bd3c95363d003733bf0a1bd349718cadf802db44c69
  67. - URL: '[% c("var/google_repo") %]/platform-[% c("var/android_api_level_30") %]_r[% c("var/android_platform_revision_30") %].zip'
  68. name: platform_30
  69. sha256sum: f3f5b75744dbf6ee6ed3e8174a71e513bfee502d0bc3463ea97e517bff68d84e
  70. - URL: '[% c("var/google_repo") %]/platform-[% c("var/android_api_level") %]_r[% c("var/android_platform_revision") %].zip'
  71. name: platform
  72. sha256sum: 1d69fe1d7f9788d82ff3a374faf4f6ccc9d1d372aa84a86b5bcfb517523b0b3f
  73. # ./mach bootstrap is fetching the latest version, so it does not seem to
  74. # matter which particular version we are using. Pin to the one fitting best to
  75. # SDK version/build-tools version.
  76. - URL: '[% c("var/google_repo") %]/platform-tools_r[% c("var/version_30") %]-linux.zip'
  77. name: platform_tools
  78. sha256sum: f7306a7c66d8149c4430aff270d6ed644c720ea29ef799dc613d3dc537485c6e
  79. - URL: '[% c("var/google_repo") %]/sdk-tools-linux-[% c("var/sdk_tools_version") %].zip'
  80. name: android_sdk_tools
  81. sha256sum: 92ffee5a1d98d856634e8b71132e8a95d96c83a63fde1099be3d86df3106def9
  82. - URL: '[% c("var/google_repo") %]/commandlinetools-linux-[% c("var/commandlinetools_version") %]_latest.zip'
  83. name: android_commandlinetools
  84. sha256sum: 124f2d5115eee365df6cf3228ffbca6fc3911d16f8025bebd5b1c6e2fcfa7faf
  85. - URL: '[% c("var/google_repo") %]/android-ndk-r[% c("var/android_ndk_version") %][% c("var/android_ndk_revision") %]-linux-x86_64.zip'
  86. name: android_ndk_compiler
  87. sha256sum: dd6dc090b6e2580206c64bcee499bc16509a5d017c6952dcd2bed9072af67cbd