| 1 |
|
| 2 |
from misc.utility.scons_hints import * |
| 3 |
|
| 4 |
Import("env") |
| 5 |
Import("env_modules") |
| 6 |
|
| 7 |
env_camera = env_modules.Clone() |
| 8 |
|
| 9 |
if env["platform"] in ["windows", "macos", "linuxbsd", "android"]: |
| 10 |
env_camera.add_source_files(env.modules_sources, "register_types.cpp") |
| 11 |
|
| 12 |
if env["platform"] == "windows": |
| 13 |
env_camera.add_source_files(env.modules_sources, "camera_win.cpp") |
| 14 |
|
| 15 |
elif env["platform"] == "macos": |
| 16 |
env_camera.add_source_files(env.modules_sources, "camera_macos.mm") |
| 17 |
|
| 18 |
elif env["platform"] == "android": |
| 19 |
env_camera.add_source_files(env.modules_sources, "camera_android.cpp") |
| 20 |
env.Append(LIBS=["camera2ndk", "mediandk"]) |
| 21 |
|
| 22 |
elif env["platform"] == "linuxbsd": |
| 23 |
env_camera.add_source_files(env.modules_sources, "camera_linux.cpp") |
| 24 |
env_camera.add_source_files(env.modules_sources, "camera_feed_linux.cpp") |
| 25 |
env_camera.add_source_files(env.modules_sources, "buffer_decoder.cpp") |