-
Notifications
You must be signed in to change notification settings - Fork 9
/
SConscript
53 lines (36 loc) · 1.49 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
from building import *
import rtconfig
# get current directory
cwd = GetCurrentDir()
# The set of source files associated with this SConscript file.
src = Glob('src/*.cpp')
path = [cwd + '/']
path += [cwd + '/port']
path += [cwd + '/src']
LOCAL_CCFLAGS = ''
if GetDepend('ROSSERIAL_USING_HELLO_WORLD_UART'):
src += Glob('examples/hello_world_serial.cpp')
if GetDepend('ROSSERIAL_USING_BLINK_UART'):
src += Glob('examples/blink.cpp')
if GetDepend('ROSSERIAL_USING_BLINK_CLASS_UART'):
src += Glob('examples/blink_class.cpp')
if GetDepend('ROSSERIAL_USING_BUTTON_UART'):
src += Glob('examples/button.cpp')
if GetDepend('ROSSERIAL_USING_PUB_SUB_UART'):
src += Glob('examples/pubsub.cpp')
if GetDepend('ROSSERIAL_USING_LOGGING_UART'):
src += Glob('examples/logging.cpp')
if GetDepend('ROSSERIAL_USING_TF_UART'):
src += Glob('examples/tf.cpp')
if GetDepend('ROSSERIAL_USING_SERVICE_SERVER_UART'):
src += Glob('examples/service_server.cpp')
if GetDepend('ROSSERIAL_USING_SERVICE_CLIENT_UART'):
src += Glob('examples/service_client.cpp')
if GetDepend('ROSSERIAL_USING_HELLO_WORLD_TCP'):
src += Glob('examples/hello_world_tcp.cpp')
if GetDepend('ROSSERIAL_USING_KOBUKI_CONTROL'):
src += Glob('examples/kobuki_control.cpp')
if rtconfig.CROSS_TOOL == 'gcc':
LOCAL_CCFLAGS += ' -std=c99'
group = DefineGroup('rosserial', src, depend = ['PKG_USING_ROSSERIAL'], CPPPATH = path, LOCAL_CCFLAGS = LOCAL_CCFLAGS)
Return('group')