-
Notifications
You must be signed in to change notification settings - Fork 13.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RTPS and micro-CDR build system improvements #8084
Conversation
3dc5ffe
to
b20cc9d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It improves build times and doesn't burden targets like the px4io with generating and building all this stuff the linker just throws away.
I like it!
msg/CMakeLists.txt
Outdated
set(send_topic_files) | ||
foreach(topic ${config_rtps_send_topics}) | ||
list(APPEND send_topic_files ${PX4_SOURCE_DIR}/msg/${topic}.msg) | ||
endforeach() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merge this loop with the next one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -0,0 +1,221 @@ | |||
@############################################### |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is msg/templates/uorb/microRTPS_client.cpp.template
still needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nope, deleted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
b20cc9d
to
344c200
Compare
msg/CMakeLists.txt
Outdated
set(msg_file ${PX4_SOURCE_DIR}/msg/${topic}.msg) | ||
list(APPEND send_topic_files ${msg_file}) | ||
get_filename_component(msg ${msg_file} NAME_WE) | ||
list(APPEND uorb_headers_microcdr ${msg_out_path_microcdr}/${msg}.h) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't ${msg}
just the same as ${topic}
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right
344c200
to
0411a32
Compare
0411a32
to
8f75143
Compare
This PR fixes some build system issues with RTPS and microCDR.
@mcharleb @bkueng any issues with doing this? It improves build times and doesn't burden targets like the px4io with generating and building all this stuff the linker just throws away.
I still don't like the way this quietly depends on fastrtpsgen being found. It creates a situation where users can build and test locally, but break once pushed to CI. If fastrtpsgen isn't yet a hard requirement we should leave it out of the default builds and have rtps configurations where not being able to find fastrtpsgen is a fatal error (nuttx_px4fmu-v4_rtps, posix_sitl_rtps, etc)
This has been split out of #8043.