2025-05-06 10:30:52 +02:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
from misc.utility.scons_hints import *
|
|
|
|
|
|
|
|
|
|
Import("env")
|
|
|
|
|
Import("env_modules")
|
|
|
|
|
|
2025-05-12 16:47:16 +02:00
|
|
|
env_objdb = env_modules.Clone()
|
2025-05-06 10:30:52 +02:00
|
|
|
|
|
|
|
|
module_obj = []
|
|
|
|
|
|
|
|
|
|
# Only include in editor and debug builds.
|
2025-05-12 16:47:16 +02:00
|
|
|
if env_objdb.debug_features:
|
|
|
|
|
env_objdb.add_source_files(module_obj, "*.cpp")
|
2025-05-06 10:30:52 +02:00
|
|
|
|
|
|
|
|
# Only the editor needs these files, don't include them in the game.
|
|
|
|
|
if env.editor_build:
|
2025-05-12 16:47:16 +02:00
|
|
|
env_objdb.add_source_files(module_obj, "editor/*.cpp")
|
|
|
|
|
env_objdb.add_source_files(module_obj, "editor/data_viewers/*.cpp")
|
2025-05-06 10:30:52 +02:00
|
|
|
|
|
|
|
|
env.modules_sources += module_obj
|