The process for importing the RTI Connext DDS Micro Source Code into a project varies depending on the development environment. However, in general the following steps are needed:
- Create a new project or open an existing project
- Import the entire RTI Connext DDS Micro source tree from the file-system. Note that some environments lets you choose if whether to make a copy only link to the original files.
- Add the following include paths:
- <root>/include
- <root>/src/dds_c/domain
- <root>/src/dds_c/infrastructure
- <root>/src/dds_c/publication
- <root>/src/dds_c/subscription
- <root>/src/dds_c/topic
- <root>/src/dds_c/type
- Add a compile-time defintion -DTARGET="target name" (note that the " must be included)
- Add a compile-time definition -DNDEBUG for a release build
- Add a compile-time definition of either -DRTI_ENDIAN_LITTLE for a little-endian platform or -DRTI_ENDIAN_BIG for a big-endian platform
- If custom OSAPI definitions are used, add a compile-time definition -DOSAPI_OS_DEF_H="my_os_file"
- If custom compiler definitions are used, add a compile-time definition -DOSAPI_CC_DEF_H="my_cc_file.h"