blob: a1a02c70245083a853c01963488151167bfc7cdc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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')
|