diff options
author | Robert Relyea <rrelyea@redhat.com> | 2023-02-27 14:46:39 -0800 |
---|---|---|
committer | Robert Relyea <rrelyea@redhat.com> | 2023-02-27 14:46:39 -0800 |
commit | 9a7e1bc157adb261651fefb791901614460843a1 (patch) | |
tree | d35359ce38e48a2ffbb7247a8a5ad32e9e7e5ed2 /lib/liboqs/liboqs.gyp.template | |
parent | a0b5910d52112e6e32c5f54ad37533cde603feae (diff) | |
download | nss-hg-9a7e1bc157adb261651fefb791901614460843a1.tar.gz |
Add liboqs
Diffstat (limited to 'lib/liboqs/liboqs.gyp.template')
-rw-r--r-- | lib/liboqs/liboqs.gyp.template | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/lib/liboqs/liboqs.gyp.template b/lib/liboqs/liboqs.gyp.template new file mode 100644 index 000000000..4939f2d73 --- /dev/null +++ b/lib/liboqs/liboqs.gyp.template @@ -0,0 +1,42 @@ +# 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' + ], + 'conditions': [ + ['use_system_liboqs==1', { + 'targets': [{ + 'target_name': 'oqs', + 'type': 'none', + 'link_settings': { + 'libraries': ['<(oqs_libs)'], + }, + }], + }, { + 'targets': [ + { + 'target_name': 'oqs_s', + 'type': 'static_library', + 'dependencies': [ + '<(DEPTH)/exports.gyp:nss_exports',<DIR_FILES> + ] + }, + { + 'target_name': 'oqs', + 'type': 'shared_library', + 'dependencies': [ + 'oqs_s' + ], + 'variables': { + 'mapfile': 'oqs.def' + } + } + ], + 'variables': { + 'module': 'oqs' + } + }] + ], +} |