Bug 1621785 - Build configuration for zlib. r=kaie
authorRob Lemley <rob@thunderbird.net>
Tue, 14 Apr 2020 22:29:04 +0000
changeset 37951 a00ef189a6d32688c2e590aecf151e211e26666c
parent 37950 ca5a694350fbe0f89b46a23caafb8ebf39363257
child 37952 925ba48a774c10ac197886f63cc420c8671118ae
push id2595
push userclokep@gmail.com
push dateMon, 04 May 2020 19:02:04 +0000
treeherdercomm-beta@f53913797371 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskaie
bugs1621785
Bug 1621785 - Build configuration for zlib. r=kaie Differential Revision: https://phabricator.services.mozilla.com/D70753
third_party/zlib/moz.build
new file mode 100644
--- /dev/null
+++ b/third_party/zlib/moz.build
@@ -0,0 +1,32 @@
+# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
+# vim: set filetype=python:
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+Library('rnpzlib')
+FINAL_LIBRARY = 'rnp'
+
+# Honor --with-system-zlib
+if CONFIG['MOZ_SYSTEM_ZLIB']:
+    OS_LIBS += CONFIG['MOZ_ZLIB_LIBS']
+else:
+    include('../rnpdefs.mozbuild')
+
+    SOURCES += [
+        'adler32.c',
+        'compress.c',
+        'crc32.c',
+        'deflate.c',
+        'gzclose.c',
+        'gzlib.c',
+        'gzread.c',
+        'gzwrite.c',
+        'infback.c',
+        'inffast.c',
+        'inflate.c',
+        'inftrees.c',
+        'trees.c',
+        'uncompr.c',
+        'zutil.c',
+    ]