moz.build (1034B)
1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- 2 # vim: set filetype=python: 3 # This Source Code Form is subject to the terms of the Mozilla Public 4 # License, v. 2.0. If a copy of the MPL was not distributed with this 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/. 6 7 EXPORTS += [ 8 'mozzconf.h', 9 'zconf.h', 10 'zlib.h', 11 ] 12 13 # The final library is in config/external/zlib 14 FINAL_LIBRARY = 'zlib' 15 16 # These files can't be unified because zlib's headers don't use include guards. 17 SOURCES += [ 18 'adler32.c', 19 'compress.c', 20 'crc32.c', 21 'deflate.c', 22 'gzclose.c', 23 'gzlib.c', 24 'gzread.c', 25 'gzwrite.c', 26 'infback.c', 27 'inffast.c', 28 'inflate.c', 29 'inftrees.c', 30 'trees.c', 31 'uncompr.c', 32 'zutil.c', 33 ] 34 35 # We allow warnings for third-party code that can be updated from upstream. 36 AllowCompilerWarnings() 37 38 # ... most warnings, anyway. https://github.com/madler/zlib/issues/633 39 if CONFIG['CC_TYPE'] in ('clang', 'clang-cl'): 40 CFLAGS += ["-Wno-deprecated-non-prototype"]