From 3ff3fc39485c725cd93053805d25125353dd53e9 Mon Sep 17 00:00:00 2001 From: GUI <39894654+GuEe-GUI@users.noreply.github.com> Date: Wed, 10 Dec 2025 16:58:10 +0800 Subject: [dm][input] support input #11031 --- components/drivers/input/SConscript | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 components/drivers/input/SConscript (limited to 'components/drivers/input/SConscript') 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') -- cgit v1.3.1