summaryrefslogtreecommitdiff
path: root/lib/liboqs/liboqs.gyp.template
diff options
context:
space:
mode:
Diffstat (limited to 'lib/liboqs/liboqs.gyp.template')
-rw-r--r--lib/liboqs/liboqs.gyp.template42
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'
+ }
+ }]
+ ],
+}