SCsub 554 B

12345678910111213141516171819202122
  1. #!/usr/bin/env python
  2. from misc.utility.scons_hints import *
  3. Import("env")
  4. import input_builders
  5. # Order matters here. Higher index controller database files write on top of lower index database files.
  6. controller_databases = [
  7. "gamecontrollerdb.txt",
  8. "godotcontrollerdb.txt",
  9. ]
  10. gensource = env.CommandNoCache(
  11. "default_controller_mappings.gen.cpp",
  12. controller_databases,
  13. env.Run(input_builders.make_default_controller_mappings),
  14. )
  15. env.add_source_files(env.core_sources, "*.cpp")
  16. env.add_source_files(env.core_sources, gensource)