SCsub 558 B

1234567891011121314151617181920212223
  1. #!/usr/bin/env python
  2. from misc.utility.scons_hints import *
  3. Import("env")
  4. Import("env_modules")
  5. env_mp = env_modules.Clone()
  6. module_obj = []
  7. env_mp.add_source_files(module_obj, "*.cpp")
  8. if env.editor_build:
  9. env_mp.add_source_files(module_obj, "editor/*.cpp")
  10. env.modules_sources += module_obj
  11. if env["tests"]:
  12. env_mp.Append(CPPDEFINES=["TESTS_ENABLED"])
  13. env_mp.add_source_files(env.modules_sources, "./tests/*.cpp")
  14. if env["disable_exceptions"]:
  15. env_mp.Append(CPPDEFINES=["DOCTEST_CONFIG_NO_EXCEPTIONS_BUT_WITH_ALL_ASSERTS"])