lib/jar/jar.gyp
author EKR <ekr@rtfm.com>
Fri, 02 Dec 2016 16:32:09 +0100
changeset 12940 433172d35f525c82db3eb0b583f40e93a7d3a7c8
parent 12708 21dacf6b07fee05fd2ea3541d5e8899077c31325
child 13297 7e99f75f196d868e21beb8956257e2fa199d6b6e
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'
  ],
  'targets': [
    {
      'target_name': 'jar',
      'type': 'static_library',
      'sources': [
        'jar-ds.c',
        'jar.c',
        'jarfile.c',
        'jarint.c',
        'jarsign.c',
        'jarver.c'
      ],
      'dependencies': [
        '<(DEPTH)/exports.gyp:nss_exports'
      ]
    }
  ],
  'target_defaults': {
    'defines': [
      'MOZILLA_CLIENT=1',
    ],
    'conditions': [
      [ 'OS=="win"', {
        'configurations': {
          'x86_Base': {
            'msvs_settings': {
              'VCCLCompilerTool': {
                'PreprocessorDefinitions': [
                  'NSS_X86_OR_X64',
                  'NSS_X86',
                ],
              },
            },
          },
          'x64_Base': {
            'msvs_settings': {
              'VCCLCompilerTool': {
                'PreprocessorDefinitions': [
                  'NSS_USE_64',
                  'NSS_X86_OR_X64',
                  'NSS_X64',
                ],
              },
            },
          },
        },
      }, {
        'conditions': [
          [ 'target_arch=="x64"', {
            'defines': [
              'NSS_USE_64',
              'NSS_X86_OR_X64',
              'NSS_X64',
            ],
          }],
          [ 'target_arch=="ia32"', {
            'defines': [
              'NSS_X86_OR_X64',
              'NSS_X86',
            ],
          }],
        ],
      }],
    ],
  },
  'variables': {
    'module': 'nss'
  }
}