0.2.0-dev Download ZIP
21 lines ·554 B Raw
| 1 | #!/usr/bin/env python |
| 2 | from misc.utility.scons_hints import * |
| 3 | |
| 4 | Import("env") |
| 5 | |
| 6 | import input_builders |
| 7 | |
| 8 | # Order matters here. Higher index controller database files write on top of lower index database files. |
| 9 | controller_databases = [ |
| 10 | "gamecontrollerdb.txt", |
| 11 | "godotcontrollerdb.txt", |
| 12 | ] |
| 13 | |
| 14 | gensource = env.CommandNoCache( |
| 15 | "default_controller_mappings.gen.cpp", |
| 16 | controller_databases, |
| 17 | env.Run(input_builders.make_default_controller_mappings), |
| 18 | ) |
| 19 | |
| 20 | env.add_source_files(env.core_sources, "*.cpp") |
| 21 | env.add_source_files(env.core_sources, gensource) |