summaryrefslogtreecommitdiff
path: root/modules/webrtc/SCsub
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2018-11-20 10:58:56 +0100
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2019-04-12 18:51:24 +0200
commit320960cd327e087f457fe4d697b401d5bf71fb95 (patch)
treedd5b94262ec3228717afa40c07aa4f683916fd2c /modules/webrtc/SCsub
parent7c17e31a55e4ee6a6103bd11a076f9145f9b1db9 (diff)
Add WebRTC GDNative interface
Diffstat (limited to 'modules/webrtc/SCsub')
-rw-r--r--modules/webrtc/SCsub6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/webrtc/SCsub b/modules/webrtc/SCsub
index 965b7e3848..446bd530c2 100644
--- a/modules/webrtc/SCsub
+++ b/modules/webrtc/SCsub
@@ -6,5 +6,11 @@ Import('env_modules')
# Thirdparty source files
env_webrtc = env_modules.Clone()
+use_gdnative = env_webrtc["module_gdnative_enabled"]
+
+if use_gdnative: # GDNative is retained in Javascript for export compatibility
+ env_webrtc.Append(CPPDEFINES=['WEBRTC_GDNATIVE_ENABLED'])
+ gdnative_includes = ["#modules/gdnative/include/"]
+ env_webrtc.Append(CPPPATH=gdnative_includes)
env_webrtc.add_source_files(env.modules_sources, "*.cpp")