6 Star 19 Fork 13

RT-Thread-Mirror/rt-rosserial

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
SConscript 1.49 KB
一键复制 编辑 原始数据 按行查看 历史
wuhanstudio 提交于 2021-06-19 13:13 . [example] add kuboki robot
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')
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/RT-Thread-Mirror/rt-rosserial.git
git@gitee.com:RT-Thread-Mirror/rt-rosserial.git
RT-Thread-Mirror
rt-rosserial
rt-rosserial
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385