SCsub 559 B

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