tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

freebl_gtest.gyp (2653B)


      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     '../common/gtest.gypi',
      8   ],
      9   'targets': [
     10     {
     11       # Dependencies for tests.
     12       'target_name': 'freebl_gtest_deps',
     13       'type': 'none',
     14       'dependencies': [
     15         '<(DEPTH)/lib/util/util.gyp:nssutil3',
     16         '<(DEPTH)/gtests/google_test/google_test.gyp:gtest',
     17         '<(DEPTH)/lib/nss/nss.gyp:nss_static',
     18         '<(DEPTH)/lib/pk11wrap/pk11wrap.gyp:pk11wrap_static',
     19         '<(DEPTH)/lib/cryptohi/cryptohi.gyp:cryptohi',
     20         '<(DEPTH)/lib/certhigh/certhigh.gyp:certhi',
     21         '<(DEPTH)/lib/certdb/certdb.gyp:certdb',
     22         '<(DEPTH)/lib/base/base.gyp:nssb',
     23         '<(DEPTH)/lib/dev/dev.gyp:nssdev',
     24         '<(DEPTH)/lib/pki/pki.gyp:nsspki',
     25         '<(DEPTH)/lib/ssl/ssl.gyp:ssl',
     26         '<(DEPTH)/lib/libpkix/libpkix.gyp:libpkix',
     27       ],
     28     },
     29     {
     30       'target_name': 'freebl_gtest',
     31       'type': 'executable',
     32       'sources': [
     33         'blake2b_unittest.cc',
     34         'shake_unittest.cc',
     35         'cmac_unittests.cc',
     36         'dh_unittest.cc',
     37         'ecl_unittest.cc',
     38         'ghash_unittest.cc',
     39         'kyber_unittest.cc',
     40         'mpi_unittest.cc',
     41         'prng_kat_unittest.cc',
     42         'rsa_unittest.cc',
     43         'ed25519_unittest.cc',
     44         '<(DEPTH)/gtests/common/gtests.cc'
     45       ],
     46       'dependencies': [
     47         'freebl_gtest_deps',
     48         '<(DEPTH)/exports.gyp:nss_exports',
     49       ],
     50       'conditions': [
     51       [ 'cc_is_gcc==1 and (target_arch=="ia32" or target_arch=="x64")', {
     52          'cflags_cc': [
     53           '-msse2',
     54           ],
     55         }],
     56       ],
     57     },
     58   ],
     59   'target_defaults': {
     60     'include_dirs': [
     61       '<(DEPTH)/lib/freebl/ecl',
     62       '<(DEPTH)/lib/freebl/mpi',
     63       '<(DEPTH)/lib/freebl/',
     64       '<(DEPTH)/lib/ssl/',
     65       '<(DEPTH)/lib/util/',
     66       '<(DEPTH)/lib/certdb/',
     67       '<(DEPTH)/lib/cryptohi/',
     68       '<(DEPTH)/lib/pk11wrap/',
     69     ],
     70     'defines': [
     71       'NSS_USE_STATIC_LIBS',
     72     ],
     73     # For static builds we have to set MPI defines.
     74     'conditions': [
     75       [ 'ct_verif==1', {
     76         'defines': [
     77           'CT_VERIF',
     78         ],
     79       }],
     80       [ 'target_arch=="ia32"', {
     81         'defines': [
     82           'MP_USE_UINT_DIGIT',
     83           'MP_ASSEMBLY_MULTIPLY',
     84           'MP_ASSEMBLY_SQUARE',
     85           'MP_ASSEMBLY_DIV_2DX1D',
     86         ],
     87       }],
     88       [ 'OS=="win"', {
     89         'libraries': [
     90           'advapi32.lib',
     91         ],
     92       }],
     93     ],
     94   },
     95   'variables': {
     96     'module': 'nss'
     97   }
     98 }