summaryrefslogtreecommitdiffstats
path: root/security/nss/gtests/mozpkix_gtest/mozpkix_gtest.gyp
blob: 899b849fcb574dccac965d5efd8fe6a275da6b38 (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
# 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',
    '../common/gtest.gypi',
  ],
  'targets': [
    {
      'target_name': 'mozpkix_gtest',
      'type': 'executable',
      'sources': [
        '<(DEPTH)/gtests/common/gtests.cc',
        'pkixbuild_tests.cpp',
        'pkixcert_extension_tests.cpp',
        'pkixcert_signature_algorithm_tests.cpp',
        'pkixcheck_CheckExtendedKeyUsage_tests.cpp',
        'pkixcheck_CheckIssuer_tests.cpp',
        'pkixcheck_CheckKeyUsage_tests.cpp',
        'pkixcheck_CheckSignatureAlgorithm_tests.cpp',
        'pkixcheck_CheckValidity_tests.cpp',
        'pkixcheck_ParseValidity_tests.cpp',
        'pkixcheck_TLSFeaturesSatisfiedInternal_tests.cpp',
        'pkixder_input_tests.cpp',
        'pkixder_pki_types_tests.cpp',
        'pkixder_universal_types_tests.cpp',
        'pkixgtest.cpp',
        'pkixnames_tests.cpp',
        'pkixocsp_CreateEncodedOCSPRequest_tests.cpp',
        'pkixocsp_VerifyEncodedOCSPResponse.cpp',
      ],
      'dependencies': [
        '<(DEPTH)/exports.gyp:nss_exports',
        '<(DEPTH)/gtests/google_test/google_test.gyp:gtest',
        '<(DEPTH)/lib/util/util.gyp:nssutil',
        '<(DEPTH)/lib/ssl/ssl.gyp:ssl',
        '<(DEPTH)/lib/nss/nss.gyp:nss_static',
        '<(DEPTH)/lib/pk11wrap/pk11wrap.gyp:pk11wrap_static',
        '<(DEPTH)/lib/cryptohi/cryptohi.gyp:cryptohi',
        '<(DEPTH)/lib/certhigh/certhigh.gyp:certhi',
        '<(DEPTH)/lib/certdb/certdb.gyp:certdb',
        '<(DEPTH)/lib/base/base.gyp:nssb',
        '<(DEPTH)/lib/dev/dev.gyp:nssdev',
        '<(DEPTH)/lib/pki/pki.gyp:nsspki',
        '<(DEPTH)/lib/mozpkix/mozpkix.gyp:mozpkix',
        '<(DEPTH)/lib/mozpkix/mozpkix.gyp:mozpkix-testlib',
      ],
      'include_dirs': [
        '<(DEPTH)/lib/mozpkix/',
        '<(DEPTH)/lib/mozpkix/lib',
        '<(DEPTH)/lib/mozpkix/include/',
        '<(DEPTH)/lib/mozpkix/include/pkix-test/',
      ],
      'conditions': [
        [ 'OS=="win"', {
          'libraries': [
            'advapi32.lib',
          ],
        }],
      ],
      'defines': [
        'NSS_USE_STATIC_LIBS'
      ],
    }
  ],
  'variables': {
    'module': 'nss',
    'use_static_libs': 1,
  }
}