tor-browser

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

softoken.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   ],
      8   'targets': [
      9     {
     10       'target_name': 'softokn_static',
     11       'type': 'static_library',
     12       'defines': [
     13         'NSS_STATIC_SOFTOKEN',
     14       ],
     15       'dependencies': [
     16         'softokn_base',
     17         '<(DEPTH)/exports.gyp:nss_exports',
     18         '<(DEPTH)/lib/freebl/freebl.gyp:freebl_static',
     19       ],
     20       'conditions': [
     21         [ 'use_system_sqlite==1', {
     22           'dependencies': [
     23             '<(DEPTH)/lib/sqlite/sqlite.gyp:sqlite3',
     24           ],
     25         }, {
     26           'dependencies': [
     27             '<(DEPTH)/lib/sqlite/sqlite.gyp:sqlite',
     28           ],
     29         }],
     30       ],
     31     },
     32     {
     33       'target_name': 'softokn',
     34       'type': 'static_library',
     35       'dependencies': [
     36         'softokn_base',
     37         '<(DEPTH)/exports.gyp:nss_exports',
     38         '<(DEPTH)/lib/sqlite/sqlite.gyp:sqlite3',
     39         '<(DEPTH)/lib/freebl/freebl.gyp:freebl',
     40       ]
     41     },
     42     {
     43       'target_name': 'softokn_base',
     44       'type': 'none',
     45       'direct_dependent_settings': {
     46         'sources': [
     47           'fipsaudt.c',
     48           'fipstest.c',
     49           'fipstokn.c',
     50           'jpakesftk.c',
     51           'kbkdf.c',
     52           'kem.c',
     53           'lowkey.c',
     54           'lowpbe.c',
     55           'padbuf.c',
     56           'pkcs11.c',
     57           'pkcs11c.c',
     58           'pkcs11u.c',
     59           'sdb.c',
     60           'sftkdhverify.c',
     61           'sftkdb.c',
     62           'sftkhmac.c',
     63           'sftkike.c',
     64           'sftkmessage.c',
     65           'sftkpars.c',
     66           'sftkpwd.c',
     67           'softkver.c',
     68           'tlsprf.c'
     69         ],
     70         'conditions': [
     71           [ 'disable_dbm==0', {
     72             'sources': [
     73               'lgglue.c',
     74             ]
     75           }],
     76         ]
     77       },
     78     },
     79     {
     80       'target_name': 'softokn3',
     81       'type': 'shared_library',
     82       'dependencies': [
     83         'softokn',
     84       ],
     85       'conditions': [
     86         [ 'moz_fold_libs==0', {
     87           'dependencies': [
     88             '<(DEPTH)/lib/util/util.gyp:nssutil3',
     89           ],
     90         }, {
     91           'libraries': [
     92             '<(moz_folded_library_name)',
     93           ],
     94         }],
     95       ],
     96       'variables': {
     97         'mapfile': 'softokn.def'
     98       }
     99     }
    100   ],
    101   'target_defaults': {
    102     'defines': [
    103       'SHLIB_SUFFIX=\"<(dll_suffix)\"',
    104       'SHLIB_PREFIX=\"<(dll_prefix)\"',
    105       'SOFTOKEN_LIB_NAME=\"<(dll_prefix)softokn3.<(dll_suffix)\"',
    106       'SHLIB_VERSION=\"3\"'
    107     ]
    108   },
    109   'variables': {
    110     'module': 'nss'
    111   }
    112 }