1# This Source Code Form is subject to the terms of the Mozilla Public
2# License, v. 2.0. If a copy of the MPL was not distributed with this
3# file, You can obtain one at http://mozilla.org/MPL/2.0/.
4{
5  'includes': [
6    '../../coreconf/config.gypi'
7  ],
8  'targets': [
9    {
10      'target_name': 'nss_static',
11      'type': 'static_library',
12      'sources': [
13        'nssinit.c',
14        'nssoptions.c',
15        'nssver.c',
16        'utilwrap.c'
17      ],
18      'dependencies': [
19        '<(DEPTH)/exports.gyp:nss_exports',
20      ]
21    },
22    {
23      # This is here so Firefox can link this without having to
24      # repeat the list of dependencies.
25      'target_name': 'nss3_deps',
26      'type': 'none',
27      'dependencies': [
28        'nss_static',
29        '<(DEPTH)/lib/certhigh/certhigh.gyp:certhi',
30        '<(DEPTH)/lib/cryptohi/cryptohi.gyp:cryptohi',
31        '<(DEPTH)/lib/pk11wrap/pk11wrap.gyp:pk11wrap',
32        '<(DEPTH)/lib/certdb/certdb.gyp:certdb',
33        '<(DEPTH)/lib/pki/pki.gyp:nsspki',
34        '<(DEPTH)/lib/dev/dev.gyp:nssdev',
35        '<(DEPTH)/lib/base/base.gyp:nssb',
36        '<(DEPTH)/lib/libpkix/libpkix.gyp:libpkix',
37      ],
38    },
39    {
40      'target_name': 'nss3',
41      'type': 'shared_library',
42      'dependencies': [
43        'nss3_deps',
44        '<(DEPTH)/lib/util/util.gyp:nssutil3',
45      ],
46      'variables': {
47        'mapfile': 'nss.def'
48      }
49    }
50  ],
51  'conditions': [
52    [ 'moz_fold_libs==1', {
53      'targets': [
54        {
55          'target_name': 'nss3_static',
56          'type': 'static_library',
57          'dependencies': [
58            'nss3_deps',
59          ],
60        }
61      ],
62    }],
63  ],
64  'variables': {
65    'module': 'nss'
66  }
67}
68