diff options
| author | GUI <[email protected]> | 2025-12-10 16:58:10 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-12-10 16:58:10 +0800 |
| commit | 3ff3fc39485c725cd93053805d25125353dd53e9 (patch) | |
| tree | 708ac806078173a5bb47d56278f3dc8edbc865b9 /components/drivers/input/SConscript | |
| parent | 357c9b7b5a61ce2062cbfcb37d9dba8d17ff3d6d (diff) | |
[dm][input] support input #11031
Diffstat (limited to 'components/drivers/input/SConscript')
| -rw-r--r-- | components/drivers/input/SConscript | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/components/drivers/input/SConscript b/components/drivers/input/SConscript new file mode 100644 index 0000000000..a1a02c7024 --- /dev/null +++ b/components/drivers/input/SConscript @@ -0,0 +1,32 @@ +from building import * + +group = [] +objs = [] + +if not GetDepend(['RT_USING_INPUT']): + Return('group') + +cwd = GetCurrentDir() +list = os.listdir(cwd) +CPPPATH = [cwd + '/../include'] + +src = ['input.c'] + +if GetDepend(['RT_INPUT_POWER']): + src += ['input_power.c'] + +if GetDepend(['RT_INPUT_TOUCHSCREEN']): + src += ['input_touch.c'] + +if GetDepend(['RT_INPUT_UAPI']): + src += ['input_uapi.c'] + +group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH) + +for d in list: + path = os.path.join(cwd, d) + if os.path.isfile(os.path.join(path, 'SConscript')): + objs = objs + SConscript(os.path.join(d, 'SConscript')) +objs = objs + group + +Return('objs') |
