diff options
author | Ted Mielczarek <ted@mielczarek.org> | 2016-09-23 15:12:59 -0400 |
---|---|---|
committer | Ted Mielczarek <ted@mielczarek.org> | 2016-09-23 15:12:59 -0400 |
commit | f7964b0b3ebc488626bd43d6bfacb6a0cfbf4966 (patch) | |
tree | 2324237a8c0679165e556ac099d52e1c7b12249d /cmd/lib | |
parent | 119320d52109b2796570735871b36d6f32c7ee08 (diff) | |
download | nss-hg-f7964b0b3ebc488626bd43d6bfacb6a0cfbf4966.tar.gz |
bug 1237872 - Add gyp build system for NSS. r=fkiefer
Diffstat (limited to 'cmd/lib')
-rw-r--r-- | cmd/lib/exports.gyp | 27 | ||||
-rw-r--r-- | cmd/lib/lib.gyp | 35 |
2 files changed, 62 insertions, 0 deletions
diff --git a/cmd/lib/exports.gyp b/cmd/lib/exports.gyp new file mode 100644 index 000000000..f259ce07d --- /dev/null +++ b/cmd/lib/exports.gyp @@ -0,0 +1,27 @@ +# 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': 'cmd_lib_exports', + 'type': 'none', + 'copies': [ + { + 'files': [ + 'basicutil.h', + 'pk11table.h', + 'secutil.h' + ], + 'destination': '<(PRODUCT_DIR)/dist/<(module)/private' + } + ] + } + ], + 'variables': { + 'module': 'nss' + } +}
\ No newline at end of file diff --git a/cmd/lib/lib.gyp b/cmd/lib/lib.gyp new file mode 100644 index 000000000..fe5e1d93f --- /dev/null +++ b/cmd/lib/lib.gyp @@ -0,0 +1,35 @@ +# 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': 'sectool', + 'type': 'static_library', + 'sources': [ + 'basicutil.c', + 'derprint.c', + 'ffs.c', + 'moreoids.c', + 'pk11table.c', + 'pppolicy.c', + 'secpwd.c', + 'secutil.c' + ], + 'dependencies': [ + '<(DEPTH)/exports.gyp:nss_exports' + ] + } + ], + 'target_defaults': { + 'defines': [ + 'NSPR20' + ] + }, + 'variables': { + 'module': 'nss' + } +}
\ No newline at end of file |