summaryrefslogtreecommitdiff
path: root/lib/crmf
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/crmf
parent119320d52109b2796570735871b36d6f32c7ee08 (diff)
downloadnss-hg-f7964b0b3ebc488626bd43d6bfacb6a0cfbf4966.tar.gz
bug 1237872 - Add gyp build system for NSS. r=fkiefer
Diffstat (limited to 'lib/crmf')
-rw-r--r--lib/crmf/crmf.gyp39
-rw-r--r--lib/crmf/exports.gyp37
2 files changed, 76 insertions, 0 deletions
diff --git a/lib/crmf/crmf.gyp b/lib/crmf/crmf.gyp
new file mode 100644
index 000000000..651018c9a
--- /dev/null
+++ b/lib/crmf/crmf.gyp
@@ -0,0 +1,39 @@
+# 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': 'crmf',
+ 'type': 'static_library',
+ 'sources': [
+ 'asn1cmn.c',
+ 'challcli.c',
+ 'cmmfasn1.c',
+ 'cmmfchal.c',
+ 'cmmfrec.c',
+ 'cmmfresp.c',
+ 'crmfcont.c',
+ 'crmfdec.c',
+ 'crmfenc.c',
+ 'crmfget.c',
+ 'crmfpop.c',
+ 'crmfreq.c',
+ 'crmftmpl.c',
+ 'encutil.c',
+ 'respcli.c',
+ 'respcmn.c',
+ 'servget.c'
+ ],
+ 'dependencies': [
+ '<(DEPTH)/exports.gyp:nss_exports'
+ ]
+ }
+ ],
+ 'variables': {
+ 'module': 'nss'
+ }
+} \ No newline at end of file
diff --git a/lib/crmf/exports.gyp b/lib/crmf/exports.gyp
new file mode 100644
index 000000000..c42845e1d
--- /dev/null
+++ b/lib/crmf/exports.gyp
@@ -0,0 +1,37 @@
+# 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_crmf_exports',
+ 'type': 'none',
+ 'copies': [
+ {
+ 'files': [
+ 'cmmf.h',
+ 'cmmft.h',
+ 'crmf.h',
+ 'crmft.h'
+ ],
+ 'destination': '<(PRODUCT_DIR)/dist/<(module)/public'
+ },
+ {
+ 'files': [
+ 'cmmfi.h',
+ 'cmmfit.h',
+ 'crmfi.h',
+ 'crmfit.h'
+ ],
+ 'destination': '<(PRODUCT_DIR)/dist/<(module)/private'
+ }
+ ]
+ }
+ ],
+ 'variables': {
+ 'module': 'nss'
+ }
+} \ No newline at end of file