summaryrefslogtreecommitdiff
path: root/node_modules/@discordjs/opus/binding.gyp
diff options
context:
space:
mode:
author8cy <[email protected]>2020-04-03 02:37:42 -0700
committer8cy <[email protected]>2020-04-03 02:37:42 -0700
commit60867fb030bae582082340ead7dbc7efdc2f5398 (patch)
tree4c6a7356351be2e4914e15c4703172597c45656e /node_modules/@discordjs/opus/binding.gyp
parentcommenting (diff)
downloads5nical-60867fb030bae582082340ead7dbc7efdc2f5398.tar.xz
s5nical-60867fb030bae582082340ead7dbc7efdc2f5398.zip
2020/04/03, 02:34, v1.2.0
Diffstat (limited to 'node_modules/@discordjs/opus/binding.gyp')
-rw-r--r--node_modules/@discordjs/opus/binding.gyp51
1 files changed, 51 insertions, 0 deletions
diff --git a/node_modules/@discordjs/opus/binding.gyp b/node_modules/@discordjs/opus/binding.gyp
new file mode 100644
index 0000000..4979ba2
--- /dev/null
+++ b/node_modules/@discordjs/opus/binding.gyp
@@ -0,0 +1,51 @@
+{
+ "targets": [
+ {
+ "target_name": "<(module_name)",
+ "product_dir": "<(module_path)",
+ "dependencies": [
+ "deps/binding.gyp:libopus",
+ ],
+ "cflags!": [
+ "-fno-exceptions",
+ ],
+ "cflags_cc!": [
+ "-fno-exceptions",
+ ],
+ "cflags": [
+ "-pthread",
+ "-fno-strict-aliasing",
+ "-Wall",
+ "-Wno-unused-parameter",
+ "-Wno-missing-field-initializers",
+ "-Wextra",
+ "-pipe",
+ "-fno-ident",
+ "-fdata-sections",
+ "-ffunction-sections",
+ "-fPIC",
+ ],
+ "defines": [
+ "LARGEFILE_SOURCE",
+ "_FILE_OFFSET_BITS=64",
+ "WEBRTC_TARGET_PC",
+ "WEBRTC_LINUX",
+ "WEBRTC_THREAD_RR",
+ "EXPAT_RELATIVE_PATH",
+ "GTEST_RELATIVE_PATH",
+ "JSONCPP_RELATIVE_PATH",
+ "WEBRTC_RELATIVE_PATH",
+ "POSIX,"
+ "__STDC_FORMAT_MACROS",
+ "DYNAMIC_ANNOTATIONS_ENABLED=0",
+ "NAPI_DISABLE_CPP_EXCEPTIONS",
+ ],
+ "include_dirs": [
+ "<!@(node -p \"require('node-addon-api').include\")"
+ ],
+ "sources": [
+ "src/node-opus.cc",
+ ],
+ },
+ ],
+}