summaryrefslogtreecommitdiff
path: root/lib/certdb
diff options
context:
space:
mode:
authorTed Mielczarek <ted@mielczarek.org>2016-09-23 15:12:59 -0400
committerTed Mielczarek <ted@mielczarek.org>2016-09-23 15:12:59 -0400
commitf7964b0b3ebc488626bd43d6bfacb6a0cfbf4966 (patch)
tree2324237a8c0679165e556ac099d52e1c7b12249d /lib/certdb
parent119320d52109b2796570735871b36d6f32c7ee08 (diff)
downloadnss-hg-f7964b0b3ebc488626bd43d6bfacb6a0cfbf4966.tar.gz
bug 1237872 - Add gyp build system for NSS. r=fkiefer
Diffstat (limited to 'lib/certdb')
-rw-r--r--lib/certdb/certdb.gyp34
-rw-r--r--lib/certdb/exports.gyp36
2 files changed, 70 insertions, 0 deletions
diff --git a/lib/certdb/certdb.gyp b/lib/certdb/certdb.gyp
new file mode 100644
index 000000000..673d56da3
--- /dev/null
+++ b/lib/certdb/certdb.gyp
@@ -0,0 +1,34 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+{
+ 'includes': [
+ '../../coreconf/config.gypi'
+ ],
+ 'targets': [
+ {
+ 'target_name': 'certdb',
+ 'type': 'static_library',
+ 'sources': [
+ 'alg1485.c',
+ 'certdb.c',
+ 'certv3.c',
+ 'certxutl.c',
+ 'crl.c',
+ 'genname.c',
+ 'polcyxtn.c',
+ 'secname.c',
+ 'stanpcertdb.c',
+ 'xauthkid.c',
+ 'xbsconst.c',
+ 'xconst.c'
+ ],
+ 'dependencies': [
+ '<(DEPTH)/exports.gyp:nss_exports'
+ ]
+ }
+ ],
+ 'variables': {
+ 'module': 'nss'
+ }
+} \ No newline at end of file
diff --git a/lib/certdb/exports.gyp b/lib/certdb/exports.gyp
new file mode 100644
index 000000000..cba5fabdb
--- /dev/null
+++ b/lib/certdb/exports.gyp
@@ -0,0 +1,36 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+{
+ 'includes': [
+ '../../coreconf/config.gypi'
+ ],
+ 'targets': [
+ {
+ 'target_name': 'lib_certdb_exports',
+ 'type': 'none',
+ 'copies': [
+ {
+ 'files': [
+ 'cert.h',
+ 'certdb.h',
+ 'certt.h'
+ ],
+ 'destination': '<(PRODUCT_DIR)/dist/<(module)/public'
+ },
+ {
+ 'files': [
+ 'certi.h',
+ 'certxutl.h',
+ 'genname.h',
+ 'xconst.h'
+ ],
+ 'destination': '<(PRODUCT_DIR)/dist/<(module)/private'
+ }
+ ]
+ }
+ ],
+ 'variables': {
+ 'module': 'nss'
+ }
+} \ No newline at end of file