legacydb.gyp (1540B)
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': 'nssdbm', 11 'type': 'static_library', 12 'sources': [ 13 'dbmshim.c', 14 'keydb.c', 15 'lgattr.c', 16 'lgcreate.c', 17 'lgdestroy.c', 18 'lgfind.c', 19 'lgfips.c', 20 'lginit.c', 21 'lgutil.c', 22 'lowcert.c', 23 'lowkey.c', 24 'pcertdb.c', 25 'pk11db.c' 26 ], 27 'dependencies': [ 28 '<(DEPTH)/exports.gyp:dbm_exports', 29 '<(DEPTH)/exports.gyp:nss_exports', 30 '<(DEPTH)/lib/freebl/freebl.gyp:freebl', 31 '<(DEPTH)/lib/dbm/src/src.gyp:dbm' 32 ] 33 }, 34 { 35 'target_name': 'nssdbm3', 36 'type': 'shared_library', 37 'dependencies': [ 38 'nssdbm' 39 ], 40 'conditions': [ 41 [ 'moz_fold_libs==0', { 42 'dependencies': [ 43 '<(DEPTH)/lib/util/util.gyp:nssutil3', 44 ], 45 }, { 46 'libraries': [ 47 '<(moz_folded_library_name)', 48 ], 49 }], 50 ], 51 'variables': { 52 'mapfile': 'nssdbm.def' 53 } 54 } 55 ], 56 'target_defaults': { 57 'defines': [ 58 'SHLIB_SUFFIX=\"<(dll_suffix)\"', 59 'SHLIB_PREFIX=\"<(dll_prefix)\"', 60 'LG_LIB_NAME=\"<(dll_prefix)nssdbm3.<(dll_suffix)\"' 61 ] 62 }, 63 'variables': { 64 'module': 'nss' 65 } 66 }