diff options
Diffstat (limited to 'modules/gdnative/net/SCsub')
-rw-r--r-- | modules/gdnative/net/SCsub | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/modules/gdnative/net/SCsub b/modules/gdnative/net/SCsub index 53f9271128..18ab9986b0 100644 --- a/modules/gdnative/net/SCsub +++ b/modules/gdnative/net/SCsub @@ -1,12 +1,13 @@ #!/usr/bin/env python -import os -import methods - Import('env') -Import('env_modules') +Import('env_gdnative') + +env_net = env_gdnative.Clone() + +has_webrtc = env_net["module_webrtc_enabled"] +if has_webrtc: + env_net.Append(CPPDEFINES=['WEBRTC_GDNATIVE_ENABLED']) -env_net_gdnative = env_modules.Clone() +env_net.add_source_files(env.modules_sources, '*.cpp') -env_net_gdnative.Append(CPPPATH=['#modules/gdnative/include/']) -env_net_gdnative.add_source_files(env.modules_sources, '*.cpp') |