Bug 1621785 - Enable building OpenPGP libraries and include in distribution. r=darktrojan
authorRob Lemley <rob@thunderbird.net>
Wed, 15 Apr 2020 18:00:08 +0000
changeset 38845 7c06681d8e9a22d9226498c34b620cd4d3cf8ea3
parent 38844 b1139f8617d4488b3bb5693c50886c3a9925c43b
child 38846 af4dc99a4b6a50c57bf0bbfaa1f1af9c53e373ed
push id401
push userclokep@gmail.com
push dateMon, 01 Jun 2020 20:41:59 +0000
reviewersdarktrojan
bugs1621785
Bug 1621785 - Enable building OpenPGP libraries and include in distribution. r=darktrojan Build with --enable-openpgp to your mozconfig file for now. Differential Revision: https://phabricator.services.mozilla.com/D70759
mail/installer/package-manifest.in
mail/moz.configure
--- a/mail/installer/package-manifest.in
+++ b/mail/installer/package-manifest.in
@@ -239,16 +239,21 @@
 #endif
 #elif defined(XP_MACOSX)
 @BINPATH@/libotr.5.dylib
 #elif defined(XP_LINUX)
 @BINPATH@/libotr.so.5
 #endif
 #endif
 
+; OpenPGP (librnp)
+#ifdef MOZ_OPENPGP
+@BINPATH@/@DLL_PREFIX@rnp@DLL_SUFFIX@
+#endif
+
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ; Chrome Files
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 
 @RESPATH@/chrome/classic@JAREXT@
 @RESPATH@/chrome/classic.manifest
 
 ; [DevTools Startup Files]
--- a/mail/moz.configure
+++ b/mail/moz.configure
@@ -99,10 +99,12 @@ set_config('TB_LIBOTR_PREBUILT', pkg_lib
 set_config('MOZ_TELEMETRY_EXTRA_HISTOGRAM_FILES', ['/comm/mail/components/telemetry/Histograms.json'])
 set_config('MOZ_TELEMETRY_EXTRA_SCALAR_FILES', ['/comm/mail/components/telemetry/Scalars.yaml'])
 set_config('MOZ_TELEMETRY_EXTRA_EVENT_FILES', ['/comm/mail/components/telemetry/Events.yaml'])
 
 include('../build/moz.configure/gecko_source.configure')
 
 include('../mailnews/moz.configure')
 
+include('../third_party/openpgp.configure', when='--enable-openpgp')
+
 imply_option('--enable-app-system-headers', True)
 include('../../toolkit/moz.configure')