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