Skip to content
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

Install plugin headers in hierarchy #638

Merged
merged 6 commits into from
Jan 18, 2019
Merged

Install plugin headers in hierarchy #638

merged 6 commits into from
Jan 18, 2019

Conversation

julianoes
Copy link
Collaborator

Fixes #637.

We shouldn't install the plugins in a flat hierarchy but into
plugins/pluginname.

Then we will include the plugins using:
`#include <dronecode_sdk/plugins/pluginname/pluginname.h`
The public headers need to use the public dronecode_sdk includes.
The header files are no longer in a flat hierarchy.
@JonasVautherin
Copy link
Collaborator

Seems like it's failing on every single platform our CI runs. Does it build on your machine? :-)

@julianoes
Copy link
Collaborator Author

Hm, I should probably try to build that again without having the headers already installed 😄.

This is required so that includes work properly for the public header
files needed by the plugins. The plugins can now include the
plugin_base.h like this:
`#include <dronecode_sdk/plugin_base.h>`
This should fix the shallow git submodule clone in appveyor.
This should fixe the package generation:
- The library `tinyxml2` is no longer a dependency.
- We gather the files to be installed automatically from the install
  directory instead of manually specifying them.
- The install directory should now be correctly in /usr/lib and
/usr/include.
- The build ID files are omitted on Fedora.
@julianoes julianoes merged commit 1ba9daf into develop Jan 18, 2019
@julianoes julianoes deleted the fix-plugin-headers branch January 18, 2019 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants