-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathSConscript
32 lines (25 loc) · 998 Bytes
/
SConscript
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 *
import rtconfig
cwd = GetCurrentDir()
src = Glob('sdk/*.c')
src += Glob('drv/*.c')
src += Glob('src/*.c')
path = [cwd]
path += [cwd + '/sdk']
path += [cwd + '/src']
path += [cwd + '/driver']
if GetDepend('RPLIDAR_USING_STOP_EXAMPLE'):
src += Glob('examples/rplidar_stop_example.c')
if GetDepend('RPLIDAR_USING_RESET_EXAMPLE'):
src += Glob('examples/rplidar_reset_example.c')
if GetDepend('RPLIDAR_USING_HEALTH_EXAMPLE'):
src += Glob('examples/rplidar_health_example.c')
if GetDepend('RPLIDAR_USING_DEVICE_INFO_EXAMPLE'):
src += Glob('examples/rplidar_device_info_example.c')
if GetDepend('RPLIDAR_USING_SCAN_EXAMPLE'):
src += Glob('examples/rplidar_scan_example.c')
if GetDepend('RPLIDAR_USING_SCAN_RECV_EXAMPLE'):
src += Glob('examples/rplidar_scan_and_recv_example.c')
LOCAL_CCFLAGS = ''
group = DefineGroup('rplidar', src, depend = ['PKG_USING_RPLIDAR'], CPPPATH = path, LOCAL_CCFLAGS = LOCAL_CCFLAGS)
Return('group')