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

Rename osgDart to dart::gui::osg #651

Merged
merged 10 commits into from
Apr 13, 2016
Merged

Rename osgDart to dart::gui::osg #651

merged 10 commits into from
Apr 13, 2016

Conversation

jslee02
Copy link
Member

@jslee02 jslee02 commented Mar 29, 2016

This is the first round for reorganizing DART packages with components as discussed in #477.

This pull request includes #631. See this to see only the changes made after #631.

@jslee02 jslee02 added this to the DART 6.0.0 milestone Mar 29, 2016
@mxgrey
Copy link
Member

mxgrey commented Apr 13, 2016

I've moved OpenSceneGraph to be under the banner of Optional Dependencies. I've also added a flag (DART_BUILD_GUI_OSG) that will skip over the gui-osg library if the flag is false.

There were also a few spots where kido was being used, even though this is still dart source code, so I changed those back to dart for now.

If those changes seem reasonable, I think this is ready to merge.

@jslee02
Copy link
Member Author

jslee02 commented Apr 13, 2016

Looks good to me. Let's merge once this passes the ci tests.

@jslee02
Copy link
Member Author

jslee02 commented Apr 13, 2016

It seems the coverage rate has dropped as we added gui::osg into the testing files without tests for it. I don't know what should be tested for code for gui though.

Also, I realized that examples for gui::osg are under the source directory unlike other app (this should be renamed). We could move examples under apps directory. Maybe as an separate PR?

@mxgrey
Copy link
Member

mxgrey commented Apr 13, 2016

We could move examples under apps directory. Maybe as an separate PR?

It's a tricky decision. The nice thing about them being nested is that they will be conditionally compiled. They critically depend on OpenSceneGraph, and being nested the way they are makes it trivial for them to be ignored whenever OpenSceneGraph is unavailable.

I suppose we could do this: rename apps to examples and then put the gui-osg examples into a folder called examples/osg. Then there would be a file examples/osg/CMakeLists.txt that would conditionally compile each OSG example based on whether or not OSG is available.

I don't know what should be tested for code for gui though.

I genuinely don't know how to design meaningful unit tests for GUIs, so I don't know what to do about this either.

@jslee02
Copy link
Member Author

jslee02 commented Apr 13, 2016

I suppose we could do this: rename apps to examples and then put the gui-osg examples into a folder called examples/osg. Then there would be a file examples/osg/CMakeLists.txt that would conditionally compile each OSG example based on whether or not OSG is available.

The plan sounds good.

Speaking of which, we could apply this for tests. In this case, I would prefer to have subdirectories per module (while keeping the core tests where they are) since we would add tests for modules and they would need similar conditional compilation too.

@mxgrey
Copy link
Member

mxgrey commented Apr 13, 2016

... we could apply this for tests ... I would prefer to have subdirectories per module

That sounds good to me as well.

@jslee02 jslee02 merged commit 11a6145 into master Apr 13, 2016
@jslee02 jslee02 deleted the packaging/osgdart branch April 15, 2016 18:28
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