-
Notifications
You must be signed in to change notification settings - Fork 317
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
[NG] MOVE SofaComponent* to packages #620
[NG] MOVE SofaComponent* to packages #620
Conversation
This is more in phase with existing packages like SofaComponentAdvanced, etc.
Make a distinction between packages that are only CMake aggregators and applications/packages that are libraries.
[ci-build][with-scene-tests] |
set(SOURCE_FILES config/${PROJECT_NAME}.cpp) | ||
|
||
list(APPEND HEADER_FILES | ||
deprecated_layout/SofaComponentBase/MakeAliasComponent.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.
Please validate deprecated_layout principle
) | ||
|
||
list(APPEND HEADER_FILES | ||
src/sofa/component/utils/MakeAliasComponent.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.
Please validate src/namespace/component principle
@@ -1,6 +1,8 @@ | |||
cmake_minimum_required(VERSION 3.1) | |||
project(SofaGuiQt) | |||
|
|||
find_package(Sofa.Component.Utils) |
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.
Please give feedback on "." naming convention for Sofa.component.Utils
@@ -0,0 +1,48 @@ | |||
/****************************************************************************** |
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.
Please validate this new way to name config.h files
Please gently welcome this first NG pull-request 😊
The base idea was to remove the SofaComponent* packages from modules and to put them in their own place instead.
Doing this, I realized that SofaComponentBase contains actual components (it's not only a basic package as it should be).
Thus, it permitted me to introduce the first NG module Sofa.Component.Utils and fill it with SofaComponentBase intruders (MakeAliasComponent, MakeDataAliasComponent, MessageHandlerComponent, InfoComponent).
NG architecture is based on the discussions in #543.
Transition headers are also provided (in deprecated_layout folder) to ensure old includes.
I am also working with @damienmarchal on a way to cleanly automatize this kind of NG refactoring with python: see https://github.com/guparan/sofa2ng
Feedback is more than welcome!
This PR:
Reviewers will merge only if all these checks are true.