SCsub 738 B

12345678910111213141516171819202122
  1. #!/usr/bin/env python
  2. from misc.utility.scons_hints import *
  3. Import("env")
  4. Import("env_modules")
  5. env_camera = env_modules.Clone()
  6. if env["platform"] in ["windows", "macos", "linuxbsd"]:
  7. env_camera.add_source_files(env.modules_sources, "register_types.cpp")
  8. if env["platform"] == "windows":
  9. env_camera.add_source_files(env.modules_sources, "camera_win.cpp")
  10. elif env["platform"] == "macos":
  11. env_camera.add_source_files(env.modules_sources, "camera_macos.mm")
  12. elif env["platform"] == "linuxbsd":
  13. env_camera.add_source_files(env.modules_sources, "camera_linux.cpp")
  14. env_camera.add_source_files(env.modules_sources, "camera_feed_linux.cpp")
  15. env_camera.add_source_files(env.modules_sources, "buffer_decoder.cpp")