SCsub 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. #!/usr/bin/env python
  2. Import('env')
  3. from platform_methods import run_in_subprocess
  4. import main_builders
  5. env.main_sources = []
  6. env.add_source_files(env.main_sources, "*.cpp")
  7. # order matters here. higher index controller database files write on top of lower index database files
  8. controller_databases = ["#main/gamecontrollerdb.txt", "#main/gamecontrollerdb_205.txt", "#main/gamecontrollerdb_204.txt", "#main/godotcontrollerdb.txt"]
  9. env.Depends("#main/default_controller_mappings.gen.cpp", controller_databases)
  10. env.CommandNoCache("#main/default_controller_mappings.gen.cpp", controller_databases, run_in_subprocess(main_builders.make_default_controller_mappings))
  11. env.main_sources.append("#main/default_controller_mappings.gen.cpp")
  12. env.Depends("#main/splash.gen.h", "#main/splash.png")
  13. env.CommandNoCache("#main/splash.gen.h", "#main/splash.png", run_in_subprocess(main_builders.make_splash))
  14. env.Depends("#main/splash_editor.gen.h", "#main/splash_editor.png")
  15. env.CommandNoCache("#main/splash_editor.gen.h", "#main/splash_editor.png", run_in_subprocess(main_builders.make_splash_editor))
  16. env.Depends("#main/app_icon.gen.h", "#main/app_icon.png")
  17. env.CommandNoCache("#main/app_icon.gen.h", "#main/app_icon.png", run_in_subprocess(main_builders.make_app_icon))
  18. SConscript('tests/SCsub')
  19. lib = env.add_library("main", env.main_sources)
  20. env.Prepend(LIBS=[lib])