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': 'nssckbi',
11      'type': 'shared_library',
12      'sources': [
13        'anchor.c',
14        'bfind.c',
15        'binst.c',
16        'bobject.c',
17        'bsession.c',
18        'bslot.c',
19        'btoken.c',
20        'ckbiver.c',
21        'constants.c',
22        '<(certdata_c)',
23      ],
24      'dependencies': [
25        '<(DEPTH)/exports.gyp:nss_exports',
26        '<(DEPTH)/lib/ckfw/ckfw.gyp:nssckfw',
27        '<(DEPTH)/lib/base/base.gyp:nssb'
28      ],
29      'actions': [
30        {
31          'msvs_cygwin_shell': 0,
32          'action': [
33            '<(python)',
34            'certdata.py',
35            'certdata.txt',
36            '<@(_outputs)',
37          ],
38          'inputs': [
39            'certdata.py',
40            'certdata.perl',
41            'certdata.txt'
42          ],
43          'outputs': [
44            '<(certdata_c)'
45          ],
46          'action_name': 'generate_certdata_c'
47        }
48      ],
49      'variables': {
50        'mapfile': 'nssckbi.def',
51        'certdata_c': '<(INTERMEDIATE_DIR)/certdata.c',
52      }
53    }
54  ],
55  'target_defaults': {
56    'include_dirs': [
57      '.'
58    ]
59  },
60  'variables': {
61    'module': 'nss',
62  }
63}
64