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 'target_name': 'util_gtest', 12 'type': 'executable', 13 'sources': [ 14 'util_utf8_unittest.cc', 15 'util_b64_unittest.cc', 16 'util_pkcs11uri_unittest.cc', 17 'util_aligned_malloc_unittest.cc', 18 'util_memcmpzero_unittest.cc', 19 '<(DEPTH)/gtests/common/gtests.cc', 20 ], 21 'dependencies': [ 22 '<(DEPTH)/exports.gyp:nss_exports', 23 '<(DEPTH)/gtests/google_test/google_test.gyp:gtest', 24 '<(DEPTH)/lib/util/util.gyp:nssutil', 25 '<(DEPTH)/lib/nss/nss.gyp:nss_static', 26 '<(DEPTH)/lib/pk11wrap/pk11wrap.gyp:pk11wrap_static', 27 '<(DEPTH)/lib/cryptohi/cryptohi.gyp:cryptohi', 28 '<(DEPTH)/lib/certhigh/certhigh.gyp:certhi', 29 '<(DEPTH)/lib/certdb/certdb.gyp:certdb', 30 '<(DEPTH)/lib/base/base.gyp:nssb', 31 '<(DEPTH)/lib/dev/dev.gyp:nssdev', 32 '<(DEPTH)/lib/pki/pki.gyp:nsspki', 33 '<(DEPTH)/lib/ssl/ssl.gyp:ssl', 34 '<(DEPTH)/lib/libpkix/libpkix.gyp:libpkix', 35 ], 36 'conditions': [ 37 [ 'OS=="win"', { 38 'libraries': [ 39 'advapi32.lib', 40 ], 41 }], 42 ], 43 'defines': [ 44 'NSS_USE_STATIC_LIBS' 45 ], 46 } 47 ], 48 'target_defaults': { 49 'include_dirs': [ 50 '../../lib/util' 51 ] 52 }, 53 'variables': { 54 'module': 'nss' 55 } 56} 57