SCsub 536 B

123456789101112131415161718
  1. #!/usr/bin/env python
  2. Import("env")
  3. Import("env_modules")
  4. env_webrtc = env_modules.Clone()
  5. use_gdnative = env_webrtc["module_gdnative_enabled"]
  6. if use_gdnative: # GDNative is retained in Javascript for export compatibility
  7. env_webrtc.Append(CPPDEFINES=["WEBRTC_GDNATIVE_ENABLED"])
  8. env_webrtc.Prepend(CPPPATH=["#modules/gdnative/include/"])
  9. if env["platform"] == "javascript":
  10. # Our JavaScript/C++ interface.
  11. env.AddJSLibraries(["library_godot_webrtc.js"])
  12. env_webrtc.add_source_files(env.modules_sources, "*.cpp")