summaryrefslogtreecommitdiff
path: root/nss/lib/jar/jar.gyp
blob: e38b4ab99ee3922162e9a02fc72d5fb42cf68a17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# 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'
  }
}