mpitests.gyp (1486B)
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 'defines': [ 17 'NSS_USE_STATIC_LIBS' 18 ], 19 'dependencies': [ 20 '<(DEPTH)/exports.gyp:nss_exports', 21 '<(DEPTH)/lib/util/util.gyp:nssutil3', 22 '<(DEPTH)/lib/nss/nss.gyp:nss_static', 23 '<(DEPTH)/lib/pk11wrap/pk11wrap.gyp:pk11wrap_static', 24 '<(DEPTH)/lib/cryptohi/cryptohi.gyp:cryptohi', 25 '<(DEPTH)/lib/certhigh/certhigh.gyp:certhi', 26 '<(DEPTH)/lib/certdb/certdb.gyp:certdb', 27 '<(DEPTH)/lib/base/base.gyp:nssb', 28 '<(DEPTH)/lib/dev/dev.gyp:nssdev', 29 '<(DEPTH)/lib/pki/pki.gyp:nsspki', 30 ] 31 } 32 ], 33 'target_defaults': { 34 'include_dirs': [ 35 '<(DEPTH)/lib/freebl/mpi', 36 '<(DEPTH)/lib/util', 37 ], 38 # This uses test builds and has to set defines for MPI. 39 'conditions': [ 40 [ 'target_arch=="ia32"', { 41 'defines': [ 42 'MP_USE_UINT_DIGIT', 43 'MP_ASSEMBLY_MULTIPLY', 44 'MP_ASSEMBLY_SQUARE', 45 'MP_ASSEMBLY_DIV_2DX1D', 46 ], 47 }], 48 ], 49 }, 50 'variables': { 51 'module': 'nss', 52 'use_static_libs': 1 53 } 54 }