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    '../../cmd/platlibs.gypi'
8  ],
9  'targets': [
10    {
11      'target_name': 'mpi_tests',
12      'type': 'executable',
13      'sources': [
14        'mpi-test.c',
15      ],
16      'dependencies': [
17        '<(DEPTH)/exports.gyp:nss_exports',
18        '<(DEPTH)/lib/util/util.gyp:nssutil3',
19        '<(DEPTH)/lib/nss/nss.gyp:nss_static',
20        '<(DEPTH)/lib/pk11wrap/pk11wrap.gyp:pk11wrap_static',
21        '<(DEPTH)/lib/cryptohi/cryptohi.gyp:cryptohi',
22        '<(DEPTH)/lib/certhigh/certhigh.gyp:certhi',
23        '<(DEPTH)/lib/certdb/certdb.gyp:certdb',
24        '<(DEPTH)/lib/base/base.gyp:nssb',
25        '<(DEPTH)/lib/dev/dev.gyp:nssdev',
26        '<(DEPTH)/lib/pki/pki.gyp:nsspki',
27      ]
28    }
29  ],
30  'target_defaults': {
31    'include_dirs': [
32      '<(DEPTH)/lib/freebl/mpi',
33      '<(DEPTH)/lib/util',
34    ],
35    # This uses test builds and has to set defines for MPI.
36    'conditions': [
37      [ 'target_arch=="ia32"', {
38        'defines': [
39          'MP_USE_UINT_DIGIT',
40          'MP_ASSEMBLY_MULTIPLY',
41          'MP_ASSEMBLY_SQUARE',
42          'MP_ASSEMBLY_DIV_2DX1D',
43        ],
44      }],
45    ],
46  },
47  'variables': {
48    'module': 'nss'
49  }
50}
51