0.2.0-dev Download ZIP
20 lines ·546 B Raw
| 1 | #!/usr/bin/env python |
| 2 | from misc.utility.scons_hints import * |
| 3 | |
| 4 | Import("env") |
| 5 | Import("env_modules") |
| 6 | |
| 7 | env_objdb = env_modules.Clone() |
| 8 | |
| 9 | module_obj = [] |
| 10 | |
| 11 | # Only include in editor and debug builds. |
| 12 | if env_objdb.debug_features: |
| 13 | env_objdb.add_source_files(module_obj, "*.cpp") |
| 14 | |
| 15 | # Only the editor needs these files, don't include them in the game. |
| 16 | if env.editor_build: |
| 17 | env_objdb.add_source_files(module_obj, "editor/*.cpp") |
| 18 | env_objdb.add_source_files(module_obj, "editor/data_viewers/*.cpp") |
| 19 | |
| 20 | env.modules_sources += module_obj |