-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathSConscript
More file actions
45 lines (30 loc) · 1.25 KB
/
SConscript
File metadata and controls
45 lines (30 loc) · 1.25 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
from building import *
import rtconfig
cwd = GetCurrentDir()
src = Glob('*.c')
path = [cwd]
path += [cwd + '/service']
if GetDepend('UDS_USING_EXAMPLE'):
src += Glob('examples/rtt_uds_example.c')
if GetDepend('UDS_USING_EXAMPLE') and GetDepend('UDS_EXAMPLE_0X2A_ULOG'):
src += Glob('examples/rtt_uds_0x2a_ulog_example.c')
if GetDepend('UDS_ENABLE_SESSION_SVC'):
src += Glob('service/service_0x10_session.c')
if GetDepend('UDS_ENABLE_SECURITY_SVC'):
src += Glob('service/service_0x27_security.c')
if GetDepend('UDS_ENABLE_CONSOLE_SVC'):
src += Glob('service/service_0x31_console.c')
if GetDepend('UDS_ENABLE_FILE_SVC'):
src += Glob('service/service_0x36_0x37_0x38_file.c')
if GetDepend('UDS_ENABLE_PARAM_SVC'):
src += Glob('service/service_0x22_0x2E_param.c')
if GetDepend('UDS_ENABLE_0X2F_IO_SVC'):
src += Glob('service/service_0x2F_io.c')
if GetDepend('UDS_ENABLE_0X11_RESET_SVC'):
src += Glob('service/service_0x11_reset.c')
if GetDepend('UDS_ENABLE_0X28_COMM_CTRL_SVC'):
src += Glob('service/service_0x28_comm.c')
if GetDepend('UDS_ENABLE_0X2A_PERIODIC_SVC'):
src += Glob('service/service_0x2A_periodic.c')
group = DefineGroup('can_uds', src, depend = ['PKG_USING_ISO14229'], CPPPATH = path)
Return('group')