lib/zlib/zlib.gyp
author EKR <ekr@rtfm.com>
Fri, 02 Dec 2016 16:32:09 +0100
changeset 12940 433172d35f525c82db3eb0b583f40e93a7d3a7c8
parent 12708 21dacf6b07fee05fd2ea3541d5e8899077c31325
child 15479 fc128963a9aaeb4f46593fd890ba73c6fbce0ea7
permissions -rw-r--r--
Bug 1321809 - Only increment the advertised extensions when appending rather than on both passes. r=mt Differential Revision: https://nss-review.dev.mozaws.net/D111

# 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/.
{
 'includes': [
    "../../coreconf/config.gypi"
  ],
  'variables': {
    'module': 'nss',
  },
  'conditions': [
    ['use_system_zlib==1', {
      'targets': [{
        'target_name': 'nss_zlib',
        'type': 'none',
        'link_settings': {
          'libraries': ['<@(zlib_libs)'],
        },
      }],
    }, {
      'targets': [{
        'target_name': 'nss_zlib',
        'type': 'static_library',
        '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',
        ],
        'defines': [
          # Define verbose as -1 to turn off all zlib trace messages in
          # debug builds.
          'verbose=-1',
        ],
      }],
    }]
  ],
}